# HG changeset patch # User Richard Laager # Date 1177819780 0 # Node ID 112fa61799f4366bf69cd5e89d5dd8680a739279 # Parent 898019538f44dff140275422f3dd08fdf0fad66a Patch from charkins in ticket #198 to fulfill a feature request by hbons: I'm glad the tray icon has a tooltip now, but it shows little info. It would be nice to show your global status: "Pidgin - Available" or "Pidgin - Away".' diff -r 898019538f44 -r 112fa61799f4 pidgin/gtkdocklet.c --- a/pidgin/gtkdocklet.c Sun Apr 29 03:35:04 2007 +0000 +++ b/pidgin/gtkdocklet.c Sun Apr 29 04:09:40 2007 +0000 @@ -118,6 +118,9 @@ DockletStatus newstatus = DOCKLET_STATUS_OFFLINE; gboolean pending = FALSE, connecting = FALSE; + /* get the current savedstatus */ + saved_status = purple_savedstatus_get_current(); + /* determine if any ims have unseen messages */ convs = get_pending_list(DOCKLET_TOOLTIP_LINE_LIMIT); @@ -168,7 +171,10 @@ g_list_free(convs); } else if (ui_ops->set_tooltip) { - ui_ops->set_tooltip(PIDGIN_NAME); + char *tooltip_text = g_strconcat(PIDGIN_NAME " - ", + purple_savedstatus_get_title(saved_status), NULL); + ui_ops->set_tooltip(tooltip_text); + g_free(tooltip_text); } for(l = purple_accounts_get_all(); l != NULL; l = l->next) { @@ -187,7 +193,6 @@ connecting = TRUE; } - saved_status = purple_savedstatus_get_current(); prim = purple_savedstatus_get_type(saved_status); if (pending) newstatus = DOCKLET_STATUS_PENDING;