[gtk+] window: reset timeout source id before setting property
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] window: reset timeout source id before setting property
- Date: Tue, 2 Apr 2013 21:40:20 +0000 (UTC)
commit 68b437eea21154b1c33882f9cb1f630a6ea03c77
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Apr 2 15:54:02 2013 -0400
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
gtk/gtkwindow.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index e595845..ff9656e 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -11152,9 +11152,9 @@ set_auto_mnemonics_visible_cb (gpointer 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]