aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-08-10 20:21:02 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-08-10 20:21:02 +0800
commitf91c3c9970a8085d5716127fb3d78768ced51c46 (patch)
tree50c83b12c9ccfcd833f9ef552c4d927f5dc0720d /libempathy-gtk
parentbc739e2debf92ccc3ea0180a1d37a262d89cc1bb (diff)
downloadgsoc2013-empathy-f91c3c9970a8085d5716127fb3d78768ced51c46.tar
gsoc2013-empathy-f91c3c9970a8085d5716127fb3d78768ced51c46.tar.gz
gsoc2013-empathy-f91c3c9970a8085d5716127fb3d78768ced51c46.tar.bz2
gsoc2013-empathy-f91c3c9970a8085d5716127fb3d78768ced51c46.tar.lz
gsoc2013-empathy-f91c3c9970a8085d5716127fb3d78768ced51c46.tar.xz
gsoc2013-empathy-f91c3c9970a8085d5716127fb3d78768ced51c46.tar.zst
gsoc2013-empathy-f91c3c9970a8085d5716127fb3d78768ced51c46.zip
Add hidden supprot. Fixes bug #455510 (Cosimo Cecchi).
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
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-images.h1
-rw-r--r--libempathy-gtk/empathy-presence-chooser.c10
-rw-r--r--libempathy-gtk/empathy-ui-utils.c1
3 files changed, 8 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-images.h b/libempathy-gtk/empathy-images.h
index ee92f0ab4..227ebe599 100644
--- a/libempathy-gtk/empathy-images.h
+++ b/libempathy-gtk/empathy-images.h
@@ -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"
diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c
index 8cdc0b01a..f3097abce 100644
--- a/libempathy-gtk/empathy-presence-chooser.c
+++ b/libempathy-gtk/empathy-presence-chooser.c
@@ -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);
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index af7f72caa..fb491cc5e 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -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;