diff options
-rw-r--r-- | src/empathy-status-icon.c | 9 | ||||
-rw-r--r-- | src/empathy-status-icon.ui | 8 |
2 files changed, 17 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); diff --git a/src/empathy-status-icon.ui b/src/empathy-status-icon.ui index 356c2155f..6d0f3672d 100644 --- a/src/empathy-status-icon.ui +++ b/src/empathy-status-icon.ui @@ -18,6 +18,13 @@ </object> </child> <child> + <object class="GtkAction" id="new_call"> + <property name="icon-name">audio-input-microphone</property> + <property name="name">new_call</property> + <property name="label" translatable="yes">New _Call...</property> + </object> + </child> + <child> <object class="GtkAction" id="status"> <property name="name">status</property> <property name="label" translatable="yes">Status</property> @@ -37,6 +44,7 @@ <menuitem action="show_list"/> <separator/> <menuitem action="new_message"/> + <menuitem action="new_call"/> <menuitem action="status"/> <separator/> <menuitem action="quit"/> |