From: Andrew Flegg Date: Fri, 23 Oct 2009 08:21:24 +0000 (+0100) Subject: Rename background image, and make code render it and place the buttons correctly. X-Git-Tag: 0.2.0~9 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=4d9068582eacbe720c7341a3a7f735ba487f49d9;p=hermes Rename background image, and make code render it and place the buttons correctly. --- diff --git a/package/share/background.png b/package/share/background.png new file mode 100644 index 0000000..c6c9412 Binary files /dev/null and b/package/share/background.png differ diff --git a/package/share/hermes_background.png b/package/share/hermes_background.png deleted file mode 100644 index 6321ffb..0000000 Binary files a/package/share/hermes_background.png and /dev/null differ diff --git a/package/src/gui.py b/package/src/gui.py index c283ff1..75df8ff 100755 --- a/package/src/gui.py +++ b/package/src/gui.py @@ -276,8 +276,13 @@ class HermesGUI: # -- Main window buttons... # + self.background, mask = gtk.gdk.pixbuf_new_from_file('/opt/hermes/share/background.png').render_pixmap_and_mask() + self.window.realize() + self.window.window.set_back_pixmap(self.background, False) + alignment = gtk.Alignment(xalign=0.5, yalign=0.8, xscale=0.8) box = gtk.HButtonBox() - self.window.add(box) + alignment.add(box) + self.window.add(alignment) box.set_property('layout-style', gtk.BUTTONBOX_SPREAD) button = hildon.Button(gtk.HILDON_SIZE_THUMB_HEIGHT, hildon.BUTTON_ARRANGEMENT_VERTICAL, @@ -291,7 +296,7 @@ class HermesGUI: button.set_property('width-request', 250) button.connect('clicked', self.doSync, True) box.add(button) - + # -- Application menu... # menu = hildon.AppMenu()