/soc/2013/ankitkv/gobjectification: d371a8f11179: Used GObject c...

Ankit Vani a at nevitus.org
Tue Jul 9 16:32:45 EDT 2013


Changeset: d371a8f111799fd0328fec37043f4730f1851d0e
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-07-10 02:02 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/d371a8f11179

Description:

Used GObject casts for PurpleBListNode in plugins

diffstat:

 finch/plugins/grouping.c       |  2 +-
 libpurple/plugins/log_reader.c |  4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff --git a/finch/plugins/grouping.c b/finch/plugins/grouping.c
--- a/finch/plugins/grouping.c
+++ b/finch/plugins/grouping.c
@@ -286,7 +286,7 @@ nested_group_find_parent(PurpleBListNode
 
 	while (sep) {
 		*sep = 0;
-		if (*(sep + 1) && (ret = (PurpleBListNode *)purple_blist_find_group(name))) {
+		if (*(sep + 1) && (ret = PURPLE_BLIST_NODE(purple_blist_find_group(name)))) {
 			finch_blist_manager_add_node(ret);
 			parent = ret;
 		} else if (!(ret = g_hash_table_lookup(groups, name))) {
diff --git a/libpurple/plugins/log_reader.c b/libpurple/plugins/log_reader.c
--- a/libpurple/plugins/log_reader.c
+++ b/libpurple/plugins/log_reader.c
@@ -662,7 +662,7 @@ static GList *msn_logger_list(PurpleLogT
 	}
 
 	if (buddy) {
-		savedfilename = purple_blist_node_get_string((PurpleBListNode *)buddy,
+		savedfilename = purple_blist_node_get_string(PURPLE_BLIST_NODE(buddy),
 		                                             "log_reader_msn_log_filename");
 	}
 
@@ -824,7 +824,7 @@ static GList *msn_logger_list(PurpleLogT
 	 * detected for both buddies.
 	 */
 	if (buddy && logfile) {
-		PurpleBListNode *node = (PurpleBListNode *)buddy;
+		PurpleBListNode *node = PURPLE_BLIST_NODE(buddy);
 		purple_blist_node_set_string(node, "log_reader_msn_log_filename", logfile);
 		g_free(logfile);
 	}



More information about the Commits mailing list