[gtk+] GtkTextView: don't popdown a bubble if we don't have one
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkTextView: don't popdown a bubble if we don't have one
- Date: Wed, 6 Mar 2013 16:18:59 +0000 (UTC)
commit ca2368dba958d6fecf2fce417307bb9cbbe6eb6b
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Mar 6 17:04:23 2013 +0100
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 files changed, 2 insertions(+), 1 deletions(-)
---
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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]