cpw.maiku.media_refactor: 694d33fc: Add a read only property to PurpleMedia ...
maiku at pidgin.im
maiku at pidgin.im
Tue Nov 10 22:20:30 EST 2009
-----------------------------------------------------------------
Revision: 694d33fc3fc4f680b1c9ec81bdcbd753fda78b97
Ancestor: 8aad1f2b89a3de14e9496c8f97b62afe39be4ac3
Author: maiku at pidgin.im
Date: 2009-11-02T20:20:21
Branch: im.pidgin.cpw.maiku.media_refactor
URL: http://d.pidgin.im/viewmtn/revision/info/694d33fc3fc4f680b1c9ec81bdcbd753fda78b97
Modified files:
libpurple/media/media.c
ChangeLog:
Add a read only property to PurpleMedia to retrieve the MediaBackend object.
-------------- next part --------------
============================================================
--- libpurple/media/media.c 69be7295b73345f6417f8eacb764951895db77cb
+++ libpurple/media/media.c a78dea3e19d599edd9145ac9ea0f1b0bfdefeafb
@@ -149,6 +149,7 @@ enum {
enum {
PROP_0,
PROP_MANAGER,
+ PROP_BACKEND,
PROP_ACCOUNT,
PROP_CONFERENCE_TYPE,
PROP_INITIATOR,
@@ -203,6 +204,17 @@ purple_media_class_init (PurpleMediaClas
PURPLE_TYPE_MEDIA_MANAGER,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
+ /*
+ * This one should be PURPLE_TYPE_MEDIA_BACKEND, but it doesn't
+ * like interfaces because they "aren't GObjects"
+ */
+ g_object_class_install_property(gobject_class, PROP_BACKEND,
+ g_param_spec_object("backend",
+ "Purple Media Backend",
+ "The backend object this media object uses.",
+ G_TYPE_OBJECT,
+ G_PARAM_READABLE));
+
g_object_class_install_property(gobject_class, PROP_ACCOUNT,
g_param_spec_pointer("account",
"PurpleAccount",
@@ -423,6 +435,9 @@ purple_media_get_property (GObject *obje
case PROP_MANAGER:
g_value_set_object(value, media->priv->manager);
break;
+ case PROP_BACKEND:
+ g_value_set_object(value, media->priv->backend);
+ break;
case PROP_ACCOUNT:
g_value_set_pointer(value, media->priv->account);
break;
More information about the Commits
mailing list