diff --git a/pygtk-treeview-convert.patch b/pygtk-treeview-convert.patch new file mode 100644 index 0000000..c681167 --- /dev/null +++ b/pygtk-treeview-convert.patch @@ -0,0 +1,58 @@ +Index: gtk/gtktreeview.override +=================================================================== +--- gtk/gtktreeview.override (revision 2907) ++++ gtk/gtktreeview.override (working copy) +@@ -3321,7 +3321,7 @@ + return Py_None; + } + %% +-override gtk_tree_view_convert_widget_to_bin_window_coords args ++override gtk_tree_view_convert_widget_to_bin_window_coords kwargs + static PyObject* + _wrap_gtk_tree_view_convert_widget_to_bin_window_coords(PyGObject *self, + PyObject *args, +@@ -3342,7 +3342,7 @@ + return Py_BuildValue("(ii)", window_x, window_y); + } + %% +-override gtk_tree_view_convert_widget_to_tree_coords args ++override gtk_tree_view_convert_widget_to_tree_coords kwargs + static PyObject* + _wrap_gtk_tree_view_convert_widget_to_tree_coords(PyGObject *self, + PyObject *args, +@@ -3363,7 +3363,7 @@ + return Py_BuildValue("(ii)", tree_x, tree_y); + } + %% +-override gtk_tree_view_convert_tree_to_widget_coords args ++override gtk_tree_view_convert_tree_to_widget_coords kwargs + static PyObject* + _wrap_gtk_tree_view_convert_tree_to_widget_coords(PyGObject *self, + PyObject *args, +@@ -3384,7 +3384,7 @@ + return Py_BuildValue("(ii)", widget_x, widget_y); + } + %% +-override gtk_tree_view_convert_tree_to_bin_window_coords args ++override gtk_tree_view_convert_tree_to_bin_window_coords kwargs + static PyObject* + _wrap_gtk_tree_view_convert_tree_to_bin_window_coords(PyGObject *self, + PyObject *args, +@@ -3405,7 +3405,7 @@ + return Py_BuildValue("(ii)", window_x, window_y); + } + %% +-override gtk_tree_view_convert_bin_window_to_widget_coords args ++override gtk_tree_view_convert_bin_window_to_widget_coords kwargs + static PyObject* + _wrap_gtk_tree_view_convert_bin_window_to_widget_coords(PyGObject *self, + PyObject *args, +@@ -3426,7 +3426,7 @@ + return Py_BuildValue("(ii)", widget_x, widget_y); + } + %% +-override gtk_tree_view_convert_bin_window_to_tree_coords args ++override gtk_tree_view_convert_bin_window_to_tree_coords kwargs + static PyObject* + _wrap_gtk_tree_view_convert_bin_window_to_tree_coords(PyGObject *self, + PyObject *args, diff --git a/pygtk2.spec b/pygtk2.spec index e4bd98a..013b154 100644 --- a/pygtk2.spec +++ b/pygtk2.spec @@ -6,7 +6,7 @@ Name: pygtk2 Version: 2.12.0 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: Development/Languages Summary: Python bindings for GTK+ @@ -21,6 +21,9 @@ Patch0: pygtk-nodisplay-exception.patch # RH bug #217430 / GNOME bug #380020 Patch1: pygtk2-2.10.3-install-extrafuncs.patch +# fix segfault using treeview coordinate conversion methods (GNOME #479012) +Patch2: pygtk-treeview-convert.patch + ### Dependencies ### Requires: gtk2 >= 2.9.4 @@ -83,6 +86,7 @@ libraries so that they interoperate with pygtk. %setup -q -n pygtk-%{version} %patch0 -p1 %patch1 -p1 -b .install-extrafuncs +%patch2 -p0 %build %configure --enable-thread --enable-numpy @@ -144,6 +148,9 @@ rm -fr $RPM_BUILD_ROOT %{_datadir}/gtk-doc/html/pygtk %changelog +* Fri Sep 21 2007 Jeremy Katz - 2.12.0-2.fc8 +- fix crash using TreeView.convert_widget_to_bin_window_coords + * Sun Sep 16 2007 Matthew Barnes - 2.12.0-1.fc8 - Update to 2.12.0