[gtk+] emoji chooser: Avoid a crash
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] emoji chooser: Avoid a crash
- Date: Fri, 1 Sep 2017 23:55:33 +0000 (UTC)
commit f414e1b15f0432186b6524308545d46c55ef2ae1
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 1 19:51:17 2017 -0400
emoji chooser: Avoid a crash
The emoji chooser gets disposed already, because it is attached
to the toplevel as a popover. Doing it again when the object data
is cleared is leading to a crash.
https://bugzilla.gnome.org/show_bug.cgi?id=787103
gtk/gtkentry.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index a1bbe6b..0385a6e 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -9851,7 +9851,7 @@ gtk_entry_choose_emoji (GtkEntry *entry)
if (!chooser)
{
chooser = gtk_emoji_chooser_new ();
- g_object_set_data_full (G_OBJECT (entry), "gtk-emoji-chooser", chooser,
(GDestroyNotify)gtk_widget_destroy);
+ g_object_set_data (G_OBJECT (entry), "gtk-emoji-chooser", chooser);
gtk_popover_set_relative_to (GTK_POPOVER (chooser), GTK_WIDGET (entry));
if (entry->priv->show_emoji_icon)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]