summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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');