forked from AuroraMiddleware/gtk
entry: unset the completion in dispose() not finalize()
Most likely fixes whatever evil gail interaction causing a crash I could never reproduce but has been reported several times against GIMP. The same fix is in GTK+ 3.x already (bug #683983).
This commit is contained in:
parent
692a0e5906
commit
ba5ac33cdc
@ -2471,6 +2471,7 @@ gtk_entry_dispose (GObject *object)
|
||||
gtk_entry_set_icon_tooltip_markup (entry, GTK_ENTRY_ICON_PRIMARY, NULL);
|
||||
gtk_entry_set_icon_from_pixbuf (entry, GTK_ENTRY_ICON_SECONDARY, NULL);
|
||||
gtk_entry_set_icon_tooltip_markup (entry, GTK_ENTRY_ICON_SECONDARY, NULL);
|
||||
gtk_entry_set_completion (entry, NULL);
|
||||
|
||||
if (priv->buffer)
|
||||
{
|
||||
@ -2505,8 +2506,6 @@ gtk_entry_finalize (GObject *object)
|
||||
}
|
||||
}
|
||||
|
||||
gtk_entry_set_completion (entry, NULL);
|
||||
|
||||
if (entry->cached_layout)
|
||||
g_object_unref (entry->cached_layout);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user