cpw.gillux.detachablepurple: 42a3b4be: s/(const GVariantType *)/G_VARIANT_TYPE/

gillux at soc.pidgin.im gillux at soc.pidgin.im
Fri May 25 15:46:53 EDT 2012


----------------------------------------------------------------------
Revision: 42a3b4be168a51f122a91d663050807a722afc38
Parent:   487b38f61bd9dcd0bfc19e9b64eca81f76a327ea
Author:   gillux at soc.pidgin.im
Date:     05/25/12 15:30:01
Branch:   im.pidgin.cpw.gillux.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/42a3b4be168a51f122a91d663050807a722afc38

Changelog: 

s/(const GVariantType *)/G_VARIANT_TYPE/ Let's follow glib's way.

Changes against parent 487b38f61bd9dcd0bfc19e9b64eca81f76a327ea

  patched  libpurple/dbus/blist.c
  patched  libpurple/dbus/constructor.c

-------------- next part --------------
============================================================
--- libpurple/dbus/constructor.c	8fd4f72f72f3176239e9a3bc16ae5e5d47dd8d88
+++ libpurple/dbus/constructor.c	19c8314099055637092ab419a6d95cd334d05d2a
@@ -381,7 +381,7 @@ purple_constructor_get_all_accounts(void
 	GList *all = purple_accounts_all();;
 
 	/* Pack every account into an array of accounts. */
-	g_variant_builder_init(&builder, (const GVariantType *) "a(oa(sv))");
+	g_variant_builder_init(&builder, G_VARIANT_TYPE("a(oa(sv))"));
 	while (all) {
 		PurpleAccount *account = all->data;
 		g_variant_builder_add_value
============================================================
--- libpurple/dbus/blist.c	6176cc9fe81b5dc805f584063830973f792c87e2
+++ libpurple/dbus/blist.c	c623a9ad02c1d0bb50666a2d98ebed5105b0a915
@@ -116,10 +116,10 @@ purple_blist_get_buddy_list(PurpleBlist 
 	PurpleBlistNode *root = purple_blist_get_root();
 	const gchar *root_path = NULL;
 
-	g_variant_builder_init(&groups,   (const GVariantType *) "a(oa(sv))");
-	g_variant_builder_init(&contacts, (const GVariantType *) "a(oa(sv))");
-	g_variant_builder_init(&buddies,  (const GVariantType *) "a(oa(sv))");
-	g_variant_builder_init(&chats,    (const GVariantType *) "a(oa(sv))");
+	g_variant_builder_init(&groups,   G_VARIANT_TYPE("a(oa(sv))"));
+	g_variant_builder_init(&contacts, G_VARIANT_TYPE("a(oa(sv))"));
+	g_variant_builder_init(&buddies,  G_VARIANT_TYPE("a(oa(sv))"));
+	g_variant_builder_init(&chats,    G_VARIANT_TYPE("a(oa(sv))"));
 
 	pack_node(purple_blist_get_root(),
 	          &groups, &contacts, &buddies, &chats);


More information about the Commits mailing list