# HG changeset patch # User Mark Doliner # Date 1176594444 0 # Node ID e57d9d5e5c860dc26140316c7b4e6b4702bd31b2 # Parent fb4efe5ab1fafc8a817418c99ddcd58456850b67 sf patch #1622581, from Greg Taeger "this patch consists of two lines added to both gtksavedstatus.c and gtkdocklet.c if the present status is 'GAIM_STATUS_AVAILABLE', then the default to the change status dialog is passed 'GAIM_STATUS_AWAY'. otherwise, the already in place functionality occurs which is to copy the current status." diff -r fb4efe5ab1fa -r e57d9d5e5c86 COPYRIGHT --- a/COPYRIGHT Sat Apr 14 19:38:21 2007 +0000 +++ b/COPYRIGHT Sat Apr 14 23:47:24 2007 +0000 @@ -321,6 +321,7 @@ Sun Microsystems MÃ¥rten Svantesson (fursten) Robert T. +Greg Taeger Peter Tang Brian Tarricone Peter Teichman diff -r fb4efe5ab1fa -r e57d9d5e5c86 pidgin/gtkdocklet.c --- a/pidgin/gtkdocklet.c Sat Apr 14 19:38:21 2007 +0000 +++ b/pidgin/gtkdocklet.c Sat Apr 14 23:47:24 2007 +0000 @@ -373,6 +373,10 @@ { PurpleSavedStatus *saved_status; saved_status = purple_savedstatus_get_current(); + + if (purple_savedstatus_get_type(saved_status) == PURPLE_STATUS_AVAILABLE) + saved_status = purple_savedstatus_new(NULL, PURPLE_STATUS_AWAY); + pidgin_status_editor_show(FALSE, purple_savedstatus_is_transient(saved_status) ? saved_status : NULL); } diff -r fb4efe5ab1fa -r e57d9d5e5c86 pidgin/gtkstatusbox.c --- a/pidgin/gtkstatusbox.c Sat Apr 14 19:38:21 2007 +0000 +++ b/pidgin/gtkstatusbox.c Sat Apr 14 23:47:24 2007 +0000 @@ -2416,6 +2416,8 @@ { PurpleSavedStatus *saved_status; saved_status = purple_savedstatus_get_current(); + if (purple_savedstatus_get_type(saved_status) == PURPLE_STATUS_AVAILABLE) + saved_status = purple_savedstatus_new(NULL, PURPLE_STATUS_AWAY); pidgin_status_editor_show(FALSE, purple_savedstatus_is_transient(saved_status) ? saved_status : NULL);