[gtk+] Dismiss popups on show
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Dismiss popups on show
- Date: Tue, 14 Feb 2012 22:19:36 +0000 (UTC)
commit 1f7cc92219ec88a62614fa3dbe83fa6dcd206721
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 3 06:49:08 2012 -0500
Dismiss popups on show
This ensures that the editor always comes up without popups,
even when it is reused.
gtk/gtkcoloreditor.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcoloreditor.c b/gtk/gtkcoloreditor.c
index 74d3cc5..3bc7f0a 100644
--- a/gtk/gtkcoloreditor.c
+++ b/gtk/gtkcoloreditor.c
@@ -511,6 +511,8 @@ gtk_color_editor_init (GtkColorEditor *editor)
g_signal_connect (editor->priv->overlay, "get-child-position",
G_CALLBACK (get_child_position), editor);
+ g_signal_connect (editor, "notify::visible",
+ G_CALLBACK (dismiss_current_popup), NULL);
gtk_widget_show_all (editor->priv->overlay);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]