[empathy] CallWindow: add a Help->Contents menu
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] CallWindow: add a Help->Contents menu
- Date: Thu, 4 Aug 2011 09:13:10 +0000 (UTC)
commit 1132cbda320d086176a0228f3addf5f7288ef080
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Tue Aug 2 13:00:09 2011 +0100
CallWindow: add a Help->Contents menu
https://bugzilla.gnome.org/show_bug.cgi?id=655884
src/empathy-call-window.c | 8 ++++++++
src/empathy-call-window.ui | 17 +++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 338686d..52a1907 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -729,6 +729,13 @@ create_pipeline (EmpathyCallWindow *self)
g_object_unref (bus);
}
+static void
+empathy_call_window_contents_cb (GtkAction *action,
+ EmpathyCallWindow *self)
+{
+ empathy_url_show (GTK_WIDGET (self), "ghelp:empathy?audio-video");
+}
+
static gboolean
empathy_call_window_configure_event_cb (GtkWidget *widget,
GdkEvent *event,
@@ -823,6 +830,7 @@ empathy_call_window_init (EmpathyCallWindow *self)
"camera", "toggled", empathy_call_window_camera_toggled_cb,
"dialpad", "toggled", empathy_call_window_dialpad_cb,
"menufullscreen", "activate", empathy_call_window_fullscreen_cb,
+ "menucontents", "activate", empathy_call_window_contents_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 aa174f3..70a1fa9 100644
--- a/src/empathy-call-window.ui
+++ b/src/empathy-call-window.ui
@@ -31,6 +31,20 @@
</object>
</child>
<child>
+ <object class="GtkAction" id="help">
+ <property name="name">help</property>
+ <property name="label" translatable="yes">_Help</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkAction" id="menucontents">
+ <property name="stock_id">gtk-help</property>
+ <property name="name">menucontents</property>
+ <property name="label" translatable="yes">_Contents</property>
+ </object>
+ <accelerator key="F1" modifiers=""/>
+ </child>
+ <child>
<object class="GtkAction" id="menupreviewminimise">
<property name="name">menupreviewminimise</property>
<property name="label" translatable="yes">Minimise me</property>
@@ -58,6 +72,9 @@
<menu action="edit">
<menu action="menumicrophone"/>
</menu>
+ <menu action="help">
+ <menuitem name="menucontents" action="menucontents"/>
+ </menu>
</menubar>
<popup name="video-popup">
<menuitem name="menufullscreen" action="menufullscreen"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]