mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
updated the GimpHintBox constructor definition to use pygtk 2.8 features.
2006-09-07 Sven Neumann <sven@gimp.org> * plug-ins/pygimp/gimpui.defs: updated the GimpHintBox constructor definition to use pygtk 2.8 features. * plug-ins/pygimp/gimpui.override: removed hand-written constructor.
This commit is contained in:
parent
6d0e04ae6e
commit
ac05be7a68
|
@ -1,3 +1,10 @@
|
|||
2006-09-07 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/pygimp/gimpui.defs: updated the GimpHintBox constructor
|
||||
definition to use pygtk 2.8 features.
|
||||
|
||||
* plug-ins/pygimp/gimpui.override: removed hand-written constructor.
|
||||
|
||||
2006-09-07 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/base/pixel-region.[ch]
|
||||
|
|
|
@ -1548,8 +1548,8 @@
|
|||
(c-name "gimp_hint_box_new")
|
||||
(is-constructor-of "GimpHintBox")
|
||||
(return-type "GtkWidget*")
|
||||
(parameters
|
||||
'("const gchar*" "hint")
|
||||
(properties
|
||||
'("hint") ("stock-id" (optional))
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -422,7 +422,7 @@ pygimp_help_func_marshal(const gchar *help_id, gpointer help_data)
|
|||
py_dialog = g_object_get_data(dialog, "pygimp-dialog-pyobject");
|
||||
help_func = g_object_get_data(dialog, "pygimp-dialog-help_func");
|
||||
|
||||
ret = PyObject_CallFunction(help_func, "sO", help_id, py_dialog);
|
||||
ret = PyObject_CallFunction(help_func, "sO", help_id, py_dialog);
|
||||
|
||||
if (ret)
|
||||
Py_DECREF(ret);
|
||||
|
@ -578,38 +578,10 @@ _wrap_gimp_dialog_new(PyGObject *self, PyObject *args, PyObject *kwargs)
|
|||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
%%
|
||||
new-constructor GIMP_TYPE_DIALOG
|
||||
%%
|
||||
override gimp_hint_box_new kwargs
|
||||
static int
|
||||
_wrap_gimp_hint_box_new(PyGObject *self, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
const char *hint = NULL;
|
||||
const char *stock_id = NULL;
|
||||
|
||||
static char *kwlist[] = { "hint", "stock-id", NULL };
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
|
||||
"s|s:gimpui.GimpHintBox.__init__",
|
||||
kwlist,
|
||||
&hint, &stock_id))
|
||||
return -1;
|
||||
|
||||
pygobject_construct(self,
|
||||
"hint", hint,
|
||||
stock_id != NULL ? "stock-id" : NULL, stock_id,
|
||||
NULL);
|
||||
|
||||
if (!self->obj) {
|
||||
PyErr_SetString(PyExc_RuntimeError,
|
||||
"could not create GimpHintBox object");
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
%%
|
||||
override gimp_color_button_get_color noargs
|
||||
static PyObject *
|
||||
_wrap_gimp_color_button_get_color(PyGObject *self)
|
||||
|
|
Loading…
Reference in a new issue