aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-chatroom.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-01-10 00:13:08 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-10 00:13:08 +0800
commit19d7725211923db6311b52a8e34026a80bec8612 (patch)
tree7d4b43f64301b7231d6f2e2dba20ecf405d018a7 /libempathy/empathy-chatroom.c
parent4f5bfccceec4707e5e3a6ca3596ff9fb88507464 (diff)
downloadgsoc2013-empathy-19d7725211923db6311b52a8e34026a80bec8612.tar
gsoc2013-empathy-19d7725211923db6311b52a8e34026a80bec8612.tar.gz
gsoc2013-empathy-19d7725211923db6311b52a8e34026a80bec8612.tar.bz2
gsoc2013-empathy-19d7725211923db6311b52a8e34026a80bec8612.tar.lz
gsoc2013-empathy-19d7725211923db6311b52a8e34026a80bec8612.tar.xz
gsoc2013-empathy-19d7725211923db6311b52a8e34026a80bec8612.tar.zst
gsoc2013-empathy-19d7725211923db6311b52a8e34026a80bec8612.zip
Remove the tp-channel property, it's unused and useless
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2146
Diffstat (limited to 'libempathy/empathy-chatroom.c')
-rw-r--r--libempathy/empathy-chatroom.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/libempathy/empathy-chatroom.c b/libempathy/empathy-chatroom.c
index cb39455ed..0920c8a14 100644
--- a/libempathy/empathy-chatroom.c
+++ b/libempathy/empathy-chatroom.c
@@ -36,10 +36,6 @@ typedef struct {
gchar *name;
gboolean auto_connect;
gboolean favorite;
- /* FIXME: This is crack. We should store EmapthyTpChat but can't
- * as it's not created in the dispatcher. At some point it should be
- * automatically created by tp-glib */
- TpChannel *tp_channel;
} EmpathyChatroomPriv;
@@ -60,7 +56,6 @@ enum {
PROP_NAME,
PROP_AUTO_CONNECT,
PROP_FAVORITE,
- PROP_TP_CHANNEL
};
G_DEFINE_TYPE (EmpathyChatroom, empathy_chatroom, G_TYPE_OBJECT);
@@ -118,19 +113,6 @@ empathy_chatroom_class_init (EmpathyChatroomClass *klass)
G_PARAM_STATIC_NICK |
G_PARAM_STATIC_BLURB));
- g_object_class_install_property (object_class,
- PROP_TP_CHANNEL,
- g_param_spec_object ("tp-channel",
- "TpChannel object",
- "The TpChannel associated with this chatroom if we are in the"
- " room. NULL otherwise.",
- TP_TYPE_CHANNEL,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT |
- G_PARAM_STATIC_NAME |
- G_PARAM_STATIC_NICK |
- G_PARAM_STATIC_BLURB));
-
g_type_class_add_private (object_class, sizeof (EmpathyChatroomPriv));
}
@@ -150,12 +132,6 @@ chatroom_finalize (GObject *object)
priv = GET_PRIV (object);
- if (priv->tp_channel != NULL)
- {
- g_object_unref (priv->tp_channel);
- priv->tp_channel = NULL;
- }
-
g_object_unref (priv->account);
g_free (priv->room);
g_free (priv->name);
@@ -189,9 +165,6 @@ chatroom_get_property (GObject *object,
case PROP_FAVORITE:
g_value_set_boolean (value, priv->favorite);
break;
- case PROP_TP_CHANNEL:
- g_value_set_object (value, priv->tp_channel);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break;
@@ -233,14 +206,6 @@ chatroom_set_property (GObject *object,
FALSE);
}
break;
- case PROP_TP_CHANNEL:
- if (priv->tp_channel != NULL)
- {
- g_object_unref (priv->tp_channel);
- }
-
- priv->tp_channel = g_value_dup_object (value);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break;