[gnome-clocks] Force redraw when toggling selection mode
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Force redraw when toggling selection mode
- Date: Mon, 20 Aug 2012 21:43:37 +0000 (UTC)
commit ba2674b24faeb71f66d546433722ddb55b8f2afd
Author: Paolo Borelli <pborelli gnome org>
Date: Mon Aug 20 23:42:10 2012 +0200
Force redraw when toggling selection mode
gnomeclocks/widgets.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gnomeclocks/widgets.py b/gnomeclocks/widgets.py
index 3a8d7fc..9b1da5b 100644
--- a/gnomeclocks/widgets.py
+++ b/gnomeclocks/widgets.py
@@ -649,8 +649,12 @@ class SelectableIconView(Gtk.IconView):
return selection
def set_selection_mode(self, active):
- self.selection_mode = active
- self.renderer_pixbuf.set_property("toggle_visible", active)
+ if self.selection_mode != active:
+ self.selection_mode = active
+ self.renderer_pixbuf.set_property("toggle_visible", active)
+
+ # force redraw
+ self.queue_draw()
# FIXME: override both button press and release to check
# that a specfic item is clicked? see libgd...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]