lib/bb/ui/crumbs/persistenttooltip: replace 2.22 API

CentOS 6.x doesn't ship with new enough pygtk for this API.

(Bitbake rev: 2b6ce54cdc23c5fc1325e42634287134f55aacbf)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Lock
2012-04-04 16:07:45 -07:00
committed by Richard Purdie
parent 0d5e808777
commit b2fb7ddedd

View File

@@ -87,7 +87,7 @@ class PersistentTooltip(gtk.Window):
self.button = gtk.Button()
self.button.set_image(img)
self.button.connect("clicked", self._dismiss_cb)
self.button.set_can_default(True)
self.button.set_flags(gtk.CAN_DEFAULT)
self.button.grab_focus()
self.button.show()
vbox = gtk.VBox(False, 0)