]> git.0d.be Git - empathy.git/commitdiff
change 'capa' to 'cap'
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 13 Nov 2009 11:34:57 +0000 (11:34 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 13 Nov 2009 11:37:18 +0000 (11:37 +0000)
libempathy-gtk/empathy-notify-manager.c
libempathy-gtk/empathy-notify-manager.h
src/empathy-status-icon.c

index 6a9ee3971153f2f139cafd8ecfaee0ce7baa38e3..b87bb4965142e912c9b6fac3a111486c484602a7 100644 (file)
@@ -101,11 +101,11 @@ empathy_notify_manager_init (EmpathyNotifyManager *self)
   list = notify_get_server_caps ();
   for (l = list; l != NULL; l = g_list_next (l))
     {
-      gchar *capa = l->data;
+      gchar *cap = l->data;
 
-      DEBUG ("add capability: %s", capa);
+      DEBUG ("add capability: %s", cap);
       /* owernship of the string is transfered to the hash table */
-      g_hash_table_insert (priv->capabilities, capa, GUINT_TO_POINTER (TRUE));
+      g_hash_table_insert (priv->capabilities, cap, GUINT_TO_POINTER (TRUE));
     }
   g_list_free (list);
 }
@@ -118,11 +118,11 @@ empathy_notify_manager_dup_singleton (void)
 
 gboolean
 empathy_notify_manager_has_capability (EmpathyNotifyManager *self,
-    const gchar *capa)
+    const gchar *cap)
 {
   EmpathyNotifyManagerPriv *priv = GET_PRIV (self);
 
-  return g_hash_table_lookup (priv->capabilities, capa) != NULL;
+  return g_hash_table_lookup (priv->capabilities, cap) != NULL;
 }
 
 GdkPixbuf *
index 4faa13b35af11749900d00cf8aa25c4e9daa329d..70acd78877ee375c5167de9323a5da9abac16a75 100644 (file)
 
 G_BEGIN_DECLS
 
-#define EMPATHY_NOTIFY_MANAGER_CAPA_ACTIONS             "actions"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_APPEND              "append"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_BODY                "body"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_BODY_HYPERLINKS     "body-hyperlinks"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_BODY_IMAGES         "body-images"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_BODY_MARKUP         "body-markup"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_ICON_MULTI          "icon-multi"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_ICON_STATIC         "icon-static"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_IMAGE_SVG_XML       "image/svg+xml"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_PRIVATE_ICON_ONLY   "private-icon-only"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_PRIVATE_SYNCHRONOUS "private-synchronous"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_SOUND                "sound"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_TRUNCATION           "truncation"
+#define EMPATHY_NOTIFY_MANAGER_CAP_ACTIONS             "actions"
+#define EMPATHY_NOTIFY_MANAGER_CAP_APPEND              "append"
+#define EMPATHY_NOTIFY_MANAGER_CAP_BODY                "body"
+#define EMPATHY_NOTIFY_MANAGER_CAP_BODY_HYPERLINKS     "body-hyperlinks"
+#define EMPATHY_NOTIFY_MANAGER_CAP_BODY_IMAGES         "body-images"
+#define EMPATHY_NOTIFY_MANAGER_CAP_BODY_MARKUP         "body-markup"
+#define EMPATHY_NOTIFY_MANAGER_CAP_ICON_MULTI          "icon-multi"
+#define EMPATHY_NOTIFY_MANAGER_CAP_ICON_STATIC         "icon-static"
+#define EMPATHY_NOTIFY_MANAGER_CAP_IMAGE_SVG_XML       "image/svg+xml"
+#define EMPATHY_NOTIFY_MANAGER_CAP_PRIVATE_ICON_ONLY   "private-icon-only"
+#define EMPATHY_NOTIFY_MANAGER_CAP_PRIVATE_SYNCHRONOUS "private-synchronous"
+#define EMPATHY_NOTIFY_MANAGER_CAP_SOUND                "sound"
+#define EMPATHY_NOTIFY_MANAGER_CAP_TRUNCATION           "truncation"
 /* notify-osd specific */
-#define EMPATHY_NOTIFY_MANAGER_CAPA_X_CANONICAL_APPEND              "x-canonical-append"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_X_CANONICAL_PRIVATE_ICON_ONLY   "x-canonical-private-icon-only"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_X_CANONICAL_PRIVATE_SYNCHRONOUS "x-canonical-private-synchronous"
-#define EMPATHY_NOTIFY_MANAGER_CAPA_X_CANONICAL_TRUNCATION          "x-canonical-truncation"
+#define EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_APPEND              "x-canonical-append"
+#define EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_PRIVATE_ICON_ONLY   "x-canonical-private-icon-only"
+#define EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_PRIVATE_SYNCHRONOUS "x-canonical-private-synchronous"
+#define EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_TRUNCATION          "x-canonical-truncation"
 
 #define EMPATHY_TYPE_NOTIFY_MANAGER         (empathy_notify_manager_get_type ())
 #define EMPATHY_NOTIFY_MANAGER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_NOTIFY_MANAGER, EmpathyNotifyManager))
@@ -80,7 +80,7 @@ GType empathy_notify_manager_get_type (void) G_GNUC_CONST;
 EmpathyNotifyManager * empathy_notify_manager_dup_singleton (void);
 
 gboolean empathy_notify_manager_has_capability (EmpathyNotifyManager *self,
-    const gchar *capa);
+    const gchar *cap);
 
 gboolean empathy_notify_manager_notification_is_enabled  (
     EmpathyNotifyManager *self);
index 0993762eea6451fc33c9632f0586d21badf26933..08024edf62b5acae76ba6d633a4b07977b002979 100644 (file)
@@ -174,7 +174,7 @@ status_icon_update_notification (EmpathyStatusIcon *icon)
                                                         NOTIFY_EXPIRES_DEFAULT);
 
                        if (empathy_notify_manager_has_capability (priv->notify_mgr,
-                                  EMPATHY_NOTIFY_MANAGER_CAPA_ACTIONS)) {
+                                  EMPATHY_NOTIFY_MANAGER_CAP_ACTIONS)) {
                                notify_notification_add_action (priv->notification,
                                        "respond",
                                        _("Respond"),