pygtk r2958 - in trunk: . examples/gtk



Author: paulp
Date: Thu Jan 31 21:07:41 2008
New Revision: 2958
URL: http://svn.gnome.org/viewvc/pygtk?rev=2958&view=rev

Log:
Use conceptually correct set_flags() calls in examples.

Modified:
   trunk/ChangeLog
   trunk/examples/gtk/scrollable.py
   trunk/examples/gtk/widget.py

Modified: trunk/examples/gtk/scrollable.py
==============================================================================
--- trunk/examples/gtk/scrollable.py	(original)
+++ trunk/examples/gtk/scrollable.py	Thu Jan 31 21:07:41 2008
@@ -88,7 +88,7 @@
     # GtkWidget
 
     def do_realize(self):
-        self.set_flags(self.flags() | gtk.REALIZED)
+        self.set_flags(gtk.REALIZED)
 
         self.window = gdk.Window(
             self.get_parent_window(),
@@ -142,7 +142,7 @@
         return False
 
     def do_map(self):
-        self.set_flags(self.flags() | gtk.MAPPED)
+        self.set_flags(gtk.MAPPED)
         for child in self._children:
             flags = child.widget.flags()
             if flags & gtk.VISIBLE:

Modified: trunk/examples/gtk/widget.py
==============================================================================
--- trunk/examples/gtk/widget.py	(original)
+++ trunk/examples/gtk/widget.py	Thu Jan 31 21:07:41 2008
@@ -34,7 +34,7 @@
         # then draw on
 
         # First set an internal flag telling that we're realized
-        self.set_flags(self.flags() | gtk.REALIZED)
+        self.set_flags(gtk.REALIZED)
 
         # Create a new gdk.Window which we can draw on.
         # Also say that we want to receive exposure events by setting



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