[pygtk] Remove deprecated sink functions



commit 0d788158d897d05bb53a92f49aef82132f2e8c3c
Author: Colin Walters <walters verbum org>
Date:   Tue Jul 20 10:06:05 2010 -0400

    Remove deprecated sink functions
    
    This is handled automatically now; see commit 00a85f6a844714d1 in pygobject.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=624834

 gtk/gtkmodule.c |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/gtk/gtkmodule.c b/gtk/gtkmodule.c
index ff6420c..05bc0b9 100644
--- a/gtk/gtkmodule.c
+++ b/gtk/gtkmodule.c
@@ -56,32 +56,6 @@ static struct _PyGtk_FunctionStruct functions = {
 };
 
 static void
-sink_gtkwindow(GObject *object)
-{
-    if (object->ref_count == 1
-	&& GTK_WINDOW(object)->has_user_ref_count) {
-	g_object_ref(object);
-    }
-}
-
-static void
-sink_gtkinvisible(GObject *object)
-{
-    if (object->ref_count == 1
-	&& GTK_INVISIBLE(object)->has_user_ref_count) {
-	g_object_ref(object);
-    }
-}
-
-static void
-sink_gtkobject(GObject *object)
-{
-    if (GTK_OBJECT_FLOATING(object)) {
-	g_object_ref_sink(object);
-    }
-}
-
-static void
 pygtk_add_stock_items(PyObject *d)
 {
     GSList *stock_ids, *cur;
@@ -204,10 +178,6 @@ init_gtk(void)
     /* initialise pygtk */
     gtk_type_init(0);
 
-    pygobject_register_sinkfunc(GTK_TYPE_WINDOW, sink_gtkwindow);
-    pygobject_register_sinkfunc(GTK_TYPE_INVISIBLE, sink_gtkinvisible);
-    pygobject_register_sinkfunc(GTK_TYPE_OBJECT, sink_gtkobject);
-	
     m = Py_InitModule("gtk._gtk", pygtk_functions);
     d = PyModule_GetDict(m);
 



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