[empathy] CallWindow: add a Help->About menu



commit d89a90c582166d20b9a5c165d5784e434fc1de7f
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Tue Aug 2 13:15:57 2011 +0100

    CallWindow: add a Help->About menu
    
    https://bugzilla.gnome.org/show_bug.cgi?id=655884

 src/Makefile.am            |    2 ++
 src/empathy-call-window.c  |    9 +++++++++
 src/empathy-call-window.ui |    7 +++++++
 3 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index c232652..40adee6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -159,6 +159,8 @@ empathy_call_SOURCES = \
        empathy-call-window.h \
        empathy-call-window-fullscreen.c \
        empathy-call-window-fullscreen.h \
+       empathy-about-dialog.c \
+       empathy-about-dialog.h \
        empathy-audio-sink.c \
        empathy-audio-sink.h \
        empathy-audio-src.c \
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 52a1907..bcbadc7 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -58,6 +58,7 @@
 #include "empathy-call-window-fullscreen.h"
 #include "empathy-call-factory.h"
 #include "empathy-video-widget.h"
+#include "empathy-about-dialog.h"
 #include "empathy-audio-src.h"
 #include "empathy-audio-sink.h"
 #include "empathy-video-src.h"
@@ -736,6 +737,13 @@ empathy_call_window_contents_cb (GtkAction *action,
   empathy_url_show (GTK_WIDGET (self), "ghelp:empathy?audio-video");
 }
 
+static void
+empathy_call_window_about_cb (GtkAction *action,
+    EmpathyCallWindow *self)
+{
+  empathy_about_dialog_new (GTK_WINDOW (self));
+}
+
 static gboolean
 empathy_call_window_configure_event_cb (GtkWidget *widget,
     GdkEvent  *event,
@@ -831,6 +839,7 @@ empathy_call_window_init (EmpathyCallWindow *self)
     "dialpad", "toggled", empathy_call_window_dialpad_cb,
     "menufullscreen", "activate", empathy_call_window_fullscreen_cb,
     "menucontents", "activate", empathy_call_window_contents_cb,
+    "menuabout", "activate", empathy_call_window_about_cb,
     "menupreviewdisable", "activate", empathy_call_window_disable_camera_cb,
     "menupreviewminimise", "activate", empathy_call_window_minimise_camera_cb,
     "menupreviewmaximise", "activate", empathy_call_window_maximise_camera_cb,
diff --git a/src/empathy-call-window.ui b/src/empathy-call-window.ui
index 70a1fa9..2342191 100644
--- a/src/empathy-call-window.ui
+++ b/src/empathy-call-window.ui
@@ -45,6 +45,12 @@
           <accelerator key="F1" modifiers=""/>
         </child>
         <child>
+          <object class="GtkAction" id="menuabout">
+            <property name="stock_id">gtk-about</property>
+            <property name="name">menuabout</property>
+          </object>
+        </child>
+        <child>
           <object class="GtkAction" id="menupreviewminimise">
             <property name="name">menupreviewminimise</property>
             <property name="label" translatable="yes">Minimise me</property>
@@ -74,6 +80,7 @@
         </menu>
         <menu action="help">
           <menuitem name="menucontents" action="menucontents"/>
+          <menuitem name="menuabout" action="menuabout"/>
         </menu>
       </menubar>
       <popup name="video-popup">



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