/soc/2013/ankitkv/gobjectification: 16313df69717: Invoke g_objec...
Ankit Vani
a at nevitus.org
Sat Oct 12 08:41:34 EDT 2013
Changeset: 16313df697172353537f04cabf772580a117679d
Author: Ankit Vani <a at nevitus.org>
Date: 2013-10-12 18:10 +0530
Branch: soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/16313df69717
Description:
Invoke g_object_notify for old_status only if it exists when status changes
diffstat:
libpurple/status.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (19 lines):
diff --git a/libpurple/status.c b/libpurple/status.c
--- a/libpurple/status.c
+++ b/libpurple/status.c
@@ -590,11 +590,12 @@ status_has_changed(PurpleStatus *status)
if (purple_status_is_exclusive(status))
{
old_status = purple_presence_get_active_status(presence);
- if (old_status != NULL && (old_status != status))
+ if (old_status != NULL && (old_status != status)) {
PURPLE_STATUS_GET_PRIVATE(old_status)->active = FALSE;
+ g_object_notify(G_OBJECT(old_status), "active");
+ }
+
g_object_set(presence, "active-status", status, NULL);
-
- g_object_notify(G_OBJECT(old_status), "active");
g_object_notify(G_OBJECT(status), "active");
}
else
More information about the Commits
mailing list