summaryrefslogtreecommitdiff
path: root/gtk/__init__.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2006-04-06 07:36:51 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-04-06 07:36:51 +0000
commit2475217b27b03993420494c4aea8e8315dd8412f (patch)
treea855375f7e175c0467e9a7a31fe5e350de6d6bbf /gtk/__init__.py
parenta2d1f799a1aa6fa8ce8d40a9cb0da8facaa5d6a1 (diff)
downloadpygtk-2475217b27b03993420494c4aea8e8315dd8412f.tar.gz
(threads_init): Deprecated gtk.threads_*, gtk.gdk.threads_* should be used
(threads_init): Deprecated gtk.threads_*, gtk.gdk.threads_* should be used instead, fixes #165927 (Steve Chaplin)
Diffstat (limited to 'gtk/__init__.py')
-rw-r--r--gtk/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/__init__.py b/gtk/__init__.py
index 44c97cfb..70a2f4d1 100644
--- a/gtk/__init__.py
+++ b/gtk/__init__.py
@@ -125,10 +125,6 @@ def _init():
# install the default log handlers
add_log_handlers()
-threads_init = gdk.threads_init
-threads_enter = gdk.threads_enter
-threads_leave = gdk.threads_leave
-
gdk.INPUT_READ = _gobject.IO_IN | _gobject.IO_HUP | _gobject.IO_ERR
gdk.INPUT_WRITE = _gobject.IO_OUT | _gobject.IO_HUP
gdk.INPUT_EXCEPTION = _gobject.IO_PRI
@@ -153,6 +149,10 @@ create_pixmap_from_xpm = _Deprecated(gdk.pixmap_create_from_xpm,
create_pixmap_from_xpm_d = _Deprecated(gdk.pixmap_create_from_xpm_d,
'pixmap_create_from_xpm_d', 'gtk.gdk')
+threads_init = _Deprecated(gdk.threads_init, 'threads_init', 'gtk.gdk')
+threads_enter = _Deprecated(gdk.threads_enter, 'threads_enter', 'gtk.gdk')
+threads_leave = _Deprecated(gdk.threads_leave, 'threads_leave', 'gtk.gdk')
+
TRUE = _DeprecatedConstant(True, 'gtk.TRUE', 'True')
FALSE = _DeprecatedConstant(False, 'gtk.FALSE', 'False')