pidgin.vv: f3413d23: Remove levels since they aren't used.
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Tue Jan 13 08:46:31 EST 2009
-----------------------------------------------------------------
Revision: f3413d234f490ebc60bc836f82834eecdcecb7b4
Ancestor: a7fd212070f9f469df9d0a908aad38d7a04753f5
Author: maiku at soc.pidgin.im
Date: 2009-01-13T12:28:51
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/f3413d234f490ebc60bc836f82834eecdcecb7b4
Modified files:
finch/gntmedia.c
ChangeLog:
Remove levels since they aren't used.
-------------- next part --------------
============================================================
--- finch/gntmedia.c ff20efcb76a0f996b8c4f9f5a7b1e9f52fe7eea8
+++ finch/gntmedia.c 9083284b088a38f3bba5a10103955bbf5c0f55a7
@@ -47,8 +47,6 @@ struct _FinchMediaPrivate
struct _FinchMediaPrivate
{
PurpleMedia *media;
- GstElement *send_level;
- GstElement *recv_level;
GntWidget *accept;
GntWidget *reject;
@@ -77,8 +75,6 @@ enum {
enum {
PROP_0,
PROP_MEDIA,
- PROP_SEND_LEVEL,
- PROP_RECV_LEVEL
};
GType
@@ -121,18 +117,6 @@ finch_media_class_init (FinchMediaClass
"The PurpleMedia associated with this media.",
PURPLE_TYPE_MEDIA,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
- g_object_class_install_property(gobject_class, PROP_SEND_LEVEL,
- g_param_spec_object("send-level",
- "Send level",
- "The GstElement of this media's send 'level'",
- GST_TYPE_ELEMENT,
- G_PARAM_READWRITE));
- g_object_class_install_property(gobject_class, PROP_RECV_LEVEL,
- g_param_spec_object("recv-level",
- "Receive level",
- "The GstElement of this media's recv 'level'",
- GST_TYPE_ELEMENT,
- G_PARAM_READWRITE));
finch_media_signals[MESSAGE] = g_signal_new("message", G_TYPE_FROM_CLASS(klass),
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
@@ -187,9 +171,6 @@ finch_media_ready_cb(PurpleMedia *media,
purple_media_set_src(media, sessions->data, sendbin);
}
g_list_free(sessions);
-
- g_object_set(gntmedia, "send-level", sendlevel,
- NULL);
}
static void
@@ -307,18 +288,6 @@ finch_media_set_property (GObject *objec
G_CALLBACK(finch_media_state_changed_cb), media);
break;
}
- case PROP_SEND_LEVEL:
- if (media->priv->send_level)
- gst_object_unref(media->priv->send_level);
- media->priv->send_level = g_value_get_object(value);
- g_object_ref(media->priv->send_level);
- break;
- case PROP_RECV_LEVEL:
- if (media->priv->recv_level)
- gst_object_unref(media->priv->recv_level);
- media->priv->recv_level = g_value_get_object(value);
- g_object_ref(media->priv->recv_level);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -337,12 +306,6 @@ finch_media_get_property (GObject *objec
case PROP_MEDIA:
g_value_set_object(value, media->priv->media);
break;
- case PROP_SEND_LEVEL:
- g_value_set_object(value, media->priv->send_level);
- break;
- case PROP_RECV_LEVEL:
- g_value_set_object(value, media->priv->recv_level);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
More information about the Commits
mailing list