~jconti/recent-notifications/trunk

« back to all changes in this revision

Viewing changes to recent_notifications/Main.py

  • Committer: Jason Conti
  • Date: 2010-04-24 19:23:17 UTC
  • Revision ID: jason.conti@gmail.com-20100424192317-3f0ap64kcdr31278
Adding new panel icons to better match the ubuntu humanity theme. Moved to lucid so removed the code to build karmic packages, since I can't test them at the moment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    self._image.set_from_pixbuf(self._read_icon)
35
35
 
36
36
    self._button = gtk.ToggleButton()
 
37
    self._button.set_relief(gtk.RELIEF_NONE)
37
38
    self._button.set_image(self._image)
38
39
    self._button.connect("button_press_event", self.do_not_eat_button_press)
39
40
    self._button.connect("toggled", self.on_button_toggled)
99
100
 
100
101
  def load_icons(self, size):
101
102
    """Loads icons from the default icon theme."""
102
 
    self._read_icon = load_icon("notification-read", size)
103
 
    self._unread_icon = load_icon("notification-unread", size)
 
103
    self._read_icon = load_icon("humanity-notification-read", size)
 
104
    self._unread_icon = load_icon("humanity-notification-unread", size)
104
105
 
105
106
  def update(self):
106
107
    """Updates the applet icon and unread messages tooltip."""