mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
GailEntry: remove idle if cell editing is canceled
This avoids warnings when cell editing is interrupted e.g. by adding or removing a row.
This commit is contained in:
parent
3998dd9563
commit
cb3f20ecbe
@ -294,6 +294,14 @@ gail_entry_real_notify_gtk (GObject *obj,
|
||||
{
|
||||
text_setup (entry, gtk_entry);
|
||||
}
|
||||
else if (strcmp (pspec->name, "editing-canceled") == 0)
|
||||
{
|
||||
if (entry->insert_idle_handler)
|
||||
{
|
||||
g_source_remove (entry->insert_idle_handler);
|
||||
entry->insert_idle_handler = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
GAIL_WIDGET_CLASS (gail_entry_parent_class)->notify_gtk (obj, pspec);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user