changeset 4764:b0367d56b608

[gaim-migrate @ 5082] I'm still not totally happy with the tooltips, but at least now they don't leak. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 14 Mar 2003 06:21:40 +0000
parents c050edba7b83
children b6f6a10f9baf
files src/gtkimhtml.c src/gtkimhtml.h
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Fri Mar 14 06:13:48 2003 +0000
+++ b/src/gtkimhtml.c	Fri Mar 14 06:21:40 2003 +0000
@@ -52,9 +52,11 @@
 
 #define TOOLTIP_TIMEOUT 500
 
+static gboolean gtk_motion_event_notify(GtkWidget *imhtml, GdkEventMotion *event, gpointer user_data);
+
+
 static gint gtk_imhtml_tip (gpointer data);
 
-
 /* POINT_SIZE converts from AIM font sizes to point sizes.  It probably should be redone in such a
  * way that it base the sizes off the default font size rather than using arbitrary font sizes. */
 #define MAX_FONT_SIZE 7
@@ -1236,7 +1238,7 @@
 	gtk_paint_layout (imhtml->tip_window->style, imhtml->tip_window->window, GTK_STATE_NORMAL,
 					  FALSE, NULL, imhtml->tip_window, NULL, 4, 4, layout);
 
-	g_free(layout);
+	g_object_unref(layout);
 	return FALSE;
 }
 
@@ -1308,7 +1310,7 @@
 	gtk_window_move (GTK_WINDOW(imhtml->tip_window), x, y);
 
 	pango_font_metrics_unref(font);
-	g_free(layout);
+	g_object_unref (layout);
 
 	return FALSE;
 }
--- a/src/gtkimhtml.h	Fri Mar 14 06:13:48 2003 +0000
+++ b/src/gtkimhtml.h	Fri Mar 14 06:21:40 2003 +0000
@@ -118,7 +118,6 @@
 void       gtk_imhtml_page_down        (GtkIMHtml        *imhtml);
 void       gtk_imhtml_to_bottom        (GtkIMHtml        *imhtml);
 
-gboolean       gtk_motion_event_notify(GtkWidget *imhtml, GdkEventMotion *event, gpointer user_data);
 #ifdef __cplusplus
 }
 #endif