window: reset timeout source id before setting property

gtk_window_set_mnemonics_visible() will try to g_source_remove() it
otherwise, which seems harmless, but conceptually wrong.

https://bugzilla.gnome.org/show_bug.cgi?id=697144
This commit is contained in:
Cosimo Cecchi 2013-04-02 15:54:02 -04:00
parent 05cb110e0b
commit 68b437eea2

View File

@ -11152,9 +11152,9 @@ set_auto_mnemonics_visible_cb (gpointer data)
{ {
GtkWindow *window = data; GtkWindow *window = data;
gtk_window_set_mnemonics_visible (window, TRUE); window->priv->mnemonics_display_timeout_id = 0;
window->priv->auto_mnemonics_timeout_id = 0; gtk_window_set_mnemonics_visible (window, TRUE);
return FALSE; return FALSE;
} }