forked from AuroraMiddleware/gtk
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
f3687a9490
commit
d6e3855f95
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user