diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2007-05-03 01:39:27 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-05-03 01:39:27 +0800 |
commit | 563cdc5a284bc85957f60b14048ba6e42a0c7c87 (patch) | |
tree | bb0b4df3fa7e332602951d48c46384a9b3cb7ab3 /libempathy-gtk/gossip-presence-chooser.c | |
parent | 02fc345b94f6fa5d4a87ec2917e5fe846f9e755d (diff) | |
download | gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar.gz gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar.bz2 gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar.lz gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar.xz gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar.zst gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.zip |
[darcs-to-svn @ Autostart]
svn path=/trunk/; revision=27
Diffstat (limited to 'libempathy-gtk/gossip-presence-chooser.c')
-rw-r--r-- | libempathy-gtk/gossip-presence-chooser.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/libempathy-gtk/gossip-presence-chooser.c b/libempathy-gtk/gossip-presence-chooser.c index 16b411f31..e540c8a4e 100644 --- a/libempathy-gtk/gossip-presence-chooser.c +++ b/libempathy-gtk/gossip-presence-chooser.c @@ -830,15 +830,16 @@ gossip_presence_chooser_new (void) GtkWidget * gossip_presence_chooser_create_menu (GossipPresenceChooser *chooser) { + const gchar *status; GtkWidget *menu; GtkWidget *item; + GtkWidget *image; guint i; menu = gtk_menu_new (); for (i = 0; i < G_N_ELEMENTS (states); i++) { GList *list, *l; - const gchar *status; status = gossip_presence_state_get_default_status (states[i]); presence_chooser_menu_add_item (chooser, @@ -869,8 +870,24 @@ gossip_presence_chooser_create_menu (GossipPresenceChooser *chooser) gtk_widget_show (item); } - item = gtk_menu_item_new_with_label (_("Clear List...")); + /* Offline to disconnect */ + status = gossip_presence_state_get_default_status (MC_PRESENCE_OFFLINE); + presence_chooser_menu_add_item (chooser, + menu, + status, + MC_PRESENCE_OFFLINE, + FALSE); + /* Separator. */ + item = gtk_menu_item_new (); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); + gtk_widget_show (item); + + /* Clear list */ + item = gtk_image_menu_item_new_with_label (_("Clear List...")); + image = gtk_image_new_from_stock (GTK_STOCK_CLEAR, GTK_ICON_SIZE_MENU); + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); + gtk_widget_show (image); gtk_widget_show (item); g_signal_connect (item, |