diff src/status.c @ 10067:39142bdd5ba6

[gaim-migrate @ 11043] This is sf patch 1031460, Added gaim_status_[type_]is_exclusive So we can do gaim_status_type_is_exlusive(status_type) instead of !gaim_status_type_is_independent(status_type) Also, I'll be out of town all next week, starting Saturday (not that it'll matter, I've barely had any Gaim-time the last week or two) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 27 Sep 2004 22:05:27 +0000
parents b566449d45f8
children 0fb9cf6b9240
line wrap: on
line diff
--- 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)
 		{