Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
authorAndrew Flegg <andrew@bleb.org>
Fri, 23 Oct 2009 08:21:24 +0000 (09:21 +0100)
committerAndrew Flegg <andrew@bleb.org>
Fri, 23 Oct 2009 08:21:24 +0000 (09:21 +0100)
package/share/background.png [new file with mode: 0644]
package/share/hermes_background.png [deleted file]
package/src/gui.py

diff --git a/package/share/background.png b/package/share/background.png
new file mode 100644 (file)
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 (file)
index 6321ffb..0000000
Binary files a/package/share/hermes_background.png and /dev/null differ
index c283ff1..75df8ff 100755 (executable)
@@ -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()

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment