changeset 8391:45d1e3ed5a86

[gaim-migrate @ 9120] Make the finalize function in gtkimhtmltoolbar.c do stuff. You know, like, free memory from the tight grasp of oppression. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 03 Mar 2004 06:06:10 +0000
parents f6a5348f7410
children 6995abd533f5
files src/gtkimhtmltoolbar.c
diffstat 1 files changed, 3 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtmltoolbar.c	Tue Mar 02 17:12:47 2004 +0000
+++ b/src/gtkimhtmltoolbar.c	Wed Mar 03 06:06:10 2004 +0000
@@ -611,27 +611,11 @@
 static void
 gtk_imhtmltoolbar_finalize (GObject *object)
 {
-	/*GtkIMHtml *imhtml = GTK_IMHTML(object);
-	GList *scalables;
+	GtkIMHtmlToolbar *toolbar = GTK_IMHTMLTOOLBAR(object);
 
-	g_hash_table_destroy(imhtml->smiley_data);
-	gtk_smiley_tree_destroy(imhtml->default_smilies);
-	gdk_cursor_unref(imhtml->hand_cursor);
-	gdk_cursor_unref(imhtml->arrow_cursor);
-	gdk_cursor_unref(imhtml->text_cursor);
-	if(imhtml->tip_window){
-		gtk_widget_destroy(imhtml->tip_window);
-	}
-	if(imhtml->tip_timer)
-		gtk_timeout_remove(imhtml->tip_timer);
+	gtk_object_sink(GTK_OBJECT(toolbar->tooltips));
 
-	for(scalables = imhtml->scalables; scalables; scalables = scalables->next) {
-		GtkIMHtmlScalable *scale = GTK_IMHTML_SCALABLE(scalables->data);
-		scale->free(scale);
-	}
-
-	g_list_free(imhtml->scalables);
-	G_OBJECT_CLASS(parent_class)->finalize (object);*/
+	G_OBJECT_CLASS(parent_class)->finalize (object);
 }
 
 /* Boring GTK stuff */