summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-02-29 22:15:26 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-01 15:51:35 +0000
commit7ee14c19940100143f930e5d19bf45e6af140f01 (patch)
tree555876c3b491961332cab08bd10e0eeaa748162b /bitbake
parentd76e62fdd8363b430df03a79c73d16c99e0aab57 (diff)
downloadpoky-7ee14c19940100143f930e5d19bf45e6af140f01.tar.gz
Hob(crumbs/builder.py): adjust the main window's position and ignore the case lower than 1024x768.
* don't set the position of the main window to the center always * don't show the message to users if their screen dimensions are lower than 1024x768 (Bitbake rev: 1afa500cb1cb5c10fc0a3ea0f65c7ecc8887efa8) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-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)