pygtk r3115 - in trunk: . gtk
- From: gianmt svn gnome org
- To: svn-commits-list gnome org
- Subject: pygtk r3115 - in trunk: . gtk
- Date: Sat, 7 Mar 2009 21:52:10 +0000 (UTC)
Author: gianmt
Date: Sat Mar 7 21:52:10 2009
New Revision: 3115
URL: http://svn.gnome.org/viewvc/pygtk?rev=3115&view=rev
Log:
2009-03-07 Gian Mario Tagliaretti <gianmt gnome org>
gtk/gtkiconview.override:
wrap gtk.IconView.convert_widget_to_bin_window_coords()
Modified:
trunk/ChangeLog
trunk/gtk/gtkiconview.override
Modified: trunk/gtk/gtkiconview.override
==============================================================================
--- trunk/gtk/gtkiconview.override (original)
+++ trunk/gtk/gtkiconview.override Sat Mar 7 21:52:10 2009
@@ -372,3 +372,24 @@
Py_INCREF(py_ret);
return py_ret;
}
+%%
+override gtk_icon_view_convert_widget_to_bin_window_coords kwargs
+static PyObject*
+_wrap_gtk_icon_view_convert_widget_to_bin_window_coords(PyGObject *self,
+ PyObject *args,
+ PyObject *kwargs)
+{
+ static char *kwlist[] = { "widget_x", "widget_y", NULL };
+ gint widget_x, widget_y, window_x = 0, window_y = 0;
+
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs,
+ "ii:GtkIconView.convert_widget_to_bin_window_coords",
+ kwlist, &widget_x, &widget_y))
+ return NULL;
+
+ gtk_icon_view_convert_widget_to_bin_window_coords(GTK_ICON_VIEW(self->obj),
+ widget_x, widget_y,
+ &window_x, &window_y);
+
+ return Py_BuildValue("(ii)", window_x, window_y);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]