pidgin: f2a934d1: Don't include 'Listening to music' in th...

sadrul at pidgin.im sadrul at pidgin.im
Mon Jun 2 20:10:44 EDT 2008


-----------------------------------------------------------------
Revision: f2a934d118747fe777d8001932ddf481b872f948
Ancestor: 8c6407ae1c2c31473f78557c5805f8efa18e1ed8
Author: sadrul at pidgin.im
Date: 2008-06-03T00:09:11
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f2a934d118747fe777d8001932ddf481b872f948

Modified files:
        pidgin/gtkstatusbox.c

ChangeLog: 

Don't include 'Listening to music' in the per-account statusbox.

-------------- next part --------------
============================================================
--- pidgin/gtkstatusbox.c	0b04d232757924c3a7b67bcf5abf232ebec77a5a
+++ pidgin/gtkstatusbox.c	071b9dfc88b4feda284929e6df9e6a11c1a65544
@@ -209,7 +209,8 @@ update_to_reflect_account_status(PidginS
 	for (l = purple_account_get_status_types(account); l != NULL; l = l->next) {
 		PurpleStatusType *status_type = (PurpleStatusType *)l->data;
 
-		if (!purple_status_type_is_user_settable(status_type))
+		if (!purple_status_type_is_user_settable(status_type) ||
+				purple_status_type_is_independent(status_type))
 			continue;
 		status_no++;
 		if (statustype == status_type)
@@ -769,7 +770,8 @@ find_status_type_by_index(const PurpleAc
 
 	for (i = 0; l; l = l->next) {
 		PurpleStatusType *status_type = l->data;
-		if (!purple_status_type_is_user_settable(status_type))
+		if (!purple_status_type_is_user_settable(status_type) ||
+				purple_status_type_is_independent(status_type))
 			continue;
 
 		if (active == i)
@@ -1030,12 +1032,13 @@ add_account_statuses(PidginStatusBox *st
 		PurpleStatusType *status_type = (PurpleStatusType *)l->data;
 		PurpleStatusPrimitive prim;
 
-		if (!purple_status_type_is_user_settable(status_type))
+		if (!purple_status_type_is_user_settable(status_type) ||
+				purple_status_type_is_independent(status_type))
 			continue;
 
-            	prim = purple_status_type_get_primitive(status_type);
+		prim = purple_status_type_get_primitive(status_type);
 
-                pixbuf = pidgin_status_box_get_pixbuf(status_box, prim);
+		pixbuf = pidgin_status_box_get_pixbuf(status_box, prim);
 
 		pidgin_status_box_add(PIDGIN_STATUS_BOX(status_box),
 					PIDGIN_STATUS_BOX_TYPE_PRIMITIVE, pixbuf,


More information about the Commits mailing list