bigboard r7422 - trunk/bigboard



Author: otaylor
Date: Mon Aug 18 19:00:06 2008
New Revision: 7422
URL: http://svn.gnome.org/viewvc/bigboard?rev=7422&view=rev

Log:
Remove a bit of dead code from big_widgets.py

Modified:
   trunk/bigboard/big_widgets.py

Modified: trunk/bigboard/big_widgets.py
==============================================================================
--- trunk/bigboard/big_widgets.py	(original)
+++ trunk/bigboard/big_widgets.py	Mon Aug 18 19:00:06 2008
@@ -187,15 +187,6 @@
     def get_arrow_type(self):
         return self.__arrow_type
 
-class GradientHeader(hippo.CanvasGradient):
-    def __init__(self, **kwargs):
-        hippo.CanvasGradient.__init__(self, 
-                                      orientation=hippo.ORIENTATION_HORIZONTAL,
-                                      start_color=0xF4F4F4FF, 
-                                      end_color=0xC7C7C7FF,
-                                      padding_left=4,
-                                      color=0x333333FF, **kwargs)        
-        
 class ActionLink(hippo.CanvasLink):
     def __init__(self, underline=pango.UNDERLINE_NONE, **kwargs):
         hippo.CanvasLink.__init__(self, **kwargs)
@@ -212,17 +203,6 @@
         if len(attrs.get_iterator().get_attrs()) == 1: 
             self.set_property("attributes", attrs)
             
-class ButtonLabel(gtk.Label):
-    def __init__(self, ypadding=0):
-        super(ButtonLabel, self).__init__()
-        self.__ypadding = ypadding
-    
-    def do_size_request(self, req):
-        gtk.Label.do_size_request(self, req)
-        req.height += (self.__ypadding*2)
-
-gobject.type_register(ButtonLabel)
-
 class Button(hippo.CanvasButton):
     def __init__(self, label_xpadding=0, label_ypadding=0, label=''):
         super(Button, self).__init__()
@@ -238,7 +218,7 @@
 
         # Avoid some padding
         button.set_name('bigboard-nopad-button')
-        child = button.get_child() #gtk.Label() #ButtonLabel(ypadding=label_ypadding)
+        child = button.get_child()
         child.set_alignment(0.5, 0)
         child.set_padding(self.__label_xpadding, self.__label_ypadding)
 
@@ -325,12 +305,6 @@
         hippo.CanvasImageButton.__init__(self, **kwargs)
         CanvasURLImageMixin.__init__(self, url)
         self._set_is_button(True)
-        
-class CanvasMugshotURLImageButton(CanvasMugshotURLImageMixin, CanvasURLImageButton):
-    """A canvas image button that takes a Mugshot-relative image URL."""
-    def __init__(self, url=None, **kwargs):
-        CanvasURLImageButton.__init__(self, **kwargs)
-        CanvasMugshotURLImageMixin.__init__(self, url)
 
 class Separator(hippo.CanvasBox):
     def __init__(self):



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