From: Colin Clark
Date: Wed, 16 May 2018 18:22:12 +0000 (+0100)
Subject: Fix #597: Help file search
X-Git-Tag: v1.5~146
X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=136cf5086f2fdbffd71c838ffa7ad434958b26b4
Fix #597: Help file search
https://github.com/BestImageViewer/geeqie/issues/597
Only on-line help files are searched.
Search engine defined in Preferences/General.
Local help files are not searched.
---
diff --git a/doc/docbook/GuideMainWindowMenus.xml b/doc/docbook/GuideMainWindowMenus.xml
index 24c22d12..ff883bae 100644
--- a/doc/docbook/GuideMainWindowMenus.xml
+++ b/doc/docbook/GuideMainWindowMenus.xml
@@ -1442,6 +1442,20 @@
Opens the Geeqie user manual in a new browser window.
+
+
+
+ On-line help search
+
+
+
+
+ Use a web browser to search Geeqie's on-line help files. The search engine used is defined in
+ Preferences General
+ .
+
+
+
diff --git a/doc/docbook/GuideOptionsGeneral.xml b/doc/docbook/GuideOptionsGeneral.xml
index 4d492b3c..328b8195 100644
--- a/doc/docbook/GuideOptionsGeneral.xml
+++ b/doc/docbook/GuideOptionsGeneral.xml
@@ -222,4 +222,15 @@
+
+ On-line help search
+
+ An internet search engine may be used to search the help files on Geeqie's website. The string used to conduct the search is defined here. In most cases it will be in one of two formats:
+
+ https://www.search-engine.com/search?q=site:geeqie.org/help
+
+ https://www.search-engine.com/?q=site:geeqie.org/help'
+
+
+
diff --git a/src/layout_util.c b/src/layout_util.c
index 9f0c68e1..7c9d013d 100644
--- a/src/layout_util.c
+++ b/src/layout_util.c
@@ -1125,6 +1125,14 @@ static void layout_menu_help_cb(GtkAction *action, gpointer data)
help_window_show("index.html");
}
+static void layout_menu_help_search_cb(GtkAction *action, gpointer data)
+{
+ LayoutWindow *lw = data;
+
+ layout_exit_fullscreen(lw);
+ help_search_window_show();
+}
+
static void layout_menu_help_keys_cb(GtkAction *action, gpointer data)
{
LayoutWindow *lw = data;
@@ -1886,6 +1894,7 @@ static GtkActionEntry menu_entries[] = {
{ "SlideShowSlower", GTK_STOCK_FILE, N_("Slower"), "KP_Subtract", N_("Slower"), CB(layout_menu_slideshow_slower_cb) },
{ "Refresh", GTK_STOCK_REFRESH, N_("_Refresh"), "R", N_("Refresh"), CB(layout_menu_refresh_cb) },
{ "HelpContents", GTK_STOCK_HELP, N_("_Contents"), "F1", N_("Contents"), CB(layout_menu_help_cb) },
+ { "HelpSearch", NULL, N_("On-line help search"), NULL, N_("On-line help search"), CB(layout_menu_help_search_cb) },
{ "HelpShortcuts", NULL, N_("_Keyboard shortcuts"), NULL, N_("Keyboard shortcuts"), CB(layout_menu_help_keys_cb) },
{ "HelpKbd", NULL, N_("_Keyboard map"), NULL, N_("Keyboard map"), CB(layout_menu_kbd_map_cb) },
{ "HelpNotes", NULL, N_("_Release notes"), NULL, N_("Release notes"), CB(layout_menu_notes_cb) },
@@ -2189,6 +2198,7 @@ static const gchar *menu_ui_description =
"
-
There are 6 individual marks, any of which can be associated with an image simply by pressing the 1 to 6 keys on the keyboard.
+
There are 10 individual marks, any of which can be associated with an image simply by pressing the 0 to 9 keys on the keyboard, where key 0 represents mark 10.
If the
Show Marks
- menu has been selected, each image will have a set of 6 check-boxes displayed adjacent to it in the file pane in both icon and list mode. In addition a set of 6 check-boxes will be shown at the top of the files pane. Clicking any of these will filter the displayed list.
+ menu has been selected, each image will have a set of 10 check-boxes displayed adjacent to it in the file pane in both icon and list mode. In addition a set of 10 check-boxes will be shown at the top of the files pane. Clicking any of these will filter the displayed list.
+
Moving the mouse over any of the check-boxes at the top of the files pane will show mnemonic text for that mark. The text can be modified by right-clicking on the check box.
If the
Image Overlay
is being displayed, the currently set marks for the image are shown. It is not necessary to include an entry into the overlay template for this to happen.
- A keyword can be associated with a single mark by right-clicking on the keyword in the sidebar panel. When a meta-data write operation for a file is triggered either manually or as defined in
+ A keyword can be associated with a single mark by right-clicking on the keyword in the sidebar panel. When a meta-data write operation for a file is triggered either
+ manually
+ or as defined in
Metadata
, the keyword data indicated by the current set of mark-to-keyword links will be written.
-
Neither marks, nor the associations between keywords and marks, are preserved when Geeqie is shut down.
+
+ The associations between keywords and marks is preserved when Geeqie is shut down. The current setting of marks can also be optionally saved - the setting is in the
+ Behavior tab of Preferences
+ .
+
+ An internet search engine may be used to search the help files on Geeqie's website. The string used to conduct the search is defined here. In most cases it will be in one of two formats:
+