~ubuntu-branches/ubuntu/oneiric/checkbox/oneiric-proposed

« back to all changes in this revision

Viewing changes to checkbox_gtk/gtk_interface.py

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2011-09-07 02:51:45 UTC
  • mfrom: (32.1.1 ubuntu-checkbox)
  • Revision ID: mathieu-tl@ubuntu.com-20110907025145-fju4h16ejfk2a7ru
Tags: 0.12.6
New upstream release (LP: #841983):
[ Daniel Manrique ]
Work around PyGTK API changes that kept checkbox from starting up
(LP: #839675).

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
 
79
79
        # Set background color for head
80
80
        eventbox_head = self._get_widget("eventbox_head")
81
 
        color = Gdk.color_parse("#F0EBE2")[1]
 
81
        color = Gdk.color_parse("#F0EBE2")
 
82
        #HACK: LP #839675
 
83
        if isinstance(color, tuple): color = color[1]
82
84
        eventbox_head.modify_bg(Gtk.StateType.NORMAL, color)
83
85
 
84
86
        # Set and apply initial/default dialog title