summaryrefslogtreecommitdiff
path: root/telepathy-glib/contact.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-03 20:12:23 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-03 20:18:18 +0100
commit34752d004ced4ce4ac75e7ab0c601bf444bed864 (patch)
tree6e5af8464e55868a767c867d413ab65798e40263 /telepathy-glib/contact.c
parent2f377dab66ef074497ff0630508535716d369cb7 (diff)
downloadtelepathy-glib-34752d004ced4ce4ac75e7ab0c601bf444bed864.tar.gz
Revert "Add tp_contact_is_self()"
This reverts commit aa611fb0084b0c94f5e3b3c9c7e5ae30b8556c67. We shouldn't release this until it's more reliable. Opens: https://bugs.freedesktop.org/show_bug.cgi?id=49443
Diffstat (limited to 'telepathy-glib/contact.c')
-rw-r--r--telepathy-glib/contact.c51
1 files changed, 1 insertions, 50 deletions
diff --git a/telepathy-glib/contact.c b/telepathy-glib/contact.c
index ff6843ca0..70912f652 100644
--- a/telepathy-glib/contact.c
+++ b/telepathy-glib/contact.c
@@ -184,7 +184,6 @@ enum {
PROP_PUBLISH_REQUEST,
PROP_CONTACT_GROUPS,
PROP_IS_BLOCKED,
- PROP_IS_SELF,
N_PROPS
};
@@ -219,7 +218,6 @@ struct _TpContactPrivate {
TpHandle handle;
gchar *identifier;
ContactFeatureFlags has_features;
- gboolean is_self;
/* aliasing */
gchar *alias;
@@ -371,33 +369,6 @@ tp_contact_has_feature (TpContact *self,
return ((self->priv->has_features & (1 << feature)) != 0);
}
-/**
- * tp_contact_is_self:
- * @self: a contact
- *
- * <!-- -->
- *
- * Returns: the value of #TpContact:is-self property
- * Since: 0.UNRELEASED
- */
-gboolean
-tp_contact_is_self (TpContact *self)
-{
- g_return_val_if_fail (TP_IS_CONTACT (self), FALSE);
-
- return self->priv->is_self;
-}
-
-void
-_tp_contact_set_is_self (TpContact *self,
- gboolean is_self)
-{
- g_return_if_fail (TP_IS_CONTACT (self));
-
- self->priv->is_self = is_self;
- g_object_notify ((GObject *) self, "is-self");
-}
-
/**
* tp_contact_get_alias:
@@ -985,10 +956,6 @@ tp_contact_get_property (GObject *object,
g_value_set_boolean (value, tp_contact_is_blocked (self));
break;
- case PROP_IS_SELF:
- g_value_set_boolean (value, tp_contact_is_self (self));
- break;
-
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -1364,7 +1331,7 @@ tp_contact_class_init (TpContactClass *klass)
g_object_class_install_property (object_class, PROP_CONTACT_GROUPS,
param_spec);
- /**
+/**
* TpContact:is-blocked:
*
* %TRUE if the contact has been blocked.
@@ -1383,22 +1350,6 @@ tp_contact_class_init (TpContactClass *klass)
g_object_class_install_property (object_class, PROP_IS_BLOCKED, param_spec);
/**
- * TpContact:is-self:
- *
- * This is %TRUE if the contact is set as
- * #TpConnection's #TpConnection:self-contact or
- * #TpChannel's #TpChannel:group-self-contact, %FALSE otherwise.
- *
- * Since: 0.UNRELEASED
- */
- param_spec = g_param_spec_boolean ("is-self",
- "is local user",
- "TRUE if contact is local user",
- FALSE,
- G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
- g_object_class_install_property (object_class, PROP_IS_SELF, param_spec);
-
- /**
* TpContact::contact-groups-changed:
* @contact: A #TpContact
* @added: A #GStrv with added contact groups