empathy r2146 - trunk/libempathy



Author: xclaesse
Date: Fri Jan  9 16:13:08 2009
New Revision: 2146
URL: http://svn.gnome.org/viewvc/empathy?rev=2146&view=rev

Log:
Remove the tp-channel property, it's unused and useless

Signed-off-by: Sjoerd Simons <sjoerd simons collabora co uk>

Modified:
   trunk/libempathy/empathy-chatroom.c

Modified: trunk/libempathy/empathy-chatroom.c
==============================================================================
--- trunk/libempathy/empathy-chatroom.c	(original)
+++ trunk/libempathy/empathy-chatroom.c	Fri Jan  9 16:13:08 2009
@@ -36,10 +36,6 @@
 	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 @@
 	PROP_NAME,
 	PROP_AUTO_CONNECT,
   PROP_FAVORITE,
-  PROP_TP_CHANNEL
 };
 
 G_DEFINE_TYPE (EmpathyChatroom, empathy_chatroom, G_TYPE_OBJECT);
@@ -118,19 +113,6 @@
         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 @@
 
 	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 @@
   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 @@
             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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]