Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-07-31 19:57:13 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-08-01 11:23:20 (GMT)
commit45a4ed104b40b47b5b04ddfa3bd9e36a72e0c960 (patch)
tree51ae627e123a87653f2fd360ad9721314caedd28
parent2c7e2c393a1d0732f74dae9b95714586378d4286 (diff)
Do not paint arrow in radiopalette
-rw-r--r--src/sugar/graphics/radiopalette.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/sugar/graphics/radiopalette.py b/src/sugar/graphics/radiopalette.py
index 803e556..87048f5 100644
--- a/src/sugar/graphics/radiopalette.py
+++ b/src/sugar/graphics/radiopalette.py
@@ -48,24 +48,6 @@ class RadioMenuButton(ToolButton):
else:
self.palette.popup(immediate=True, state=Palette.SECONDARY)
- def do_expose_event(self, event):
- ToolButton.do_expose_event(self, event)
- if not self.palette:
- return
-
- if self.palette.is_up():
- type = gtk.ARROW_UP
- else:
- type = gtk.ARROW_DOWN
-
- alloc = self.allocation
- x = alloc.x + alloc.width / 2 - style.TOOLBAR_ARROW_SIZE / 2
- y = alloc.y + alloc.height - int(style.TOOLBAR_ARROW_SIZE * .85)
- self.get_style().paint_arrow(event.window,
- gtk.STATE_NORMAL, gtk.SHADOW_NONE, event.area, self,
- None, type, True,
- x, y, style.TOOLBAR_ARROW_SIZE, style.TOOLBAR_ARROW_SIZE)
-
class RadioToolsButton(RadioMenuButton):
def __init__(self, **kwargs):
RadioMenuButton.__init__(self, **kwargs)