[pygtk/gtk-3.0: 5/55] Field: GtkBin.child -> gtk_bin_get_child



commit 09889ad178a1284218f1d4d0452c3ced489a8df7
Author: John Stowers <john stowers gmail com>
Date:   Mon Jul 5 12:31:49 2010 +1200

    Field: GtkBin.child -> gtk_bin_get_child

 gtk/gtk-base-types.defs |    2 +-
 gtk/gtk.override        |   18 ------------------
 2 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/gtk/gtk-base-types.defs b/gtk/gtk-base-types.defs
index 0cf332f..93538c6 100644
--- a/gtk/gtk-base-types.defs
+++ b/gtk/gtk-base-types.defs
@@ -1484,7 +1484,7 @@
   (c-name "GtkBin")
   (gtype-id "GTK_TYPE_BIN")
   (fields
-    '("GtkWidget*" "child")
+    '("GtkWidget*" "child" (getter-funcname "get_child"))
   )
 )
 
diff --git a/gtk/gtk.override b/gtk/gtk.override
index 5cc35d5..e887471 100644
--- a/gtk/gtk.override
+++ b/gtk/gtk.override
@@ -8702,24 +8702,6 @@ _wrap_gtk_icon_theme_choose_icon(PyGObject *self, PyObject *args,
     return pyg_boxed_new(GTK_TYPE_ICON_INFO, ret, TRUE, TRUE);
 }
 %%
-override-attr GtkBin.child
-static int
-_wrap_gtk_bin__set_child(PyGObject *self, PyGObject *value, void *closure)
-{
-    if (!pygobject_check(value, &PyGtkWidget_Type) &&
-	(PyObject*)value != Py_None) {
-	PyErr_SetString(PyExc_TypeError, "must be a GtkWidget object");
-	return -1;
-    }
-
-    if ((PyObject*)value == Py_None)
-	GTK_BIN(self->obj)->child = NULL;
-    else
-	GTK_BIN(self->obj)->child = g_object_ref(GTK_WIDGET(value->obj));
-
-    return 0;
-}
-%%
 define GtkFileChooserDialog.get_action noargs
 /* This is a Workaround to solve a problem in the __mro__ of FileChooserDialog,
  * without this method a gtk.Widget method  with the same name will be called



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