[glade/wip/alban/fix-test-suite: 1/3] GladePopup: Clear add item when adding as toplevel
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/wip/alban/fix-test-suite: 1/3] GladePopup: Clear add item when adding as toplevel
- Date: Tue, 16 Jul 2019 02:17:55 +0000 (UTC)
commit 53f0bf3d824690ddcd1b39afa653518c145a410b
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]