* d/p/090-GtkTextView-don-t-popdown-a-bubble-if-we-don-t-have-.patch:

+ Added. Fix segv when popping down non-existing bubblees (From upstream
    git, bgo #695304)
This commit is contained in:
Sjoerd Simons 2013-03-11 20:42:33 +00:00
parent 5dc3216661
commit cda89ecdb4
3 changed files with 38 additions and 0 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
gtk+3.0 (3.7.12-2) UNRELEASED; urgency=low
* d/p/090-GtkTextView-don-t-popdown-a-bubble-if-we-don-t-have-.patch:
+ Added. Fix segv when popping down non-existing bubblees (From upstream
git, bgo #695304)
-- Sjoerd Simons <sjoerd@debian.org> Mon, 11 Mar 2013 21:15:28 +0100
gtk+3.0 (3.7.12-1) experimental; urgency=low
[ Sjoerd Simons ]

View File

@ -0,0 +1,29 @@
From ca2368dba958d6fecf2fce417307bb9cbbe6eb6b Mon Sep 17 00:00:00 2001
From: Giovanni Campagna <gcampagna@src.gnome.org>
Date: Wed, 6 Mar 2013 17:04:23 +0100
Subject: [PATCH] GtkTextView: don't popdown a bubble if we don't have one
This causes a segfault.
https://bugzilla.gnome.org/show_bug.cgi?id=695304
---
gtk/gtktextview.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 1a0b560..2de8a1e 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -9101,7 +9101,8 @@ text_window_scroll (GtkTextWindow *win,
if (dx != 0 || dy != 0)
{
- _gtk_bubble_window_popdown (GTK_BUBBLE_WINDOW (priv->selection_bubble));
+ if (priv->selection_bubble)
+ _gtk_bubble_window_popdown (GTK_BUBBLE_WINDOW (priv->selection_bubble));
gdk_window_scroll (win->bin_window, dx, dy);
}
}
--
1.7.10.4

View File

@ -10,3 +10,4 @@
060_ignore-random-icons.patch
061_multiarch_module_fallback.patch
071_fix-installation-of-HTML-images.patch
090-GtkTextView-don-t-popdown-a-bubble-if-we-don-t-have-.patch