[bitbake-devel] [PATCH 2/3] lib/bb/ui/crumbs/hobwidget: replace new API
Joshua Lock
josh at linux.intel.com
Thu Apr 5 18:29:37 UTC 2012
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 at linux.intel.com>
---
lib/bb/ui/crumbs/hobwidget.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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)
--
1.7.7.6
More information about the bitbake-devel
mailing list