src/gtkimhtml.c

changeset 4764
f5a87d914ab1
parent 4756
ee19a87a495f
child 4793
1da93f6c80f3
--- 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;
 }

mercurial