Mercurial > pidgin
comparison src/gtkpounce.c @ 9949:ced29c7b396c
[gaim-migrate @ 10845]
(00:25:10) LSchiere: datallah: commit message?
(00:25:40) datallah: LSchiere: nah.. nothing comes to me
datallah undertook the heroic effort of merging in all the .rejs and fixing
things up from the unclean merge of the status rewrite
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 04 Sep 2004 04:27:05 +0000 |
parents | 0cb20555b3ab |
children | cf45c2a6a7cf |
comparison
equal
deleted
inserted
replaced
9948:b13013595c08 | 9949:ced29c7b396c |
---|---|
756 GTK_TOGGLE_BUTTON(dialog->signon), TRUE); | 756 GTK_TOGGLE_BUTTON(dialog->signon), TRUE); |
757 } | 757 } |
758 else | 758 else |
759 { | 759 { |
760 gboolean default_set = FALSE; | 760 gboolean default_set = FALSE; |
761 | 761 GaimPresence *presence = gaim_buddy_get_presence(buddy); |
762 if (buddy->idle) | 762 |
763 if (gaim_presence_is_idle(presence)) | |
763 { | 764 { |
764 gtk_toggle_button_set_active( | 765 gtk_toggle_button_set_active( |
765 GTK_TOGGLE_BUTTON(dialog->idle_return), TRUE); | 766 GTK_TOGGLE_BUTTON(dialog->idle_return), TRUE); |
766 | 767 |
767 default_set = TRUE; | 768 default_set = TRUE; |
768 } | 769 } |
769 | 770 |
770 if (buddy->uc & UC_UNAVAILABLE) | 771 if (!gaim_presence_is_available(presence)) |
771 { | 772 { |
772 gtk_toggle_button_set_active( | 773 gtk_toggle_button_set_active( |
773 GTK_TOGGLE_BUTTON(dialog->away_return), TRUE); | 774 GTK_TOGGLE_BUTTON(dialog->away_return), TRUE); |
774 | 775 |
775 default_set = TRUE; | 776 default_set = TRUE; |