r31783 - in /desktop/unstable/gtk+3.0/debian: changelog patches/000git_gtk_tree_view_get_tooltip_context_annotation.patch patches/series

mpitt at users.alioth.debian.org mpitt at users.alioth.debian.org
Tue Nov 22 08:35:35 UTC 2011


Author: mpitt
Date: Tue Nov 22 08:35:34 2011
New Revision: 31783

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=31783
Log:
Add 000git_gtk_tree_view_get_tooltip_context_annotation.patch: Fix
gtk_tree_view_get_tooltip_context() transfer annotation, causing crashes
when using this method from Python.

Added:
    desktop/unstable/gtk+3.0/debian/patches/000git_gtk_tree_view_get_tooltip_context_annotation.patch
Modified:
    desktop/unstable/gtk+3.0/debian/changelog
    desktop/unstable/gtk+3.0/debian/patches/series

Modified: desktop/unstable/gtk+3.0/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B3.0/debian/changelog?rev=31783&op=diff
==============================================================================
--- desktop/unstable/gtk+3.0/debian/changelog [utf-8] (original)
+++ desktop/unstable/gtk+3.0/debian/changelog [utf-8] Tue Nov 22 08:35:34 2011
@@ -1,3 +1,11 @@
+gtk+3.0 (3.2.2-3) UNRELEASED; urgency=low
+
+  * Add 000git_gtk_tree_view_get_tooltip_context_annotation.patch: Fix
+    gtk_tree_view_get_tooltip_context() transfer annotation, causing crashes
+    when using this method from Python.
+
+ -- Martin Pitt <mpitt at debian.org>  Tue, 22 Nov 2011 09:34:45 +0100
+
 gtk+3.0 (3.2.2-2) unstable; urgency=low
 
   * Upload to unstable.

Added: desktop/unstable/gtk+3.0/debian/patches/000git_gtk_tree_view_get_tooltip_context_annotation.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B3.0/debian/patches/000git_gtk_tree_view_get_tooltip_context_annotation.patch?rev=31783&op=file
==============================================================================
--- desktop/unstable/gtk+3.0/debian/patches/000git_gtk_tree_view_get_tooltip_context_annotation.patch (added)
+++ desktop/unstable/gtk+3.0/debian/patches/000git_gtk_tree_view_get_tooltip_context_annotation.patch [utf-8] Tue Nov 22 08:35:34 2011
@@ -1,0 +1,25 @@
+From 1c222372d9cae171236add8e3e08d9198cb39a2d Mon Sep 17 00:00:00 2001
+From: Martin Pitt <martin.pitt at ubuntu.com>
+Date: Mon, 14 Nov 2011 13:32:32 +0000
+Subject: Fix gtk_tree_view_get_tooltip_context() transfer annotation
+
+The default (out) transfer mode is "full", but the passed "model" pointer gets
+set to gtk_tree_view_get_model() which is "transfer none". This caused Python
+programs to free the model after calling this, causing crashes.
+---
+diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
+index 0160818..c1fe401 100644
+--- a/gtk/gtktreeview.c
++++ b/gtk/gtktreeview.c
+@@ -16286,7 +16286,8 @@ gtk_tree_view_set_tooltip_cell (GtkTreeView       *tree_view,
+  * @x: (inout): the x coordinate (relative to widget coordinates)
+  * @y: (inout): the y coordinate (relative to widget coordinates)
+  * @keyboard_tip: whether this is a keyboard tooltip or not
+- * @model: (out) (allow-none): a pointer to receive a #GtkTreeModel or %NULL
++ * @model: (out) (allow-none) (transfer none): a pointer to receive a
++ *         #GtkTreeModel or %NULL
+  * @path: (out) (allow-none): a pointer to receive a #GtkTreePath or %NULL
+  * @iter: (out) (allow-none): a pointer to receive a #GtkTreeIter or %NULL
+  *
+--
+cgit v0.9.0.2

Modified: desktop/unstable/gtk+3.0/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B3.0/debian/patches/series?rev=31783&op=diff
==============================================================================
--- desktop/unstable/gtk+3.0/debian/patches/series [utf-8] (original)
+++ desktop/unstable/gtk+3.0/debian/patches/series [utf-8] Tue Nov 22 08:35:34 2011
@@ -1,3 +1,4 @@
+000git_gtk_tree_view_get_tooltip_context_annotation.patch
 001_static-linking-dont-query-immodules.patch
 003_gdk.pc_privates.patch
 015_default-fallback-icon-theme.patch




More information about the pkg-gnome-commits mailing list