diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-16 02:48:48 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-17 18:38:49 +0800 |
commit | 59f03a7aef175ffa8792eb0fbf825346cf5d5c4a (patch) | |
tree | 492291807d122a21d425f4f682029769e07037e9 /src/empathy-status-icon.c | |
parent | c5b4c8eedb2f1f28cc8fedf21ceb42eadfcf1162 (diff) | |
download | gsoc2013-empathy-59f03a7aef175ffa8792eb0fbf825346cf5d5c4a.tar gsoc2013-empathy-59f03a7aef175ffa8792eb0fbf825346cf5d5c4a.tar.gz gsoc2013-empathy-59f03a7aef175ffa8792eb0fbf825346cf5d5c4a.tar.bz2 gsoc2013-empathy-59f03a7aef175ffa8792eb0fbf825346cf5d5c4a.tar.lz gsoc2013-empathy-59f03a7aef175ffa8792eb0fbf825346cf5d5c4a.tar.xz gsoc2013-empathy-59f03a7aef175ffa8792eb0fbf825346cf5d5c4a.tar.zst gsoc2013-empathy-59f03a7aef175ffa8792eb0fbf825346cf5d5c4a.zip |
status-icon: add "New Call" entry in the context menu
Diffstat (limited to 'src/empathy-status-icon.c')
-rw-r--r-- | src/empathy-status-icon.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index 4c57d663d..b137daf72 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -42,6 +42,7 @@ #include <libempathy-gtk/empathy-ui-utils.h> #include <libempathy-gtk/empathy-images.h> #include <libempathy-gtk/empathy-new-message-dialog.h> +#include <libempathy-gtk/empathy-new-call-dialog.h> #include <libempathy-gtk/empathy-notify-manager.h> #include "empathy-accounts-dialog.h" @@ -452,6 +453,13 @@ status_icon_new_message_cb (GtkAction *action, } static void +status_icon_new_call_cb (GtkAction *action, + EmpathyStatusIcon *icon) +{ + empathy_new_call_dialog_show (NULL); +} + +static void status_icon_quit_cb (GtkAction *action, EmpathyStatusIcon *icon) { @@ -512,6 +520,7 @@ status_icon_create_menu (EmpathyStatusIcon *icon) empathy_builder_connect (gui, icon, "show_list", "toggled", status_icon_show_hide_window_cb, "new_message", "activate", status_icon_new_message_cb, + "new_call", "activate", status_icon_new_call_cb, "quit", "activate", status_icon_quit_cb, NULL); |