im.pidgin.cpw.resiak.disconnectreason: e96c6bfc2ce30746c5bdf1c0b297fdb75851943b
resiak at soc.pidgin.im
resiak at soc.pidgin.im
Sat Nov 3 08:20:33 EDT 2007
-----------------------------------------------------------------
Revision: e96c6bfc2ce30746c5bdf1c0b297fdb75851943b
Ancestor: d714bc96cce032a651cf5885941018cb5bcdb4e9
Author: resiak at soc.pidgin.im
Date: 2007-11-03T12:12:02
Branch: im.pidgin.cpw.resiak.disconnectreason
Modified files:
pidgin/gtkblist.c
ChangeLog:
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).
-------------- next part --------------
============================================================
--- pidgin/gtkblist.c b4501fd296b9424e54eb67e9c91a875d34d3ed33
+++ pidgin/gtkblist.c 6359d5c1ba429b5e4862bf8d909114fa91b62408
@@ -4640,8 +4640,16 @@ create_account_label(PurpleAccount *acco
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);
return hbox;
More information about the Commits
mailing list