~jconti/recent-notifications/trunk

« back to all changes in this revision

Viewing changes to unity/MessageList.py

  • Committer: Jason Conti
  • Date: 2011-04-26 21:19:50 UTC
  • Revision ID: jason.conti@gmail.com-20110426211950-jud51n6myc18oxzo
Setting most of the colors with a gtk rc style now, except RoundedBox, because I can't figure out how to get the background style color. Seems like it should be widget.style.bg[state] however that list is always empty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    self._current_theme = None
29
29
 
30
30
    self._viewport = Gtk.Viewport()
 
31
    self._viewport.set_name("message_list")
31
32
    self.add(self._viewport)
32
33
 
33
34
    self._vbox = Gtk.VBox()
80
81
      else:
81
82
        break
82
83
 
83
 
  def set_theme(self, theme):
84
 
    """Sets the theme of this message list"""
85
 
    self._current_theme = theme
86
 
 
87
 
    for item in self._messages:
88
 
      item.set_theme(theme)
89
 
 
90
 
    color = theme.get_background()
91
 
    color.set_bg_normal(self._viewport)
92
 
 
93
84
  def set_width(self, width):
94
85
    """Updates the default width and the width of all the childen message items."""
95
86
    self._width = width