--- a/src/status.c Mon Sep 27 21:48:56 2004 +0000 +++ b/src/status.c Mon Sep 27 22:05:27 2004 +0000 @@ -1,5 +1,5 @@ /** - * @file status.h Status API + * @file status.c Status API * @ingroup core * * gaim @@ -372,6 +372,14 @@ } gboolean +gaim_status_type_is_exclusive(const GaimStatusType *status_type) +{ + g_return_val_if_fail(status_type != NULL, FALSE); + + return !status_type->independent; +} + +gboolean gaim_status_type_is_available(const GaimStatusType *status_type) { GaimStatusPrimitive primitive; @@ -619,7 +627,7 @@ status_type = gaim_status_get_type(status); - if (!active && !gaim_status_type_is_independent(status_type)) + if (!active && gaim_status_type_is_exclusive(status_type)) { gaim_debug_error("status", "Cannot deactivate an exclusive status (%s).\n", @@ -630,7 +638,7 @@ presence = gaim_status_get_presence(status); old_status = gaim_presence_get_active_status(presence); - if (!gaim_status_type_is_independent(status_type)) + if (gaim_status_type_is_exclusive(status_type)) { const GList *l; @@ -773,6 +781,14 @@ } gboolean +gaim_status_is_exclusive(const GaimStatus *status) +{ + g_return_val_if_fail(status != NULL, FALSE); + + return gaim_status_type_is_exclusive(gaim_status_get_type(status)); +} + +gboolean gaim_status_is_available(const GaimStatus *status) { g_return_val_if_fail(status != NULL, FALSE); @@ -1080,7 +1096,7 @@ g_return_if_fail(status != NULL); - if (!gaim_status_is_independent(status)) + if (gaim_status_is_exclusive(status)) { if (!active) {