summaryrefslogtreecommitdiff
path: root/packages/gnome-desktop/gnome-shell/files/0001-StEntry-fix-crash-when-hint-actor-is-NULL.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gnome-desktop/gnome-shell/files/0001-StEntry-fix-crash-when-hint-actor-is-NULL.patch')
-rw-r--r--packages/gnome-desktop/gnome-shell/files/0001-StEntry-fix-crash-when-hint-actor-is-NULL.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/gnome-desktop/gnome-shell/files/0001-StEntry-fix-crash-when-hint-actor-is-NULL.patch b/packages/gnome-desktop/gnome-shell/files/0001-StEntry-fix-crash-when-hint-actor-is-NULL.patch
new file mode 100644
index 0000000..5ee57cd
--- /dev/null
+++ b/packages/gnome-desktop/gnome-shell/files/0001-StEntry-fix-crash-when-hint-actor-is-NULL.patch
@@ -0,0 +1,29 @@
+Upstream: accepted
+From 2ffb8b4e77dc93d2e593c96a0d631d1266293fb9 Mon Sep 17 00:00:00 2001
+From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
+Date: Tue, 12 Sep 2017 12:23:46 +0200
+Subject: [PATCH] StEntry: fix crash when hint actor is NULL
+
+https://bugzilla.gnome.org/show_bug.cgi?id=787580
+
+Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
+---
+ src/st/st-entry.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/st/st-entry.c b/src/st/st-entry.c
+index fc9ffbffd..18e6a257d 100644
+--- a/src/st/st-entry.c
++++ b/src/st/st-entry.c
+@@ -1106,7 +1106,7 @@ st_entry_get_text (StEntry *entry)
+ g_return_val_if_fail (ST_IS_ENTRY (entry), NULL);
+
+ priv = st_entry_get_instance_private (entry);
+- if (clutter_actor_is_visible (priv->hint_actor))
++ if (priv->hint_actor != NULL && clutter_actor_is_visible (priv->hint_actor))
+ return "";
+ else
+ return clutter_text_get_text (CLUTTER_TEXT (priv->entry));
+--
+2.14.1
+