rc.conf state (disabled/enabled) now moved to another column in view
authorHarvie <tomas@mudrunka.cz>
Sun, 25 Jul 2010 09:10:22 +0000 (11:10 +0200)
committerHarvie <tomas@mudrunka.cz>
Sun, 25 Jul 2010 09:10:22 +0000 (11:10 +0200)
PKGBUILD
aldm-gui
aldm.ui

index 816ac21b6d7cfd84727a9148a74a12fdce833540..c1632fa194f47ef2d8051203dd12dad435a1696d 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 # You can also contact me on http://blog.harvie.cz/
 
 pkgname=aldm
-pkgver=0.4
+pkgver=0.5
 pkgrel=1
 pkgdesc="ArchLinux Daemon Manager (Shell + Gnome GTK+ GUI) - Gives you control over services in rc.d and settings in rc.conf"
 arch=('any')
@@ -12,8 +12,8 @@ url="http://github.com/Harvie/ArchLinux-Daemon-Manager"
 depends=('bash' 'gtk2-perl' 'gksu' 'sed')
 source=('aldm' 'aldm-gui' 'aldm.ui')
 md5sums=('0c16113ad13f4e79c9b76ec22cf97206'
-         '6a73ae72411eda426e9f97cfa1942fdd'
-         'dd2f8a1d52200756edfb34afa5a574af')
+         '4ee212dc72229a8f92c53bafa7d50084'
+         '0cd99b332e56846039ac562d6c59abb5')
 
 build() {
        mkdir -p ${pkgdir}/usr/bin
index d776119b1bbd9eda4570b2dda01d458ffafd6f4a..bf4ed6bd2f706f7c6baf7bfe9f31048bcc4ad28e 100755 (executable)
--- a/aldm-gui
+++ b/aldm-gui
@@ -32,10 +32,13 @@ $builder = undef;
        my $column = Gtk2::TreeViewColumn->new_with_attributes('Daemon', Gtk2::CellRendererText->new, text => 0);
        $widgets{'treeview1'}->append_column($column);
 
-       $column = Gtk2::TreeViewColumn->new_with_attributes('Running', Gtk2::CellRendererText->new, text => 1);
+       $column = Gtk2::TreeViewColumn->new_with_attributes('?', Gtk2::CellRendererText->new, text => 1);
        $widgets{'treeview1'}->append_column($column);
 
-       $column = Gtk2::TreeViewColumn->new_with_attributes('WhatIs', Gtk2::CellRendererText->new, text => 2);
+       $column = Gtk2::TreeViewColumn->new_with_attributes('Running', Gtk2::CellRendererText->new, text => 2);
+       $widgets{'treeview1'}->append_column($column);
+
+       $column = Gtk2::TreeViewColumn->new_with_attributes('WhatIs', Gtk2::CellRendererText->new, text => 3);
        $widgets{'treeview1'}->append_column($column);
 
 refresh_view();
@@ -77,13 +80,15 @@ sub refresh_view
                #my $iter = $widgets{'liststore1'}->append();
                #$widgets{'liststore1'}->set($iter, 0 => "$_", 1=> "$run", 2 => "$w");
 
+               my $state = $_;
+               $state =~ s/[a-zA-Z0-9 \-]*//g;
+
                my $serv = $_;
                $serv =~ s/^(!|@)//g;
-
                if(!defined($iterators{$serv})) {
                        $iterators{$serv} = $widgets{'liststore1'}->append();
                }
-               $widgets{'liststore1'}->set($iterators{$serv}, 0 => "$_", 1=> "$run", 2 => "$w");
+               $widgets{'liststore1'}->set($iterators{$serv}, 0 => "$serv", 1=> "$state", 2=> "$run", 3 => "$w");
        }
        close($daemon_list);
 }
diff --git a/aldm.ui b/aldm.ui
index 41f568d97fdaf26587dc461b5592c5c532f355bb..f993bf38565b89a238d3e0f3bbf63c197ea23537 100644 (file)
--- a/aldm.ui
+++ b/aldm.ui
@@ -6,6 +6,8 @@
     <columns>
       <!-- column-name daemon -->
       <column type="gchararray"/>
+      <!-- column-name state -->
+      <column type="gchararray"/>
       <!-- column-name running -->
       <column type="gchararray"/>
       <!-- column-name whatis -->
This page took 0.193944 seconds and 4 git commands to generate.