aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-16 02:48:19 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-17 18:38:49 +0800
commitc5b4c8eedb2f1f28cc8fedf21ceb42eadfcf1162 (patch)
tree0dde364dd17ff04eeee6d9ee329cfafbe70f0fb9 /src/empathy-main-window.c
parent83d23c5c7c31616c36a2c1dd6f1cb422f5d4d36b (diff)
downloadgsoc2013-empathy-c5b4c8eedb2f1f28cc8fedf21ceb42eadfcf1162.tar
gsoc2013-empathy-c5b4c8eedb2f1f28cc8fedf21ceb42eadfcf1162.tar.gz
gsoc2013-empathy-c5b4c8eedb2f1f28cc8fedf21ceb42eadfcf1162.tar.bz2
gsoc2013-empathy-c5b4c8eedb2f1f28cc8fedf21ceb42eadfcf1162.tar.lz
gsoc2013-empathy-c5b4c8eedb2f1f28cc8fedf21ceb42eadfcf1162.tar.xz
gsoc2013-empathy-c5b4c8eedb2f1f28cc8fedf21ceb42eadfcf1162.tar.zst
gsoc2013-empathy-c5b4c8eedb2f1f28cc8fedf21ceb42eadfcf1162.zip
main-window: add "New Call" menu entry (#582599)
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c10
1 files changed, 10 insertions, 0 deletions
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 <libempathy-gtk/empathy-geometry.h>
#include <libempathy-gtk/empathy-gtk-enum-types.h>
#include <libempathy-gtk/empathy-new-message-dialog.h>
+#include <libempathy-gtk/empathy-new-call-dialog.h>
#include <libempathy-gtk/empathy-log-window.h>
#include <libempathy-gtk/empathy-presence-chooser.h>
#include <libempathy-gtk/empathy-sound.h>
@@ -669,6 +670,13 @@ main_window_chat_new_message_cb (GtkAction *action,
}
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,