~chrisccoulson/lernid/no-mozembed

« back to all changes in this revision

Viewing changes to lernid/widgets/NativeChatroom.py

  • Committer: John S Gruber
  • Date: 2011-05-12 16:26:42 UTC
  • mfrom: (216.1.1 lernid.fix716937)
  • Revision ID: johnsgruber@gmail.com-20110512162642-1zgstcdxqhmbei59
LP: #716937: Correct color setting in tags in Classroom.py and 
NativeChatroom.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
        self._buffer = self._textview.get_buffer()
60
60
        text_color = self._textview.get_style().text[gtk.STATE_INSENSITIVE]
61
 
        self._buffer.create_tag('gray', foreground=text_color)
 
61
        self._buffer.create_tag('gray', foreground_gdk=text_color)
62
62
        highlight = self._textview.get_style().bg[gtk.STATE_SELECTED]
63
 
        self._buffer.create_tag('highlight', foreground=highlight)
 
63
        self._buffer.create_tag('highlight', foreground_gdk=highlight)
64
64
 
65
65
        self._input = builder.get_object('input')
66
66
        self._input.connect('icon-press', self._send_text)