[gaim-migrate @ 11298]

Mon, 15 Nov 2004 00:32:13 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Mon, 15 Nov 2004 00:32:13 +0000
changeset 10183
0066b4246639
parent 10182
960939362f7f
child 10184
543c9a84ce16

[gaim-migrate @ 11298]
This bad boy was crashing when logging out because it was trying to
free some static strings. I talked to the Chipmeister and he said
it was ok to just remove the thing. So I did!

src/gtkstatusselector.c file | annotate | diff | comparison | revisions
--- a/src/gtkstatusselector.c	Sun Nov 14 21:01:27 2004 +0000
+++ b/src/gtkstatusselector.c	Mon Nov 15 00:32:13 2004 +0000
@@ -41,8 +41,6 @@
 #if GTK_CHECK_VERSION(2,4,0)
 	GtkListStore *model;
 #endif
-
-	GHashTable *icon_table;
 };
 
 #if GTK_CHECK_VERSION(2,4,0)
@@ -120,14 +118,6 @@
 
 	selector->priv = g_new0(GaimGtkStatusSelectorPrivate, 1);
 
-	selector->priv->icon_table =
-		g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
-
-	g_hash_table_insert(selector->priv->icon_table,
-						"online", "available.png");
-	g_hash_table_insert(selector->priv->icon_table,
-						"away", "away.png");
-
 #if GTK_CHECK_VERSION(2,4,0)
 	selector->priv->model = gtk_list_store_new(NUM_COLUMNS, G_TYPE_POINTER,
 											   GDK_TYPE_PIXBUF, G_TYPE_STRING);
@@ -214,12 +204,6 @@
 
 	selector = GAIM_GTK_STATUS_SELECTOR(obj);
 
-	if (selector->priv->icon_table != NULL)
-	{
-		g_hash_table_destroy(selector->priv->icon_table);
-		selector->priv->icon_table = NULL;
-	}
-
 	if (GTK_OBJECT_CLASS(parent_class)->destroy)
 		GTK_OBJECT_CLASS(parent_class)->destroy(obj);
 }

mercurial