From 843f2446ce187c510ca920aedb00b9fbd9a70e47 Mon Sep 17 00:00:00 2001 From: John Finlay Date: Wed, 7 Sep 2005 04:33:52 +0000 Subject: Add. * gtk/gdk.defs (set_urgency_hint): Add. * gtk/gtktreeview.override (_wrap_gtk_tree_view_get_visible_range): Add. * gtk/gtk.defs (set_drag_dest_item): Allow path to be None. (get_visible_range): Add. * gtk/gtk.defs (set_cursor): Allow cell to be None * gtk/gtkwidget.override (_wrap_gtk_drag_source_set_icon_name1): Add. * gtk/gtk.defs (gtk_drag_source_set_icon_name): Add as a widget method and deprecate function gtk.drag_source_set_icon_name. * gtk/gdk.defs (set_icon_name): Add. * gtk/gtktextview.override (_wrap_gtk_text_view_get_iter_at_position): Add. * gtk/gtk.override (_wrap_gtk_clipboard_request_image): Add. * gtk/gtk.defs (gtk_alternative_dialog_button_order) (gtk_clipboard_request_image, gtk_clipboard_wait_for_image) (gtk_clipboard_set_image, gtk_clipboard_wait_is_image_available) (drag_source_add_iamge_targets, drag_source_add_uri_targets): Add defs. --- gtk/gtkwidget.override | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gtk/gtkwidget.override') diff --git a/gtk/gtkwidget.override b/gtk/gtkwidget.override index 53768c04..25d2fc1f 100644 --- a/gtk/gtkwidget.override +++ b/gtk/gtkwidget.override @@ -446,3 +446,25 @@ _wrap_gtk_widget_set_set_scroll_adjustments_signal(PyObject *cls, Py_INCREF(Py_None); return Py_None; } +%% +override gtk_drag_source_set_icon_name1 kwargs +static PyObject * +_wrap_gtk_drag_source_set_icon_name1(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "widget", "icon_name", NULL }; + PyGObject *widget; + PyObject *icon_name, *ret, *nargs; + + if (PyErr_Warn(PyExc_DeprecationWarning, "use gtk.Widget.drag_source_set_icon_name") < 0) + return NULL; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, + "O!s:gtk.drag_source_set_icon_name", + kwlist, &PyGtkWidget_Type, &widget, + &icon_name)) + return NULL; + nargs = Py_BuildValue("(s)", icon_name); + ret = _wrap_gtk_drag_source_set_icon_name(widget, nargs, NULL); + Py_DECREF(nargs); + return ret; +} -- cgit v1.2.1