comparison src/status.c @ 10714:ad57a8b5495e

[gaim-migrate @ 12308] Some minor status changes. * Using the "enable?" checkbox in the account window will now sign on an account if it was offline. I'm starting to get a feel for how some of this stuff should work... * Signing on an account that doesn't support available messages no longer shows some warnings. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 21 Mar 2005 05:22:09 +0000
parents 7d4ca0d36f25
children 55af3fa46329
comparison
equal deleted inserted replaced
10713:7d4ca0d36f25 10714:ad57a8b5495e
773 gaim_status_set_active_with_attrs(GaimStatus *status, gboolean active, va_list args) 773 gaim_status_set_active_with_attrs(GaimStatus *status, gboolean active, va_list args)
774 { 774 {
775 gboolean changed = FALSE; 775 gboolean changed = FALSE;
776 const gchar *id; 776 const gchar *id;
777 777
778 g_return_if_fail(status != NULL);
779
778 if (!active && gaim_status_is_exclusive(status)) 780 if (!active && gaim_status_is_exclusive(status))
779 { 781 {
780 gaim_debug_error("status", 782 gaim_debug_error("status",
781 "Cannot deactivate an exclusive status (%s).\n", 783 "Cannot deactivate an exclusive status (%s).\n",
782 gaim_status_get_id(status)); 784 gaim_status_get_id(status));
783 return; 785 return;
784 } 786 }
785 787
786 g_return_if_fail(status != NULL);
787
788 if (status->active != active) 788 if (status->active != active)
789 changed = TRUE; 789 changed = TRUE;
790 790
791 status->active = active; 791 status->active = active;
792 792
796 GaimValue *value; 796 GaimValue *value;
797 value = gaim_status_get_attr_value(status, id); 797 value = gaim_status_get_attr_value(status, id);
798 if (value == NULL) 798 if (value == NULL)
799 { 799 {
800 gaim_debug_warning("status", "The attribute \"%s\" on the status \"%s\" is " 800 gaim_debug_warning("status", "The attribute \"%s\" on the status \"%s\" is "
801 "not supported.\n", id, status->title); 801 "not supported.\n", id, status->type->name);
802 /* Skip over the data and move on to the next attribute */ 802 /* Skip over the data and move on to the next attribute */
803 va_arg(args, void *); 803 va_arg(args, void *);
804 continue; 804 continue;
805 } 805 }
806 806