summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobwidget.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-04-05 10:17:57 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-11 00:04:41 +0100
commit0d001e8c04d78cbeecebd1f4439a9ae7db300e3f (patch)
treee9afe5eaf0fad1606a00ae1e55c3ff5b3c00f54f /bitbake/lib/bb/ui/crumbs/hobwidget.py
parentb2fb7ddedda5bbd72498af58313f104f2a206356 (diff)
downloadpoky-0d001e8c04d78cbeecebd1f4439a9ae7db300e3f.tar.gz
lib/bb/ui/crumbs/hobwidget: replace new API
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. (Bitbake rev: 82ea0619e9ecf9107b75692385bcf1434ea8a307) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobwidget.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobwidget.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py
index edb85db683..a7e5538b18 100644
--- a/bitbake/lib/bb/ui/crumbs/hobwidget.py
+++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py
@@ -241,7 +241,7 @@ class HobAltButton(gtk.Button):
241 """ 241 """
242 @staticmethod 242 @staticmethod
243 def desensitise_on_state_change_cb(button, state): 243 def desensitise_on_state_change_cb(button, state):
244 if button.get_state() == gtk.STATE_INSENSITIVE: 244 if not button.get_property("sensitive"):
245 HobAltButton.set_text(button, False) 245 HobAltButton.set_text(button, False)
246 else: 246 else:
247 HobAltButton.set_text(button, True) 247 HobAltButton.set_text(button, True)