im.pidgin.pidgin.sadrul.tooltips: 171ddd847ab5e59a2d8e1f67c8773930b6a425a4

sadrul at pidgin.im sadrul at pidgin.im
Tue Dec 11 14:15:54 EST 2007


-----------------------------------------------------------------
Revision: 171ddd847ab5e59a2d8e1f67c8773930b6a425a4
Ancestor: eaa03290b98805f2f683bd29591360fee90a820c
Author: sadrul at pidgin.im
Date: 2007-12-11T19:13:14
Branch: im.pidgin.pidgin.sadrul.tooltips

Modified files:
        pidgin/pidgintooltip.c

ChangeLog: 

Plug a leak. And a patch from 'js' to fix tooltips in compiz fusion. References #4323.

-------------- next part --------------
============================================================
--- pidgin/pidgintooltip.c	def4772f43931848522f84eded2bf2f2b2db4790
+++ pidgin/pidgintooltip.c	23a2a3fe04d606bcbd4c5be51e76ecceaa87f622
@@ -154,6 +154,7 @@ void pidgin_tooltip_show(GtkWidget *widg
 
 	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 @@ pidgin_tooltip_draw(PidginTooltipData *d
 	}
 
 	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);


More information about the Commits mailing list