]> git.0d.be Git - empathy.git/commitdiff
Rename NUM_TP_ to TP_NUM_
authorXavier Claessens <xavier.claessens@collabora.co.uk>
Wed, 2 Oct 2013 20:08:39 +0000 (16:08 -0400)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 10 Oct 2013 14:05:17 +0000 (10:05 -0400)
libempathy-gtk/empathy-tls-dialog.c
libempathy/empathy-contact.c
libempathy/empathy-presence-manager.c
libempathy/empathy-status-presets.c
tests/empathy-tls-test.c

index def31d2245eebfa134eba81d8047f25d8f04a4f9..df47c503e2cc197d56a44378cde70bfa43262022 100644 (file)
@@ -345,7 +345,7 @@ empathy_tls_dialog_class_init (EmpathyTLSDialogClass *klass)
 
   pspec = g_param_spec_uint ("reason", "The reason",
       "The reason why the certificate is being asked for confirmation.",
-      0, NUM_TP_TLS_CERTIFICATE_REJECT_REASONS - 1,
+      0, TP_NUM_TLS_CERTIFICATE_REJECT_REASONS - 1,
       TP_TLS_CERTIFICATE_REJECT_REASON_UNKNOWN,
       G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
   g_object_class_install_property (oclass, PROP_REASON, pspec);
index 2f381a5be3ae88740e7bf673181146ead703cd9c..d2284806f639c48179546d0dcd73ca3f4eb56c2f 100644 (file)
@@ -325,7 +325,7 @@ empathy_contact_class_init (EmpathyContactClass *class)
         "Contact presence",
         "Presence of contact",
         TP_CONNECTION_PRESENCE_TYPE_UNSET,
-        NUM_TP_CONNECTION_PRESENCE_TYPES,
+        TP_NUM_CONNECTION_PRESENCE_TYPES,
         TP_CONNECTION_PRESENCE_TYPE_UNSET,
         G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
index 6eab7f15b2a4573bf07cc866886e43fb598926a1..a6aca1adf0b6416e370cc787f5d6ec0a5302d0db 100644 (file)
@@ -80,7 +80,7 @@ G_DEFINE_TYPE (EmpathyPresenceManager, empathy_presence_manager, G_TYPE_OBJECT);
 
 static EmpathyPresenceManager * singleton = NULL;
 
-static const gchar *presence_type_to_status[NUM_TP_CONNECTION_PRESENCE_TYPES] =
+static const gchar *presence_type_to_status[TP_NUM_CONNECTION_PRESENCE_TYPES] =
 {
   NULL,
   "offline",
@@ -349,7 +349,7 @@ empathy_presence_manager_class_init (EmpathyPresenceManagerClass *klass)
   g_object_class_install_property (object_class,
       PROP_STATE,
       g_param_spec_uint ("state", "state", "state",
-        0, NUM_TP_CONNECTION_PRESENCE_TYPES,
+        0, TP_NUM_CONNECTION_PRESENCE_TYPES,
         TP_CONNECTION_PRESENCE_TYPE_UNSET,
         G_PARAM_READWRITE));
 
@@ -519,7 +519,7 @@ empathy_presence_manager_do_set_presence (EmpathyPresenceManager *self,
 {
   const gchar *status;
 
-  g_assert (status_type > 0 && status_type < NUM_TP_CONNECTION_PRESENCE_TYPES);
+  g_assert (status_type > 0 && status_type < TP_NUM_CONNECTION_PRESENCE_TYPES);
 
   status = presence_type_to_status[status_type];
 
index 9895d4d42ca9bf2144c433672f90e869ceaa43cf..aacee83d82fa112e0af8daa05bcd2dc86fd76062 100644 (file)
@@ -187,10 +187,10 @@ status_presets_file_save (void)
        GList      *l;
        gchar      *dir;
        gchar      *file;
-       gint        count[NUM_TP_CONNECTION_PRESENCE_TYPES];
+       gint        count[TP_NUM_CONNECTION_PRESENCE_TYPES];
        gint        i;
 
-       for (i = 0; i < NUM_TP_CONNECTION_PRESENCE_TYPES; i++) {
+       for (i = 0; i < TP_NUM_CONNECTION_PRESENCE_TYPES; i++) {
                count[i] = 0;
        }
 
index d3b1ae410a7e67c840e4fb44b633a7f8bf1e007e..d48bfccfd065da46b51c5cd82a1205b21999885d 100644 (file)
@@ -128,7 +128,7 @@ mock_tls_certificate_class_init (MockTLSCertificateClass *klass)
   pspec = g_param_spec_uint ("state",
       "State of this certificate",
       "The state of this TLS certificate.",
-      0, NUM_TP_TLS_CERTIFICATE_STATES - 1,
+      0, TP_NUM_TLS_CERTIFICATE_STATES - 1,
       TP_TLS_CERTIFICATE_STATE_PENDING,
       G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
   g_object_class_install_property (oclass, PROP_STATE, pspec);