[glade3] * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added replace-child-function to gtkmenutoolb
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3] * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added replace-child-function to gtkmenutoolb
- Date: Sun, 9 Jan 2011 05:16:01 +0000 (UTC)
commit d0f0ed0b39216e6f08a0c4dfeee55b38dada1bee
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun Jan 9 13:55:15 2011 +0900
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added replace-child-function to
gtkmenutoolbutton code (incase the child is rebuilt for construct-only purposes).
ChangeLog | 3 +++
plugins/gtk+/glade-gtk.c | 9 +++++++++
plugins/gtk+/gtk+.xml.in | 1 +
3 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index dc36d8e..eab2c90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,9 @@
- Made all GdkColor type properties optional, closes bug 457969
- Disabled all the irrelevant "-set" properties of GtkTextTag.
+ * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added replace-child-function to
+ gtkmenutoolbutton code (incase the child is rebuilt for construct-only purposes).
+
2011-01-08 Tristan Van Berkom <tristanvb openismus com>
* gladeui/glade-utils.[ch], gladeui/glade-widget.c, gladeui/glade-builtins.c,
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 0548d6e..b4a66ff 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -7906,6 +7906,15 @@ glade_gtk_menu_tool_button_remove_child (GladeWidgetAdaptor * adaptor,
GWA_GET_CLASS (GTK_TYPE_TOOL_BUTTON)->remove (adaptor, object, child);
}
+void
+glade_gtk_menu_tool_button_replace_child (GladeWidgetAdaptor * adaptor,
+ GObject * container,
+ GObject * current, GObject * new_object)
+{
+ glade_gtk_menu_tool_button_remove_child (adaptor, container, current);
+ glade_gtk_menu_tool_button_add_child (adaptor, container, new_object);
+}
+
/* ----------------------------- GtkLabel ------------------------------ */
void
glade_gtk_label_post_create (GladeWidgetAdaptor * adaptor,
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index b83f021..fbf6484 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -741,6 +741,7 @@ embedded in another object</_tooltip>
_title="Menu Tool Button">
<add-child-function>glade_gtk_menu_tool_button_add_child</add-child-function>
<remove-child-function>glade_gtk_menu_tool_button_remove_child</remove-child-function>
+ <replace-child-function>glade_gtk_menu_tool_button_replace_child</replace-child-function>
<get-children-function>glade_gtk_menu_tool_button_get_children</get-children-function>
<special-child-type>menu</special-child-type>
</glade-widget-class>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]