From c5b4c8eedb2f1f28cc8fedf21ceb42eadfcf1162 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 15 Dec 2009 18:48:19 +0000 Subject: main-window: add "New Call" menu entry (#582599) --- src/empathy-main-window.c | 10 ++++++++++ src/empathy-main-window.ui | 9 +++++++++ 2 files changed, 19 insertions(+) (limited to 'src') diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index cbb6f10b0..162de3b45 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -46,6 +46,7 @@ #include #include #include +#include #include #include #include @@ -668,6 +669,13 @@ main_window_chat_new_message_cb (GtkAction *action, empathy_new_message_dialog_show (GTK_WINDOW (window->window)); } +static void +main_window_chat_new_call_cb (GtkAction *action, + EmpathyMainWindow *window) +{ + empathy_new_call_dialog_show (GTK_WINDOW (window->window)); +} + static void main_window_chat_add_contact_cb (GtkAction *action, EmpathyMainWindow *window) @@ -1151,6 +1159,7 @@ main_window_connection_items_setup (EmpathyMainWindow *window, const gchar *actions_connected[] = { "room", "chat_new_message", + "chat_new_call", "chat_add_contact", "edit_personal_information" }; @@ -1254,6 +1263,7 @@ empathy_main_window_show (void) "main_window", "destroy", main_window_destroy_cb, "chat_quit", "activate", main_window_chat_quit_cb, "chat_new_message", "activate", main_window_chat_new_message_cb, + "chat_new_call", "activate", main_window_chat_new_call_cb, "view_history", "activate", main_window_view_history_cb, "room_join_new", "activate", main_window_room_join_new_cb, "room_join_favorites", "activate", main_window_room_join_favorites_cb, diff --git a/src/empathy-main-window.ui b/src/empathy-main-window.ui index b74f4acb9..1e6ecce17 100644 --- a/src/empathy-main-window.ui +++ b/src/empathy-main-window.ui @@ -18,6 +18,14 @@ + + + audio-input-microphone + chat_new_call + New _Call... + + + document-open-recent @@ -212,6 +220,7 @@ + -- cgit v1.2.3