# HG changeset patch # User Will Thompson # Date 1194091922 0 # Node ID 78f8a19785b109cc455224782667e7437ed9f263 # Parent 04b1742c820626a7fc1dc21ced4c665fd9316d84 Add a tooltip to each account's label in the signed on elsewhere minidialog, showing the error's description (if it has one and we have recent enough Gtk). diff -r 04b1742c8206 -r 78f8a19785b1 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Sat Nov 03 11:05:52 2007 +0000 +++ b/pidgin/gtkblist.c Sat Nov 03 12:12:02 2007 +0000 @@ -4640,7 +4640,15 @@ g_free(markup); gtk_misc_set_alignment(GTK_MISC(label), 0, 0); #if GTK_CHECK_VERSION(2,6,0) - g_object_set(label, "ellipsize", PANGO_ELLIPSIZE_END, NULL); + g_object_set(G_OBJECT(label), "ellipsize", PANGO_ELLIPSIZE_END, NULL); +#endif +#if GTK_CHECK_VERSION(2,12,0) + { /* avoid unused variable warnings on pre-2.12 Gtk */ + char *description = + purple_account_get_current_error(account)->description; + if (description != NULL && *description != '\0') + gtk_widget_set_tooltip_text(label, description); + } #endif gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0);