From 0d001e8c04d78cbeecebd1f4439a9ae7db300e3f Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 5 Apr 2012 10:17:57 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobwidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): """ @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) -- cgit v1.2.3-54-g00ecf