[glade] Add "Stack" to "Add parent" menu
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Add "Stack" to "Add parent" menu
- Date: Tue, 25 Aug 2015 21:14:22 +0000 (UTC)
commit ab46b4ecfb57131188dbd92cde52a012470a2ddf
Author: Florian Richter <florian richter-es de>
Date: Mon Aug 24 18:33:46 2015 +0200
Add "Stack" to "Add parent" menu
https://bugzilla.gnome.org/show_bug.cgi?id=754030
plugins/gtk+/glade-gtk-widget.c | 2 ++
plugins/gtk+/gtk+.xml.in | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk-widget.c b/plugins/gtk+/glade-gtk-widget.c
index 019f109..e192281 100644
--- a/plugins/gtk+/glade-gtk-widget.c
+++ b/plugins/gtk+/glade-gtk-widget.c
@@ -881,6 +881,8 @@ glade_gtk_widget_action_activate (GladeWidgetAdaptor * adaptor,
new_type = GTK_TYPE_BOX;
else if (strcmp (action, "paned") == 0)
new_type = GTK_TYPE_PANED;
+ else if (strcmp (action, "stack") == 0)
+ new_type = GTK_TYPE_STACK;
if (new_type)
{
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index 4550b24..93e3e9e 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -48,6 +48,7 @@
<action id="grid" _name="Grid"/>
<action id="box" _name="Box"/>
<action id="paned" _name="Paned"/>
+ <action id="stack" _name="Stack"/>
</action>
<action id="sizegroup_add" _name="Add to Size Group"/>
<action id="clear_properties" _name="Clear properties" stock="edit-clear"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]