Mercurial > pidgin
diff pidgin/gtkdocklet.c @ 15700:4a331e8d01df
Fix win32 docklet. This is pretty ugly - we'll force GTK+ 2.10 at some point and use GtkStatusIcon to avoid converting the stock images to HICONs directly.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 25 Feb 2007 18:41:53 +0000 |
parents | 1229a0cd9126 |
children | 87e807f25b3c |
line wrap: on
line diff
--- a/pidgin/gtkdocklet.c Sun Feb 25 10:32:34 2007 +0000 +++ b/pidgin/gtkdocklet.c Sun Feb 25 18:41:53 2007 +0000 @@ -186,11 +186,11 @@ if (gaim_account_is_connecting(account)) connecting = TRUE; } - + saved_status = gaim_savedstatus_get_current(); - prim = gaim_savedstatus_get_type(saved_status); + prim = gaim_savedstatus_get_type(saved_status); if (pending) - newstatus = DOCKLET_STATUS_PENDING; + newstatus = DOCKLET_STATUS_PENDING; else if (connecting) newstatus = DOCKLET_STATUS_CONNECTING; else if (prim == GAIM_STATUS_UNAVAILABLE) @@ -198,12 +198,12 @@ else if (prim == GAIM_STATUS_AWAY) newstatus = DOCKLET_STATUS_AWAY; else if (prim == GAIM_STATUS_EXTENDED_AWAY) - newstatus = DOCKLET_STATUS_XA; - else if (prim == GAIM_STATUS_OFFLINE) - newstatus = DOCKLET_STATUS_OFFLINE; + newstatus = DOCKLET_STATUS_XA; + else if (prim == GAIM_STATUS_OFFLINE) + newstatus = DOCKLET_STATUS_OFFLINE; else newstatus = DOCKLET_STATUS_AVAILABLE; - + /* update the icon if we changed status */ if (status != newstatus) { status = newstatus;