[gtk+/wip/colorchooser-v2: 30/77] Dismiss popups on show
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/colorchooser-v2: 30/77] Dismiss popups on show
- Date: Thu, 9 Feb 2012 21:28:50 +0000 (UTC)
commit 86d31cd3813e11e2623630a9b85672e3fd6e4367
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]