[pygobject] Dot not clobber original Gdk/Gtk functions with overrides



commit 25a6f90f28b065dd4f1cd352826598577402dc0b
Author: Martin Pitt <martinpitt gnome org>
Date:   Mon Mar 4 17:16:22 2013 +0100

    Dot not clobber original Gdk/Gtk functions with overrides
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686835

 gi/overrides/Gdk.py |    3 ++-
 gi/overrides/Gtk.py |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gi/overrides/Gdk.py b/gi/overrides/Gdk.py
index 3f24ba8..14edc70 100644
--- a/gi/overrides/Gdk.py
+++ b/gi/overrides/Gdk.py
@@ -322,7 +322,8 @@ class Cursor(Gdk.Cursor):
 Cursor = override(Cursor)
 __all__.append('Cursor')
 
-Gdk.color_parse = strip_boolean_result(Gdk.color_parse)
+color_parse = strip_boolean_result(Gdk.color_parse)
+__all__.append('color_parse')
 
 
 # Note, we cannot override the entire class as Gdk.Atom has no gtype, so just
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 9f0ea0d..7873f34 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1495,7 +1495,8 @@ def main_quit(*args):
 
 __all__.append('main_quit')
 
-Gtk.stock_lookup = strip_boolean_result(Gtk.stock_lookup)
+stock_lookup = strip_boolean_result(Gtk.stock_lookup)
+__all__.append('stock_lookup')
 
 initialized, argv = Gtk.init_check(sys.argv)
 sys.argv = list(argv)


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