diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-13 12:56:51 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-01 15:28:23 +0100 |
commit | c53c7418d392452450352ca2175667dbdbd92401 (patch) | |
tree | f60be6f673e47aee6a317ce8730ecb0fac849255 /lib/bb/ui | |
parent | 710351610e3ca4a1b61abc67564f84907e9b2f1c (diff) | |
download | bitbake-c53c7418d392452450352ca2175667dbdbd92401.tar.gz |
image-writer/goggle: Disable pygtkcompat problems
Disable the problematic gtk usage for use with pygtkcompat. The following
commit removes these tools/UIs entirely but we may as well leave this
piece in the history in case anyone does want a starting point for reusing
them.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui')
-rw-r--r-- | lib/bb/ui/crumbs/hig/crumbsdialog.py | 2 | ||||
-rw-r--r-- | lib/bb/ui/crumbs/hobwidget.py | 8 | ||||
-rw-r--r-- | lib/bb/ui/crumbs/progressbar.py | 15 |
3 files changed, 13 insertions, 12 deletions
diff --git a/lib/bb/ui/crumbs/hig/crumbsdialog.py b/lib/bb/ui/crumbs/hig/crumbsdialog.py index c679f9a07..73b9234c2 100644 --- a/lib/bb/ui/crumbs/hig/crumbsdialog.py +++ b/lib/bb/ui/crumbs/hig/crumbsdialog.py @@ -36,7 +36,7 @@ class CrumbsDialog(gtk.Dialog): def __init__(self, title="", parent=None, flags=0, buttons=None): super(CrumbsDialog, self).__init__(title, parent, flags, buttons) - self.set_property("has-separator", False) # note: deprecated in 2.22 + #FIXME self.set_property("has-separator", False) # note: deprecated in 2.22 self.set_border_width(6) self.vbox.set_property("spacing", 12) diff --git a/lib/bb/ui/crumbs/hobwidget.py b/lib/bb/ui/crumbs/hobwidget.py index 1f51a3cf7..3f6138b27 100644 --- a/lib/bb/ui/crumbs/hobwidget.py +++ b/lib/bb/ui/crumbs/hobwidget.py @@ -273,13 +273,13 @@ class BaseHobButton(gtk.Button): style = button.get_style() style = gtk.rc_get_style_by_paths(gtk.settings_get_default(), 'gtk-button', 'gtk-button', gobject.TYPE_NONE) - button.set_flags(gtk.CAN_DEFAULT) + #FIXME button.set_flags(gtk.CAN_DEFAULT) button.grab_default() # label = "<span size='x-large'><b>%s</b></span>" % gobject.markup_escape_text(button.get_label()) label = button.get_label() button.set_label(label) - button.child.set_use_markup(True) + #FIXME button.child.set_use_markup(True) class HobButton(BaseHobButton): """ @@ -399,8 +399,8 @@ class HobInfoButton(gtk.EventBox): self.dialog = PropertyDialog(title = '', parent = self.my_parent, information = self.tip_markup, - flags = gtk.DIALOG_DESTROY_WITH_PARENT - | gtk.DIALOG_NO_SEPARATOR) + flags = gtk.DIALOG_DESTROY_WITH_PARENT) + #FMXIE | gtk.DIALOG_NO_SEPARATOR button = self.dialog.add_button("Close", gtk.RESPONSE_CANCEL) HobAltButton.style_button(button) diff --git a/lib/bb/ui/crumbs/progressbar.py b/lib/bb/ui/crumbs/progressbar.py index 03230ae8a..ba3c7a075 100644 --- a/lib/bb/ui/crumbs/progressbar.py +++ b/lib/bb/ui/crumbs/progressbar.py @@ -28,13 +28,14 @@ class HobProgressBar (gtk.ProgressBar): def set_rcstyle(self, status): rcstyle = gtk.RcStyle() - rcstyle.fg[2] = gtk.gdk.Color(HobColors.BLACK) - if status == "stop": - rcstyle.bg[3] = gtk.gdk.Color(HobColors.WARNING) - elif status == "fail": - rcstyle.bg[3] = gtk.gdk.Color(HobColors.ERROR) - else: - rcstyle.bg[3] = gtk.gdk.Color(HobColors.RUNNING) +#FIXME +# rcstyle.fg[2] = gtk.gdk.Color(HobColors.BLACK) +# if status == "stop": +# rcstyle.bg[3] = gtk.gdk.Color(HobColors.WARNING) +# elif status == "fail": +# rcstyle.bg[3] = gtk.gdk.Color(HobColors.ERROR) +# else: +# rcstyle.bg[3] = gtk.gdk.Color(HobColors.RUNNING) self.modify_style(rcstyle) def set_title(self, text=None): |