| Submitter | Joshua Lock |
|---|---|
| Date | April 5, 2012, 6:29 p.m. |
| Message ID | <09a0f7d44d08daf341277ce9dd94061622104594.1333650445.git.josh@linux.intel.com> |
| Download | mbox | patch |
| Permalink | /patch/25227/ |
| State | Accepted |
| Commit | 82ea0619e9ecf9107b75692385bcf1434ea8a307 |
| Headers | show |
Comments
Patch
diff --git a/lib/bb/ui/crumbs/hobwidget.py b/lib/bb/ui/crumbs/hobwidget.py index edb85db..a7e5538 100644 --- a/lib/bb/ui/crumbs/hobwidget.py +++ b/lib/bb/ui/crumbs/hobwidget.py @@ -241,7 +241,7 @@ class HobAltButton(gtk.Button): """ @staticmethod def desensitise_on_state_change_cb(button, state): - if button.get_state() == gtk.STATE_INSENSITIVE: + if not button.get_property("sensitive"): HobAltButton.set_text(button, False) else: HobAltButton.set_text(button, True)
The gtk.Widget.get_sensitive() convenience method is only available in Gtk+ 2.22 or later, instead use the sensitive property of the gobject to determine whether the widget is sensitive or not. Signed-off-by: Joshua Lock <josh@linux.intel.com> --- lib/bb/ui/crumbs/hobwidget.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)