summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2010-08-13 16:31:02 -0400
committerShaun McCance <shaunm@gnome.org>2010-08-13 16:31:44 -0400
commit0c2de2a1db2c9162e576ca624f619cf6be4813f1 (patch)
tree3f4b7a20080800429dd769b869b2dbca188c4a05 /src
parente37a3c8f4840d204f1f58d6b262c992b67ac4924 (diff)
downloadyelp-0c2de2a1db2c9162e576ca624f619cf6be4813f1.tar.gz
[yelp-help-list] Adding list of all (ghelp) documents
Diffstat (limited to 'src')
-rw-r--r--src/yelp-window.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 1cc0df74..62cf04de 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -71,6 +71,8 @@ static void window_drag_received (YelpWindow *window,
static gboolean window_resize_signal (YelpWindow *window);
static void window_close (GtkAction *action,
YelpWindow *window);
+static void window_go_all (GtkAction *action,
+ YelpWindow *window);
static void window_add_bookmark (GtkAction *action,
YelpWindow *window);
static void window_edit_bookmarks (GtkAction *action,
@@ -196,6 +198,8 @@ static const gchar *YELP_UI =
"<separator/>"
"<menuitem action='YelpViewGoPrevious'/>"
"<menuitem action='YelpViewGoNext'/>"
+ "<separator/>"
+ "<menuitem action='GoAll'/>"
"</menu>"
"<menu action='BookmarksMenu'>"
"<menuitem action='AddBookmark'/>"
@@ -275,6 +279,10 @@ static const GtkActionEntry entries[] = {
"<Control>W",
NULL,
G_CALLBACK (window_close) },
+ { "GoAll", NULL,
+ N_("_All Documents"),
+ NULL, NULL,
+ G_CALLBACK (window_go_all) },
{ "AddBookmark", NULL,
N_("_Add Bookmark"),
"<Control>D",
@@ -747,6 +755,14 @@ window_close (GtkAction *action, YelpWindow *window)
}
static void
+window_go_all (GtkAction *action,
+ YelpWindow *window)
+{
+ YelpWindowPrivate *priv = GET_PRIV (window);
+ yelp_view_load (priv->view, "help-list:");
+}
+
+static void
window_add_bookmark (GtkAction *action,
YelpWindow *window)
{