changeset 21050:e376393e4f35

Fix a leak of an unused GtkSizeGroup and deprecate the unused variable.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 30 Oct 2007 02:31:51 +0000
parents 8b81eeaf9bcb
children 951194d31105
files pidgin/gtkconv.c pidgin/gtkconv.h
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Mon Oct 29 06:45:53 2007 +0000
+++ b/pidgin/gtkconv.c	Tue Oct 30 02:31:51 2007 +0000
@@ -5040,7 +5040,6 @@
 	gtkconv->send_history = g_list_append(NULL, NULL);
 
 	/* Setup some initial variables. */
-	gtkconv->sg       = gtk_size_group_new(GTK_SIZE_GROUP_BOTH);
 	gtkconv->tooltips = gtk_tooltips_new();
 	gtkconv->unseen_state = PIDGIN_UNSEEN_NONE;
 	gtkconv->unseen_count = 0;
--- a/pidgin/gtkconv.h	Mon Oct 29 06:45:53 2007 +0000
+++ b/pidgin/gtkconv.h	Tue Oct 30 02:31:51 2007 +0000
@@ -143,7 +143,12 @@
 	GtkWidget *tab_label;
 	GtkWidget *menu_icon;
 	GtkWidget *menu_label;
+#ifndef PIDGIN_DISABLE_DEPRECATED
+	/** @deprecated */
 	GtkSizeGroup *sg;
+#else
+	gpointer depr1;
+#endif
 
 	GtkWidget *lower_hbox;