~jconti/recent-notifications/trunk

« back to all changes in this revision

Viewing changes to recent_notifications/ImageToggleButton.py

  • Committer: Jason Conti
  • Date: 2011-03-01 22:03:26 UTC
  • Revision ID: jason.conti@gmail.com-20110301220326-8a62jpcinnumji8o
Adjusted applet padding.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
    self._image = gtk.Image()
36
36
    self.set_orient(self._current_orient)
37
 
    self._box.pack_start(self._image)
 
37
    self._box.pack_start(self._image, False, False, 2)
38
38
 
39
39
    self._label = gtk.Label("")
40
 
    self._box.pack_start(self._label)
 
40
    self._box.pack_start(self._label, False, False, 2)
41
41
 
42
42
  def set_label(self, text):
43
43
    """Sets the button label."""
84
84
    self.remove(old_box)
85
85
    self.add(self._box)
86
86
 
87
 
    self._box.pack_start(self._image)
88
 
    self._box.pack_start(self._label)
 
87
    self._box.pack_start(self._image, False, False, 2)
 
88
    self._box.pack_start(self._label, False, False, 2)
89
89
 
90
90
    self.show_all()
91
91
    old_box.destroy()