[glade] GladePlaceholder: on_chooser_adaptor_selected() destroy popup instead of widget chooser.



commit 59d1f46ea4c6d53ade6f0962915395edd0759328
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Mon Mar 14 18:05:13 2016 -0300

    GladePlaceholder: on_chooser_adaptor_selected() destroy popup instead of widget chooser.

 gladeui/glade-placeholder.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gladeui/glade-placeholder.c b/gladeui/glade-placeholder.c
index 09d6e81..d363168 100644
--- a/gladeui/glade-placeholder.c
+++ b/gladeui/glade-placeholder.c
@@ -391,10 +391,9 @@ on_chooser_adaptor_selected (_GladeAdaptorChooser *chooser,
                              GladePlaceholder    *placeholder)
 
 {
-  gtk_widget_hide (GTK_WIDGET (chooser));
   glade_command_create (adaptor, glade_placeholder_get_parent (placeholder),
                         placeholder, glade_placeholder_get_project (placeholder));
-  gtk_widget_destroy (GTK_WIDGET (chooser));
+  gtk_widget_destroy (gtk_widget_get_ancestor (GTK_WIDGET (chooser), GTK_TYPE_POPOVER));
 }
 
 static GtkWidget *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]