Mercurial > pidgin.yaz
changeset 21396:78f8a19785b1
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).
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Sat, 03 Nov 2007 12:12:02 +0000 |
parents | 04b1742c8206 |
children | 521df9b2698a |
files | pidgin/gtkblist.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);