summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 630e7b87a2..1d012f937e 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -223,20 +223,12 @@ class Builder(gtk.Window):
223 def create_visual_elements(self): 223 def create_visual_elements(self):
224 self.set_title("Hob - Image Creator") 224 self.set_title("Hob - Image Creator")
225 self.set_icon_name("applications-development") 225 self.set_icon_name("applications-development")
226 self.set_position(gtk.WIN_POS_CENTER_ALWAYS)
227 self.set_resizable(True) 226 self.set_resizable(True)
228 window_width = self.get_screen().get_width() 227 window_width = self.get_screen().get_width()
229 window_height = self.get_screen().get_height() 228 window_height = self.get_screen().get_height()
230 if window_width >= hwc.MAIN_WIN_WIDTH: 229 if window_width >= hwc.MAIN_WIN_WIDTH:
231 window_width = hwc.MAIN_WIN_WIDTH 230 window_width = hwc.MAIN_WIN_WIDTH
232 window_height = hwc.MAIN_WIN_HEIGHT 231 window_height = hwc.MAIN_WIN_HEIGHT
233 else:
234 lbl = "<b>Screen dimension mismatched</b>\nfor better usability and visual effects,"
235 lbl = lbl + " the screen dimension should be 1024x768 or above."
236 dialog = CrumbsMessageDialog(self, lbl, gtk.STOCK_DIALOG_INFO)
237 dialog.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
238 dialog.run()
239 dialog.destroy()
240 self.set_size_request(window_width, window_height) 232 self.set_size_request(window_width, window_height)
241 233
242 self.vbox = gtk.VBox(False, 0) 234 self.vbox = gtk.VBox(False, 0)