aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-16 02:48:48 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-17 18:38:49 +0800
commit59f03a7aef175ffa8792eb0fbf825346cf5d5c4a (patch)
tree492291807d122a21d425f4f682029769e07037e9 /src
parentc5b4c8eedb2f1f28cc8fedf21ceb42eadfcf1162 (diff)
downloadgsoc2013-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')
-rw-r--r--src/empathy-status-icon.c9
-rw-r--r--src/empathy-status-icon.ui8
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"/>