Dismiss popups on show

This ensures that the editor always comes up without popups,
even when it is reused.
This commit is contained in:
Matthias Clasen 2012-02-03 06:49:08 -05:00
parent 3f92e24cb7
commit 1f7cc92219

View File

@ -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);