bigboard r7344 - in trunk: . bigboard bigboard/themes



Author: marco
Date: Tue Jun  3 15:19:09 2008
New Revision: 7344
URL: http://svn.gnome.org/viewvc/bigboard?rev=7344&view=rev

Log:
Remove hardcoded font sizes from the core classes.

Modified:
   trunk/bigboard/overview_table.py
   trunk/bigboard/themes/default.py
   trunk/main.py

Modified: trunk/bigboard/overview_table.py
==============================================================================
--- trunk/bigboard/overview_table.py	(original)
+++ trunk/bigboard/overview_table.py	Tue Jun  3 15:19:09 2008
@@ -18,7 +18,7 @@
             box.append(left_control)
             left_control.set_property("padding-right", 8)
             
-        box.append(hippo.CanvasText(text=text, font="Bold 14px", xalign=hippo.ALIGNMENT_START))
+        box.append(hippo.CanvasText(text=text, font="Bold", xalign=hippo.ALIGNMENT_START))
 
         if right_control:
             box.append(right_control, flags=hippo.PACK_END)

Modified: trunk/bigboard/themes/default.py
==============================================================================
--- trunk/bigboard/themes/default.py	(original)
+++ trunk/bigboard/themes/default.py	Tue Jun  3 15:19:09 2008
@@ -73,8 +73,7 @@
         ctx = pangocairo.CairoContext(cr)
         layout = ctx.create_layout()
         layout.set_text('More')
-        desc = pango.FontDescription('Sans 10')
-        layout.set_font_description(desc)        
+        layout.set_font_description(style.get_font()) 
         (more_w, more_h) = map(lambda x: x/pango.SCALE, layout.get_size())
         more_xspace = width - more_w
         if more_xspace < 0: more_xspace = 0

Modified: trunk/main.py
==============================================================================
--- trunk/main.py	(original)
+++ trunk/main.py	Tue Jun  3 15:19:09 2008
@@ -431,7 +431,7 @@
         self.__unpopout_button.connect("activated", lambda button: self.__do_unpopout())
         self._header_box.append(self.__unpopout_button, hippo.PACK_END)
      
-        self._title = hippo.CanvasText(classes='header', text="My Desktop", font="Bold 14px", xalign=hippo.ALIGNMENT_START, padding_left=8)
+        self._title = hippo.CanvasText(classes='header', text="My Desktop", font="Bold", xalign=hippo.ALIGNMENT_START, padding_left=8)
      
         self._header_box.append(self._title, hippo.PACK_EXPAND)
         



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