summaryrefslogtreecommitdiff
path: root/gtk/__init__.py
diff options
context:
space:
mode:
authorJohn Ehresman <jpe@wingware.com>2005-09-16 20:22:45 +0000
committerJohn Ehresman <jpe@src.gnome.org>2005-09-16 20:22:45 +0000
commit8ac845e3999ba1e721e32944e3f25d566cd0e72e (patch)
treec1c0d3acfcba51b2a8a0d33b5af87b3c3d730a17 /gtk/__init__.py
parentef50d5b693af2145f8037896bf577740816d713b (diff)
downloadpygtk-8ac845e3999ba1e721e32944e3f25d566cd0e72e.tar.gz
Add gobject.Warning Warning subclass and redirect all g_log messages for
2005-09-16 John Ehresman <jpe@wingware.com> * gobjectmodule.c (initgobject): Add gobject.Warning Warning subclass and redirect all g_log messages for the "GLib", "Glib-GObject", and "GThread" domains to the python warning system * pangomodule.c (initpango): Add pango.Warning Warning subclass and redirect all g_log messages for the "Pango" domain to the python warning system * gtkmodule.c (initgtk): Move gtk Warning subclass from the gdk module to the gtk module and added redirections for g_log messages for the "Gdk" and "GdkPixbuf" domains to the python warning system * gtk/__init__.py: Set gdk.Warning = gtk.Warning for backward compatibility
Diffstat (limited to 'gtk/__init__.py')
-rw-r--r--gtk/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/__init__.py b/gtk/__init__.py
index 222b8bf4..5ed3bca2 100644
--- a/gtk/__init__.py
+++ b/gtk/__init__.py
@@ -123,4 +123,7 @@ FALSE = _DeprecatedConstant(False, 'gtk.FALSE', 'False')
_gobject = _GObjectWrapper('gtk._gobject')
+# Can't figure out how to deprecate gdk.Warning
+gdk.Warning = Warning
+
del _Deprecated, _DeprecatedConstant, _GObjectWrapper, _module,