static GtkWidget * impl_create_configure_dialog (GeditPlugin *plugin) { PyObject *py_ret = call_python_method ((GeditPythonObject *) plugin, NULL, "create_configure_dialog"); GtkWidget *ret; if (py_ret == NULL) return G_OBJECT_CLASS (parent_class)->create_configure_dialog (plugin); if (!PyObject_TypeCheck(py_ret, &PyGtkWidget_Type)) { PyErr_SetString(PyExc_TypeError, "return value for create_configure_dialog is not a GtkWidget"); PyErr_Print(); return G_OBJECT_CLASS (parent_class)->create_configure_dialog (plugin); } ret = GTK_WIDGET (pygobject_get (py_ret)); g_object_ref (ret); Py_XDECREF (py_ret); return ret; }