[empathy] status-icon: add "New Call" entry in the context menu



commit 59f03a7aef175ffa8792eb0fbf825346cf5d5c4a
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Dec 15 18:48:48 2009 +0000

    status-icon: add "New Call" entry in the context menu

 src/empathy-status-icon.c  |    9 +++++++++
 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 4c57d66..b137daf 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 356c215..6d0f367 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"/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]