[next] telepathy-glib: acount-channel-request: rename reques-vardict property

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Thu Feb 27 06:07:35 PST 2014


Module: telepathy-glib
Branch: next
Commit: 54273a1b672eb1561a32695d3b5613c483bc4afb
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=54273a1b672eb1561a32695d3b5613c483bc4afb

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Wed Feb 19 11:02:59 2014 +0100

acount-channel-request: rename reques-vardict property

---

 telepathy-glib/account-channel-request.c |   32 ++++++++++++++----------------
 tests/dbus/account-channel-request.c     |    2 +-
 2 files changed, 16 insertions(+), 18 deletions(-)

diff --git a/telepathy-glib/account-channel-request.c b/telepathy-glib/account-channel-request.c
index f7c6574..479d282 100644
--- a/telepathy-glib/account-channel-request.c
+++ b/telepathy-glib/account-channel-request.c
@@ -108,7 +108,7 @@ G_DEFINE_TYPE(TpAccountChannelRequest,
 
 enum {
     PROP_ACCOUNT = 1,
-    PROP_REQUEST_VARDICT,
+    PROP_REQUEST,
     PROP_USER_ACTION_TIME,
     PROP_CHANNEL_REQUEST,
     N_PROPS
@@ -237,7 +237,7 @@ tp_account_channel_request_get_property (GObject *object,
         g_value_set_object (value, self->priv->account);
         break;
 
-      case PROP_REQUEST_VARDICT:
+      case PROP_REQUEST:
         g_value_take_variant (value,
             tp_account_channel_request_dup_request (self));
         break;
@@ -271,7 +271,7 @@ tp_account_channel_request_set_property (GObject *object,
         self->priv->account = g_value_dup_object (value);
         break;
 
-      case PROP_REQUEST_VARDICT:
+      case PROP_REQUEST:
           {
             GHashTable *hash;
 
@@ -357,22 +357,20 @@ tp_account_channel_request_class_init (
       param_spec);
 
   /**
-   * TpAccountChannelRequest:request-vardict:
+   * TpAccountChannelRequest:request:
    *
    * The desired D-Bus properties for the channel.
    *
-   * When constructing a new object, one of
-   * #TpAccountChannelRequest:request or
-   * #TpAccountChannelRequest:request-vardict must be set to a non-%NULL
-   * value, and the other must remain unspecified.
+   * When constructing a new object, #TpAccountChannelRequest:request
+   * must be set to a non-%NULL value.
    *
    * Since: 0.19.10
    */
-  param_spec = g_param_spec_variant ("request-vardict", "Request",
+  param_spec = g_param_spec_variant ("request", "Request",
       "A dictionary containing desirable properties for the channel",
       G_VARIANT_TYPE_VARDICT, NULL,
       G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
-  g_object_class_install_property (object_class, PROP_REQUEST_VARDICT,
+  g_object_class_install_property (object_class, PROP_REQUEST,
       param_spec);
 
   /**
@@ -512,7 +510,7 @@ tp_account_channel_request_new (
 
   ret = g_object_new (TP_TYPE_ACCOUNT_CHANNEL_REQUEST,
       "account", account,
-      "request-vardict", request,
+      "request", request,
       "user-action-time", user_action_time,
       NULL);
   g_variant_unref (request);
@@ -540,11 +538,11 @@ tp_account_channel_request_get_account (
  * tp_account_channel_request_dup_request:
  * @self: a #TpAccountChannelRequest
  *
- * Return the #TpAccountChannelRequest:request-vardict construct-only
+ * Return the #TpAccountChannelRequest:request construct-only
  * property.
  *
  * Returns: (transfer full): the value of
- *  #TpAccountChannelRequest:request-vardict
+ *  #TpAccountChannelRequest:request
  *
  * Since: 0.19.10
  */
@@ -1594,7 +1592,7 @@ tp_account_channel_request_new_text (
 
   self = g_object_new (TP_TYPE_ACCOUNT_CHANNEL_REQUEST,
       "account", account,
-      "request-vardict", g_variant_dict_end (&dict),
+      "request", g_variant_dict_end (&dict),
       "user-action-time", user_action_time,
       NULL);
   return self;
@@ -1713,7 +1711,7 @@ tp_account_channel_request_new_audio_call (
 
   self = g_object_new (TP_TYPE_ACCOUNT_CHANNEL_REQUEST,
       "account", account,
-      "request-vardict", g_variant_dict_end (&dict),
+      "request", g_variant_dict_end (&dict),
       "user-action-time", user_action_time,
       NULL);
   return self;
@@ -1764,7 +1762,7 @@ tp_account_channel_request_new_audio_video_call (
 
   self = g_object_new (TP_TYPE_ACCOUNT_CHANNEL_REQUEST,
       "account", account,
-      "request-vardict", g_variant_dict_end (&dict),
+      "request", g_variant_dict_end (&dict),
       "user-action-time", user_action_time,
       NULL);
   return self;
@@ -1828,7 +1826,7 @@ tp_account_channel_request_new_file_transfer (
 
   self = g_object_new (TP_TYPE_ACCOUNT_CHANNEL_REQUEST,
       "account", account,
-      "request-vardict", g_variant_dict_end (&dict),
+      "request", g_variant_dict_end (&dict),
       "user-action-time", user_action_time,
       NULL);
   return self;
diff --git a/tests/dbus/account-channel-request.c b/tests/dbus/account-channel-request.c
index 0ee54d3..1199175 100644
--- a/tests/dbus/account-channel-request.c
+++ b/tests/dbus/account-channel-request.c
@@ -467,7 +467,7 @@ test_handle_ensure_success (Test *test,
   g_variant_unref (vardict);
 
   g_object_get (req,
-      "request-vardict", &vardict,
+      "request", &vardict,
       NULL);
   g_assert_cmpstr (tp_vardict_get_string (vardict,
       TP_PROP_CHANNEL_TARGET_ID), ==, "alice");



More information about the telepathy-commits mailing list