]> git.0d.be Git - empathy.git/commitdiff
Remove the tp-channel property, it's unused and useless
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Fri, 9 Jan 2009 16:13:08 +0000 (16:13 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 9 Jan 2009 16:13:08 +0000 (16:13 +0000)
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
svn path=/trunk/; revision=2146

libempathy/empathy-chatroom.c

index cb39455edeb730d871f364643e8e9a9a88a08666..0920c8a144d31f6ba7496bab9b2a99e1e2a23151 100644 (file)
@@ -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);
@@ -188,9 +164,6 @@ chatroom_get_property (GObject    *object,
                break;
   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);
@@ -232,14 +205,6 @@ chatroom_set_property (GObject      *object,
         empathy_chatroom_set_auto_connect (EMPATHY_CHATROOM (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);