[gtk+/wip/colorchooser] Dismiss popups on show



commit 9a361bf51597b485cee60d1a3d977714d0f323cf
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]