[glade3/glade-3-8] * plugins/gtk+/glade-tool-button-editor.c: Fixed unbalanced refcount of a sizegroup in the toolb



commit 2b0b886a4916a6c9cc6bc35835aed1daabb69d81
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Thu Dec 30 22:30:49 2010 +0900

    	* plugins/gtk+/glade-tool-button-editor.c: Fixed unbalanced refcount of a sizegroup in the
    	  toolbutton editor.

 ChangeLog                               |    3 +++
 plugins/gtk+/glade-tool-button-editor.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 09912cc..113f982 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
 
 	* gladeui/glade-base-editor.c, gladeui/glade-command.c: Avoid setting a null name on a widget.
 
+	* plugins/gtk+/glade-tool-button-editor.c: Fixed unbalanced refcount of a sizegroup in the
+	  toolbutton editor.
+
 2010-12-29  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-design-view.c: Made loading progress bar nicer looking and ellipsizing.
diff --git a/plugins/gtk+/glade-tool-button-editor.c b/plugins/gtk+/glade-tool-button-editor.c
index f89f356..8e23491 100644
--- a/plugins/gtk+/glade-tool-button-editor.c
+++ b/plugins/gtk+/glade-tool-button-editor.c
@@ -507,7 +507,7 @@ glade_tool_button_editor_new (GladeWidgetAdaptor *adaptor,
 	button_editor->image_table = table = gtk_table_new (0, 0, FALSE);
 	gtk_container_add (GTK_CONTAINER (alignment), table);
 
-	gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+	group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
 
 	/* Stock image... */
 	eprop = glade_widget_adaptor_create_eprop_by_name (adaptor, "stock-id", FALSE, TRUE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]