# 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')
depends=('bash' 'gtk2-perl' 'gksu' 'sed')
source=('aldm' 'aldm-gui' 'aldm.ui')
md5sums=('0c16113ad13f4e79c9b76ec22cf97206'
- '6a73ae72411eda426e9f97cfa1942fdd'
- 'dd2f8a1d52200756edfb34afa5a574af')
+ '4ee212dc72229a8f92c53bafa7d50084'
+ '0cd99b332e56846039ac562d6c59abb5')
build() {
mkdir -p ${pkgdir}/usr/bin
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();
#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);
}
<columns>
<!-- column-name daemon -->
<column type="gchararray"/>
+ <!-- column-name state -->
+ <column type="gchararray"/>
<!-- column-name running -->
<column type="gchararray"/>
<!-- column-name whatis -->