Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/palette.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-08-15 19:32:10 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-08-15 19:32:10 (GMT)
commitd7d1e172a3995b44350527814a7b3ac0fda3feff (patch)
treea23aa089f78cc67a79fd1bb308718fc486d3d686 /sugar/graphics/palette.py
parent3bb86e0cbbbd5f93b14f0672a88a43776ec47d94 (diff)
Let the button/theme deal with prelight. I don't think
it fits inside palette drawing.
Diffstat (limited to 'sugar/graphics/palette.py')
-rw-r--r--sugar/graphics/palette.py22
1 files changed, 6 insertions, 16 deletions
diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py
index 2d6b35b..ea298cb 100644
--- a/sugar/graphics/palette.py
+++ b/sugar/graphics/palette.py
@@ -577,29 +577,19 @@ class WidgetInvoker(Invoker):
def draw_invoker_rect(self, event, palette):
style = self._widget.style
- if palette.is_up():
- gap = _calculate_gap(self.get_rect(), palette.get_rect())
-
- if gap:
- style.paint_box_gap(event.window, gtk.STATE_PRELIGHT,
- gtk.SHADOW_IN, event.area, self._widget,
- "palette-invoker",
- self._widget.allocation.x,
- self._widget.allocation.y,
- self._widget.allocation.width,
- self._widget.allocation.height,
- gap[0], gap[1], gap[2])
- else:
- style.paint_box(event.window, gtk.STATE_PRELIGHT,
+ gap = _calculate_gap(self.get_rect(), palette.get_rect())
+ if gap:
+ style.paint_box_gap(event.window, gtk.STATE_PRELIGHT,
gtk.SHADOW_IN, event.area, self._widget,
"palette-invoker",
self._widget.allocation.x,
self._widget.allocation.y,
self._widget.allocation.width,
- self._widget.allocation.height)
+ self._widget.allocation.height,
+ gap[0], gap[1], gap[2])
else:
style.paint_box(event.window, gtk.STATE_PRELIGHT,
- gtk.SHADOW_NONE, event.area, self._widget,
+ gtk.SHADOW_IN, event.area, self._widget,
"palette-invoker",
self._widget.allocation.x,
self._widget.allocation.y,