]> git.0d.be Git - empathy.git/commitdiff
Add hidden supprot. Fixes bug #455510 (Cosimo Cecchi).
authorXavier Claessens <xclaesse@gmail.com>
Fri, 10 Aug 2007 12:21:02 +0000 (12:21 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 10 Aug 2007 12:21:02 +0000 (12:21 +0000)
2007-08-10 Xavier Claessens  <xclaesse@gmail.com>

* libempathy-gtk/empathy-images.h:
* libempathy-gtk/empathy-presence-chooser.c:
* libempathy-gtk/empathy-ui-utils.c:
* libempathy/empathy-presence.c: Add hidden supprot. Fixes bug #455510
(Cosimo Cecchi).

* data/gtalk.profile:
* data/jabber.profile:
* data/salut.profile:
* data/irc.profile:
* data/msn.profile: Updated to use SupportedPresences field.

svn path=/trunk/; revision=243

ChangeLog
data/gtalk.profile
data/irc.profile
data/jabber.profile
data/msn.profile
data/salut.profile
libempathy-gtk/empathy-images.h
libempathy-gtk/empathy-presence-chooser.c
libempathy-gtk/empathy-ui-utils.c
libempathy/empathy-presence.c

index 1853d05bb8553a87fb8045acea6d57c53cc95082..91f4cf8b0ef01ae3e5686801f854a9e61206d9b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2007-08-10 Xavier Claessens  <xclaesse@gmail.com>
+
+       * libempathy-gtk/empathy-images.h:
+       * libempathy-gtk/empathy-presence-chooser.c:
+       * libempathy-gtk/empathy-ui-utils.c:
+       * libempathy/empathy-presence.c: Add hidden supprot. Fixes bug #455510
+       (Cosimo Cecchi).
+
+       * data/gtalk.profile:
+       * data/jabber.profile:
+       * data/salut.profile:
+       * data/irc.profile:
+       * data/msn.profile: Updated to use SupportedPresences field.
+
 2007-08-09 Xavier Claessens  <xclaesse@gmail.com>
 
        * libempathy-gtk/empathy-presence-chooser.glade:
index bed2224e53c6af1806d3e24a5aec0e7bf6bcb697..6d32f072808eb971831eb4bd3ed72387dd669fbc 100644 (file)
@@ -5,8 +5,10 @@ DisplayName=Google Talk
 IconName = empathy-proto-google-talk
 ConfigurationUI = jabber
 Capabilities = chat-p2p, chat-room, chat-room-list, voice-p2p, split-account, supports-avatars, supports-alias
-SupportsInvisible = 0
+SupportedPresences = offline,available,away,extended-away,do-not-disturb
 VCardField = X-Jabber
+
+
 DefaultAccountDomain = gmail.com
 Default-server = talk.google.com
 Default-port = 5223
index 5bc5cfd3f4764eec1f49d9abdabe0fd0387d91d0..22e13bbb70a0f123ecbeda8f9e81de3d42dc55a5 100644 (file)
@@ -4,5 +4,5 @@ Protocol=irc
 DisplayName=IRC
 IconName = empathy-proto-irc
 ConfigurationUI = irc
-Capabilities = chat-p2p, chat-room, chat-room-list, supports-alias
-SupportsInvisible = 0
+Capabilities = chat-p2p,chat-room,chat-room-list,supports-alias
+SupportedPresences = offline, away
index c91691daa68e355790d85f2e60c695e02ba32298..1ad05075e284576ef239a86cd1baea56a7f33069 100644 (file)
@@ -5,9 +5,10 @@ DisplayName=Jabber
 IconName = empathy-proto-jabber
 ConfigurationUI = jabber
 Capabilities = chat-p2p, chat-room, chat-room-list, voice-p2p, split-account, registration-ui, supports-avatars, supports-alias
-DefaultAccountDomain = jabber.org
-SupportsInvisible = 0
+SupportedPresences = offline,available,away,extended-away,do-not-disturb
 VCardField = X-Jabber
 VCardDefault = true
+
+DefaultAccountDomain = jabber.org
 Default-ignore-ssl-errors = 1
 
index 5651c5639598b49f9c09aed71808bf8e1f971be9..554893deedb1c198d846e7f9833313998d90b92d 100644 (file)
@@ -4,8 +4,8 @@ Protocol=msn
 DisplayName=MSN
 IconName = empathy-proto-msn
 ConfigurationUI = msn
-SupportsInvisible = 1
 Capabilities = chat-p2p, split-account, supports-avatars, supports-alias
+SupportedPresences = offline,available,away,extended-away,hidden,do-not-disturb
 VCardField = X-MSN
 VCardDefault = true
 
index 08094128cc6b8963e20817ce3053ce19c8bac365..ec6b3f5fbbb2b1b6cf71f8f08841ab67245da81e 100644 (file)
@@ -5,4 +5,4 @@ DisplayName=Salut
 IconName = empathy-proto-salut
 ConfigurationUI = salut
 Capabilities = chat-p2p, chat-room, chat-room-list, voice-p2p, supports-avatars, supports-alias
-
+SupportedPresences = offline,available,away,extended-away,do-not-disturb
index ee92f0ab40d693c5d5b3c6fd1a49b3a86a28960f..227ebe599ae723d46e16f28d184db8baa1187046 100644 (file)
@@ -26,6 +26,7 @@
 G_BEGIN_DECLS
 
 #define EMPATHY_IMAGE_OFFLINE             "empathy-offline"
+#define EMPATHY_IMAGE_HIDDEN              "empathy-offline"
 #define EMPATHY_IMAGE_AVAILABLE           "empathy-available"
 #define EMPATHY_IMAGE_BUSY                "empathy-busy"
 #define EMPATHY_IMAGE_AWAY                "empathy-away"
index 8cdc0b01a3b951f9edee5fd34732258929050fa5..f3097abcea766d806c803e63bb85cc45eac10ac7 100644 (file)
@@ -96,6 +96,7 @@ static CustomMessageDialog *message_dialog = NULL;
 static guint states[] = {MC_PRESENCE_AVAILABLE, TRUE,
                         MC_PRESENCE_DO_NOT_DISTURB, TRUE,
                         MC_PRESENCE_AWAY, TRUE,
+                        MC_PRESENCE_HIDDEN, FALSE,
                         MC_PRESENCE_OFFLINE, FALSE};
 
 static void            empathy_presence_chooser_class_init      (EmpathyPresenceChooserClass *klass);
@@ -678,12 +679,13 @@ empathy_presence_chooser_create_menu (void)
                        g_list_free (list);
                }
 
-               /* Separator. */
-               item = gtk_menu_item_new ();
-               gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
-               gtk_widget_show (item);
        }
 
+       /* Separator. */
+       item = gtk_menu_item_new ();
+       gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
+       gtk_widget_show (item);
+
        /* Custom messages */
        item = gtk_image_menu_item_new_with_label (_("Custom messages..."));
        image = gtk_image_new_from_stock (GTK_STOCK_EDIT, GTK_ICON_SIZE_MENU);
index af7f72caa739db195031833539bf431cb8c7d3c0..fb491cc5ef0da93a0e2672b4f37e4e67ebc7cc0d 100644 (file)
@@ -351,6 +351,7 @@ empathy_icon_name_for_presence_state (McPresence state)
        case MC_PRESENCE_EXTENDED_AWAY:
                return EMPATHY_IMAGE_EXT_AWAY;
        case MC_PRESENCE_HIDDEN:
+               return EMPATHY_IMAGE_HIDDEN;
        case MC_PRESENCE_OFFLINE:
        case MC_PRESENCE_UNSET:
                return EMPATHY_IMAGE_OFFLINE;
index 42c7f936b726aa97a179cb2c0559553e537d264d..b30fa6151e1c6d4f264724d7a382f6a7b208304c 100644 (file)
@@ -279,6 +279,7 @@ empathy_presence_state_get_default_status (McPresence state)
        case MC_PRESENCE_EXTENDED_AWAY:
                return _("Away");
        case MC_PRESENCE_HIDDEN:
+               return _("Hidden");
        case MC_PRESENCE_OFFLINE:
        case MC_PRESENCE_UNSET:
                return _("Offline");