# HG changeset patch # User Sean Egan # Date 1047622900 0 # Node ID b0367d56b608e143bb9471c7d80c25a813921d93 # Parent c050edba7b83b4eb351d2f73e5537f784fd22b89 [gaim-migrate @ 5082] I'm still not totally happy with the tooltips, but at least now they don't leak. committer: Tailor Script diff -r c050edba7b83 -r b0367d56b608 src/gtkimhtml.c --- 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; } diff -r c050edba7b83 -r b0367d56b608 src/gtkimhtml.h --- 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