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:
Matthias Clasen 2011-02-17 19:06:19 -05:00
parent f3687a9490
commit d6e3855f95

View File

@ -298,11 +298,7 @@ gail_entry_real_notify_gtk (GObject *obj,
}
else if (strcmp (pspec->name, "editing-canceled") == 0)
{
gboolean canceled;
g_object_get (obj, "editing-canceled", &canceled, NULL);
if (entry->insert_idle_handler && canceled)
if (entry->insert_idle_handler)
{
g_source_remove (entry->insert_idle_handler);
entry->insert_idle_handler = 0;