[glade] GladePopup: Clear add item when adding as toplevel



commit db35c6f1b613b98c6068c7c786376adc4ca5ae26
Author: James Westman <flyingpimonster flyingpimonster net>
Date:   Tue Jul 2 12:51:36 2019 -0500

    GladePopup: Clear add item when adding as toplevel

 gladeui/glade-popup.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gladeui/glade-popup.c b/gladeui/glade-popup.c
index adcde18b..04f902c9 100644
--- a/gladeui/glade-popup.c
+++ b/gladeui/glade-popup.c
@@ -77,7 +77,8 @@ glade_popup_widget_add_cb (GtkMenuItem *item, RootAddData *data)
 static void
 glade_popup_root_add_cb (GtkMenuItem *item, RootAddData *data)
 {
-  glade_command_create (data->adaptor, NULL, NULL, data->project);
+  if (glade_command_create (data->adaptor, NULL, NULL, data->project))
+    glade_project_set_add_item (data->project, NULL);
 }
 
 static void


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