summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-09-26 14:41:14 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-09-26 14:41:14 +0000
commit0563e5f58e5815bbd3e6e57e0e6a8835ac23ef62 (patch)
treeaf1ad23bee083da1d0e447b63fbac22fc5e33d19
parentacc70d598c15c144ef113cd88ed56ec9c373704b (diff)
downloaddraksnapshot-0563e5f58e5815bbd3e6e57e0e6a8835ac23ef62.tar
draksnapshot-0563e5f58e5815bbd3e6e57e0e6a8835ac23ef62.tar.gz
draksnapshot-0563e5f58e5815bbd3e6e57e0e6a8835ac23ef62.tar.bz2
draksnapshot-0563e5f58e5815bbd3e6e57e0e6a8835ac23ef62.tar.xz
draksnapshot-0563e5f58e5815bbd3e6e57e0e6a8835ac23ef62.zip
set status icon's icon once forever (no need to set again the same
image over & over) git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@246735 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-rwxr-xr-xdraksnapshot-applet6
1 files changed, 1 insertions, 5 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet
index 2c28075..f963bc2 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -83,6 +83,7 @@ $icon->signal_connect(popup_menu => sub {
$menu and $menu->popup(undef, undef, undef, undef, $button, $time);
});
$icon->signal_connect(activate => \&configure);
+$icon->set_from_pixbuf(gtkcreate_pixbuf('draksnapshot'));
my $hal_dn = 'org.freedesktop.Hal';
@@ -214,11 +215,6 @@ sub setState {
my ($state_type) = @_;
my $checkme;
my $arr = $state{$state_type}{menu};
- state $pixbuf;
- if (!$pixbuf) {
- $pixbuf = gtkcreate_pixbuf('draksnapshot');
- $icon->set_from_pixbuf($pixbuf);
- }
$icon->set_tooltip(formatAlaTeX(translate($state{$state_type}{tt}[0])));
$icon->set_visible($state_type ne 'okay');