diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-11 23:13:33 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-13 23:59:22 +0800 |
commit | 1b95421ff7aff636a202763d996fd247d3b73ee3 (patch) | |
tree | ab9b54b38a5ae5ac80ac7d4cd33f2c321d74b00a | |
parent | 39c7d6c0773722c2af928a0faad15c4341336a5b (diff) | |
download | gsoc2013-empathy-1b95421ff7aff636a202763d996fd247d3b73ee3.tar gsoc2013-empathy-1b95421ff7aff636a202763d996fd247d3b73ee3.tar.gz gsoc2013-empathy-1b95421ff7aff636a202763d996fd247d3b73ee3.tar.bz2 gsoc2013-empathy-1b95421ff7aff636a202763d996fd247d3b73ee3.tar.lz gsoc2013-empathy-1b95421ff7aff636a202763d996fd247d3b73ee3.tar.xz gsoc2013-empathy-1b95421ff7aff636a202763d996fd247d3b73ee3.tar.zst gsoc2013-empathy-1b95421ff7aff636a202763d996fd247d3b73ee3.zip |
empathy-tp-chat: add 'password-needed' property
-rw-r--r-- | libempathy/empathy-tp-chat.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 92faa65fe..c0c6eb66e 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -68,6 +68,7 @@ enum { PROP_0, PROP_CHANNEL, PROP_REMOTE_CONTACT, + PROP_PASSWORD_NEEDED, PROP_READY, }; @@ -1151,6 +1152,7 @@ tp_chat_get_property (GObject *object, GValue *value, GParamSpec *pspec) { + EmpathyTpChat *self = EMPATHY_TP_CHAT (object); EmpathyTpChatPriv *priv = GET_PRIV (object); switch (param_id) { @@ -1163,6 +1165,9 @@ tp_chat_get_property (GObject *object, case PROP_READY: g_value_set_boolean (value, priv->ready); break; + case PROP_PASSWORD_NEEDED: + g_value_set_boolean (value, empathy_tp_chat_password_needed (self)); + break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); break; @@ -1223,6 +1228,14 @@ empathy_tp_chat_class_init (EmpathyTpChatClass *klass) FALSE, G_PARAM_READABLE)); + g_object_class_install_property (object_class, + PROP_PASSWORD_NEEDED, + g_param_spec_boolean ("password-needed", + "password needed", + "TRUE if a password is needed to join the channel", + FALSE, + G_PARAM_READABLE)); + /* Signals */ signals[MESSAGE_RECEIVED] = g_signal_new ("message-received", |