gobjectification: 348c07f6: Some convenience functions. I plan on us...

sadrul at pidgin.im sadrul at pidgin.im
Thu Mar 13 04:37:37 EDT 2008


-----------------------------------------------------------------
Revision: 348c07f631daba6f951e3265d3e60b176cfa9c1e
Ancestor: 9991626f286220a92a8b9d84acb970aedf9a6355
Author: sadrul at pidgin.im
Date: 2008-03-13T04:44:36
Branch: im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/348c07f631daba6f951e3265d3e60b176cfa9c1e

Modified files:
        libpurple/pobject.c libpurple/pobject.h

ChangeLog: 

Some convenience functions. I plan on using these to access some stuff.

-------------- next part --------------
============================================================
--- libpurple/pobject.c	59c2119273d36f3a1bdbd61544d542eb48e93c40
+++ libpurple/pobject.c	38f9534b220213c93a903aa3854fc49b70c8dc5b
@@ -98,3 +98,10 @@ gpointer purple_object_get_protocol_data
 	return pobj->priv->proto_data;
 }
 
+int purple_object_get_int(PurpleObject *pobj, const char *prop)
+{
+	int ret;
+	g_object_get(G_OBJECT(pobj), prop, &ret, NULL);
+	return ret;
+}
+
============================================================
--- libpurple/pobject.h	adfc89ed0cfe64155ef939750e58f73ccf43e275
+++ libpurple/pobject.h	82eb612d2da80440b8d99c8697aa98e5e4b513a0
@@ -57,6 +57,8 @@ gpointer purple_object_get_protocol_data
 
 gpointer purple_object_get_protocol_data(PurpleObject *pobj);
 
+int purple_object_get_int(PurpleObject *pobj, const char *prop);
+
 G_END_DECLS
 
 #endif /* PURPLE_OBJECT_H */


More information about the Commits mailing list