conduit r1457 - in trunk: . conduit/hildonui



Author: jstowers
Date: Wed May  7 04:56:07 2008
New Revision: 1457
URL: http://svn.gnome.org/viewvc/conduit?rev=1457&view=rev

Log:
2008-05-07  John Stowers  <john stowers gmail com>

	* conduit/gtkui/Canvas.py:


Modified:
   trunk/ChangeLog
   trunk/conduit/hildonui/Canvas.py
   trunk/conduit/hildonui/UI.py

Modified: trunk/conduit/hildonui/Canvas.py
==============================================================================
--- trunk/conduit/hildonui/Canvas.py	(original)
+++ trunk/conduit/hildonui/Canvas.py	Wed May  7 04:56:07 2008
@@ -279,10 +279,11 @@
         get in the way.
         """
         if self.welcomeMessage == None:
+            c_x,c_y,c_w,c_h = self.get_bounds()
             self.welcomeMessage = goocanvas.Text(  
-                                    x=self.CANVAS_WIDTH/2, 
-                                    y=self.CANVAS_HEIGHT/3, 
-                                    width=2*self.CANVAS_WIDTH/5, 
+                                    x=c_w/2, 
+                                    y=c_w/3, 
+                                    width=3*c_w/5, 
                                     text=self.WELCOME_MESSAGE, 
                                     anchor=gtk.ANCHOR_CENTER,
                                     alignment=pango.ALIGN_CENTER,

Modified: trunk/conduit/hildonui/UI.py
==============================================================================
--- trunk/conduit/hildonui/UI.py	(original)
+++ trunk/conduit/hildonui/UI.py	Wed May  7 04:56:07 2008
@@ -58,7 +58,6 @@
         main_pane.add1(self.provider_box)
         main_pane.add2(self.canvas)
         self.mainWindow.add(main_pane)
-        gobject.set_application_name("Conduit")
 
     def set_model(self, syncSet):
         self.syncSet = syncSet



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]