diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-02-22 10:50:35 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-02-22 10:50:35 +0000 |
commit | 1436364dd1686f030f6925f93b2c62756ae398be (patch) | |
tree | fba1e8792f615d35c9cbb2adeee739ddb2fc5684 /mdkapplet | |
parent | 37d6f64a05bbf6c4bdb4c3efb7e58fcbf4d164bb (diff) | |
download | mgaonline-1436364dd1686f030f6925f93b2c62756ae398be.tar mgaonline-1436364dd1686f030f6925f93b2c62756ae398be.tar.gz mgaonline-1436364dd1686f030f6925f93b2c62756ae398be.tar.bz2 mgaonline-1436364dd1686f030f6925f93b2c62756ae398be.tar.xz mgaonline-1436364dd1686f030f6925f93b2c62756ae398be.zip |
- new icons
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -84,8 +84,8 @@ gtkadd(my $icon = Gtk2::TrayIcon->new("MdkApplet"), ) ); -print "Setting orange ...\n"; -$menu = setImage('orange'); +print "Setting okay ...\n"; +$menu = setState('okay'); $eventbox->signal_connect(button_press_event => sub { $_[1]->button == 1 and showMainWindow(); #just for testing $_[1]->button == 3 && $menu and $menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time); @@ -168,10 +168,10 @@ sub browser { ); $Br{$wm} } -sub setImage { - my $file = shift; - my $arr = $state{$file}{menu}; - my $tmp = gtkcreate_pixbuf($file); +sub setState { + my $state_type = shift; + my $arr = $state{$state_type}{menu}; + my $tmp = gtkcreate_pixbuf($state{$state_type}{colour}); $img->set_from_pixbuf($tmp); my $menu = Gtk2::Menu->new; foreach (@$arr) { |