mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 01:40:10 +00:00
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:
parent
05cb110e0b
commit
68b437eea2
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user