changeset 21881:a69a4307c9a8

Plug a leak. And a patch from 'js' to fix tooltips in compiz fusion. References #4323.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 11 Dec 2007 19:13:14 +0000
parents b93c099dcfe4
children 6332fbeeab27
files pidgin/pidgintooltip.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/pidgintooltip.c	Sat Dec 08 07:14:25 2007 +0000
+++ b/pidgin/pidgintooltip.c	Tue Dec 11 19:13:14 2007 +0000
@@ -154,6 +154,7 @@
 
 	pidgin_tooltip_destroy();
 	pidgin_tooltip.tipwindow = tipwindow = gtk_window_new(GTK_WINDOW_POPUP);
+	gtk_window_set_type_hint(GTK_WINDOW(tipwindow), GDK_WINDOW_TYPE_HINT_TOOLTIP);
 	pidgin_tooltip.widget = gtk_widget_get_toplevel(widget);
 	pidgin_tooltip.paint_tooltip = paint_tooltip;
 	gtk_widget_ensure_style(tipwindow);
@@ -181,14 +182,17 @@
 	}
 
 	if (data->path) {
-		if (gtk_tree_path_compare(data->path, path) == 0)
+		if (gtk_tree_path_compare(data->path, path) == 0) {
+			gtk_tree_path_free(path);
 			return;
+		}
 		gtk_tree_path_free(data->path);
 		data->path = NULL;
 	}
 
 	pidgin_tooltip_destroy();
 	pidgin_tooltip.tipwindow = tipwindow = gtk_window_new(GTK_WINDOW_POPUP);
+	gtk_window_set_type_hint(GTK_WINDOW(tipwindow), GDK_WINDOW_TYPE_HINT_TOOLTIP);
 	pidgin_tooltip.widget = gtk_widget_get_toplevel(data->widget);
 	pidgin_tooltip.paint_tooltip = data->paint_tooltip;
 	gtk_widget_ensure_style(tipwindow);