summaryrefslogtreecommitdiff
blob: fcb7d1f0f2419f08213344433ad43d5730948c1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Replace some GNOME icons with their FreeDesktop equivalents
so that it works with oxygen as a theme.

--- specto-0.3.1/spectlib/notifier.py
+++ specto-0.3.1/spectlib/notifier.py
@@ -194,11 +194,11 @@
         """ show the right icon for the status from the watch. """
         watch = self.specto.watch_db[id]
         statusbar = self.wTree.get_widget("statusbar1")
-        icon = self.get_icon("error", 50, False)
+        icon = self.get_icon("dialog-error", 50, False)
 
         try:
             if status == "checking":
-                icon = self.get_icon("reload", 0, False)
+                icon = self.get_icon("view-refresh", 0, False)
                 statusbar.push(0, (datetime.today().strftime("%H:%M") + " - " + _('The watch "%s" is checking.') % watch.name))
 
             elif status == "idle":
@@ -220,8 +220,8 @@
 
             elif status == "error":
                 statusbar.push(0, (datetime.today().strftime("%H:%M") + " - " + _('The watch "%s" has a problem.') % watch.name))
-                balloon_icon = self.get_icon("error", 0, True)
-                icon = self.get_icon("error", 50, False)
+                balloon_icon = self.get_icon("dialog-error", 0, True)
+                icon = self.get_icon("dialog-error", 50, False)
                 if self.specto.specto_gconf.get_entry("pop_toast") == True:
                     self.balloon.show_toast(watch.error_message, balloon_icon, urgency="critical", summary=(_("%s encountered a problem") % watch.name))
                 if self.specto.specto_gconf.get_entry("use_problem_sound"):