Mercurial > pidgin
changeset 16119:e57d9d5e5c86
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."
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 14 Apr 2007 23:47:24 +0000 |
parents | fb4efe5ab1fa |
children | e5af828c2f54 |
files | COPYRIGHT pidgin/gtkdocklet.c pidgin/gtkstatusbox.c |
diffstat | 3 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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); }
--- 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);