[giggle] Add menu item for help index and build it after the sources
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] Add menu item for help index and build it after the sources
- Date: Wed, 21 Apr 2010 21:08:43 +0000 (UTC)
commit 71a6f4c750b567a903b6c58a0bb53d9381974f0f
Author: Å?ukasz JernaÅ? <deejay1 srem org>
Date: Wed Apr 21 22:21:43 2010 +0200
Add menu item for help index and build it after the sources
Based on work done by Mathias Hasselmann <hasselmm gnome org>
Signed-off-by: Javier Jardón <jjardon gnome org>
src/giggle-window.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/giggle-window.c b/src/giggle-window.c
index 2766225..75e4cf4 100644
--- a/src/giggle-window.c
+++ b/src/giggle-window.c
@@ -905,6 +905,13 @@ window_visit_uri (GiggleWindow *window,
}
static void
+window_action_help_index_cb (GtkAction *action,
+ GiggleWindow *window)
+{
+ window_visit_uri (window, "ghelp:" PACKAGE_TARNAME);
+}
+
+static void
window_action_bug_report_cb (GtkAction *action,
GiggleWindow *window)
{
@@ -1111,6 +1118,10 @@ window_create_ui_manager (GiggleWindow *window)
G_CALLBACK (window_action_history_go_forward)
},
+ { "HelpIndex", "help-contents", N_("_Contents"),
+ "F1", N_("Show user guide for Giggle"),
+ G_CALLBACK (window_action_help_index_cb)
+ },
{ "BugReport", NULL, N_("Report _Issue"),
NULL, N_("Report an issue you've found in Giggle"),
G_CALLBACK (window_action_bug_report_cb)
@@ -1183,6 +1194,8 @@ window_create_ui_manager (GiggleWindow *window)
" <menuitem action='HistoryGoForward'/>"
" </menu>"
" <menu action='HelpMenu'>"
+ " <menuitem action='HelpIndex'/>"
+ " <separator/>"
" <menuitem action='BugReport'/>"
" <separator/>"
" <menuitem action='About'/>"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]