[glade] glade-gtk-dialog.c: Ensure names of action widgets at save time
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] glade-gtk-dialog.c: Ensure names of action widgets at save time
- Date: Thu, 28 Jan 2016 15:19:42 +0000 (UTC)
commit 271e466d7418fc611f63e6c1e79b5c1de1302a37
Author: Tristan Van Berkom <tristan upstairslabs com>
Date: Thu Jan 28 16:17:59 2016 +0100
glade-gtk-dialog.c: Ensure names of action widgets at save time
plugins/gtk+/glade-gtk-dialog.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk-dialog.c b/plugins/gtk+/glade-gtk-dialog.c
index 543e87d..ce9f847 100644
--- a/plugins/gtk+/glade-gtk-dialog.c
+++ b/plugins/gtk+/glade-gtk-dialog.c
@@ -173,6 +173,15 @@ glade_gtk_dialog_write_child (GladeWidgetAdaptor * adaptor,
{
GladeWidget *parent = glade_widget_get_parent (widget);
+ /* Before writing out the children, force any response id carrying buttons
+ * to have a name.
+ *
+ * This is NOT correct, but is an exception, we force the buttons to have
+ * names in a non-undoable way at save time for the purpose of action widgets
+ * only.
+ */
+ glade_gtk_action_widgets_ensure_names (parent, "action_area");
+
GWA_GET_CLASS (GTK_TYPE_CONTAINER)->write_child (adaptor, widget, context, node);
if (parent && GTK_IS_DIALOG (glade_widget_get_object (parent)))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]