summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Richter <florian@richter-es.de>2015-08-24 18:33:46 +0200
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2015-08-25 18:05:33 -0300
commitab46b4ecfb57131188dbd92cde52a012470a2ddf (patch)
tree6a265d2892e09b1e716ab2ef886e66a44bf6c630
parent7f4a5f85350c17f842b07c3fa6ef189f03e59e99 (diff)
downloadglade-ab46b4ecfb57131188dbd92cde52a012470a2ddf.tar.gz
Add "Stack" to "Add parent" menu
https://bugzilla.gnome.org/show_bug.cgi?id=754030
-rw-r--r--plugins/gtk+/glade-gtk-widget.c2
-rw-r--r--plugins/gtk+/gtk+.xml.in1
2 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gtk+/glade-gtk-widget.c b/plugins/gtk+/glade-gtk-widget.c
index 019f1091..e192281b 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 4550b24d..93e3e9e9 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"/>