# HG changeset patch # User Sadrul Habib Chowdhury # Date 1188691543 0 # Node ID 7c1a6a9002453ac3a5e0d16a3798646bcf9379ea # Parent 4691b5f80ac8808521438243a96b000eef1952a3 Tooltips can be for the buddylist or for conversation windows. A more appropriate fix for #2723. diff -r 4691b5f80ac8 -r 7c1a6a900245 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Sat Sep 01 23:09:41 2007 +0000 +++ b/pidgin/gtkblist.c Sun Sep 02 00:05:43 2007 +0000 @@ -2622,6 +2622,7 @@ struct _pidgin_blist_node *gtknode; GdkRectangle mon_size; int sig; + const char *name; if (node == NULL) return; @@ -2679,8 +2680,9 @@ gtknode = node->ui_data; + name = gtk_window_get_title(GTK_WINDOW(gtk_widget_get_toplevel(widget))); gtk_widget_set_app_paintable(gtkblist->tipwindow, TRUE); - gtk_window_set_title(GTK_WINDOW(gtkblist->tipwindow), _("Buddy List")); + gtk_window_set_title(GTK_WINDOW(gtkblist->tipwindow), name ? name : _("Buddy List")); gtk_window_set_resizable(GTK_WINDOW(gtkblist->tipwindow), FALSE); gtk_widget_set_name(gtkblist->tipwindow, "gtk-tooltips"); g_signal_connect(G_OBJECT(gtkblist->tipwindow), "expose_event",