From a9dc72f08bf5bdd898fba429729acee0e7305838 Mon Sep 17 00:00:00 2001 From: bavery Date: Mon, 29 Feb 2016 10:26:02 -0800 Subject: bitbake: hob: removal of hob ui and associated ui files We've been gearing up the Toaster web UI to replace the Hob (GTK+ based) UI for some time now; Hob has basically been on life support for the past few releases. As of late last month in master, Toaster has the capability to select the packages in an image, removing the last thing that Hob could do that Toaster couldn't. To recap, the reasons why Hob is being removed include: - The code is tightly woven into BitBake, making it fragile. This means it needs significant QA and maintenance on an ongoing basis. - Some of the implementation is not ideal; we'll be able to remove some cruft from BitBake and OE-Core at the same time. - It's GTK+ 2 based, not the current GTK+ 3. - Toaster is now a much more capable UI and is being actively maintained The discussion about removing hob can be found at: http://lists.openembedded.org/pipermail/openembedded-architecture/2016-February/000082.html (Bitbake rev: be2cceea159c6ca9111eff3df87b98513eab6d72) Signed-off-by: bavery Signed-off-by: Richard Purdie --- .../lib/bb/ui/crumbs/hig/retrieveimagedialog.py | 51 ---------------------- 1 file changed, 51 deletions(-) delete mode 100644 bitbake/lib/bb/ui/crumbs/hig/retrieveimagedialog.py (limited to 'bitbake/lib/bb/ui/crumbs/hig/retrieveimagedialog.py') diff --git a/bitbake/lib/bb/ui/crumbs/hig/retrieveimagedialog.py b/bitbake/lib/bb/ui/crumbs/hig/retrieveimagedialog.py deleted file mode 100644 index 9017139850..0000000000 --- a/bitbake/lib/bb/ui/crumbs/hig/retrieveimagedialog.py +++ /dev/null @@ -1,51 +0,0 @@ -# -# BitBake Graphical GTK User Interface -# -# Copyright (C) 2013 Intel Corporation -# -# Authored by Cristiana Voicu -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -import gtk - -class RetrieveImageDialog (gtk.FileChooserDialog): - """ - This class is used to create a dialog that permits to retrieve - a custom image saved previously from Hob. - """ - def __init__(self, directory,title, parent, flags, buttons=None): - super(RetrieveImageDialog, self).__init__(title, None, gtk.FILE_CHOOSER_ACTION_OPEN, - (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,gtk.STOCK_OPEN, gtk.RESPONSE_OK)) - self.directory = directory - - # create visual elements on the dialog - self.create_visual_elements() - - def create_visual_elements(self): - self.set_show_hidden(True) - self.set_default_response(gtk.RESPONSE_OK) - self.set_current_folder(self.directory) - - vbox = self.get_children()[0].get_children()[0].get_children()[0] - for child in vbox.get_children()[0].get_children()[0].get_children()[0].get_children(): - vbox.get_children()[0].get_children()[0].get_children()[0].remove(child) - - label1 = gtk.Label() - label1.set_text("File system" + self.directory) - label1.show() - vbox.get_children()[0].get_children()[0].get_children()[0].pack_start(label1, expand=False, fill=False, padding=0) - vbox.get_children()[0].get_children()[1].get_children()[0].hide() - - self.get_children()[0].get_children()[1].get_children()[0].set_label("Select") -- cgit v1.2.3-54-g00ecf