[pygtk/gtk-3.0: 46/55] Examples: use GtkWidget.get_visible



commit d7d71636d6c48ec879f382d38464c0fdf57a0d4f
Author: John Stowers <john stowers gmail com>
Date:   Tue Jul 13 16:56:02 2010 +1200

    Examples: use GtkWidget.get_visible

 examples/gtk/bin.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/examples/gtk/bin.py b/examples/gtk/bin.py
index fa8d7af..323f33b 100644
--- a/examples/gtk/bin.py
+++ b/examples/gtk/bin.py
@@ -12,7 +12,7 @@ class Bin(gtk.Container):
         self.child = child
 
     def do_remove(self, child):
-        widget_was_visible = child.flags() & gtk.VISIBLE
+        widget_was_visible = child.get_visible()
         child.unparent()
         self.child = None
 



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