changeset 2822:087b44aa5a0a

Fix #630: add headline field to the sidebar https://github.com/BestImageViewer/geeqie/pull/630
author oxpa <>
date Tue, 21 Aug 2018 12:21:17 +0100
parents 0c4659cd6d32
children 938790283e32
files doc/docbook/GuideReferenceTags.xml src/bar.c web/help/GuideReferenceXmpExif.html
diffstat 3 files changed, 28 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/docbook/GuideReferenceTags.xml	Mon Aug 20 14:34:57 2018 +0100
+++ b/doc/docbook/GuideReferenceTags.xml	Tue Aug 21 12:21:17 2018 +0100
@@ -362,6 +362,14 @@
               <para>Rating</para>
             </entry>
           </row>
+          <row>
+            <entry>
+              <para>Xmp.photoshop.Headline</para>
+            </entry>
+            <entry>
+              <para>Headline</para>
+            </entry>
+          </row>
         </tbody>
       </tgroup>
     </table>
--- a/src/bar.c	Mon Aug 20 14:34:57 2018 +0100
+++ b/src/bar.c	Tue Aug 21 12:21:17 2018 +0100
@@ -66,6 +66,15 @@
 "    </layout>"
 "</gq>";
 
+static const gchar default_config_headline[] =
+"<gq>"
+"    <layout id = '_current_'>"
+"        <bar>"
+"            <pane_comment id = 'headline' expanded = 'true' key = 'Xmp.photoshop.Headline'  height = '40' />"
+"        </bar>"
+"    </layout>"
+"</gq>";
+
 static const gchar default_config_keywords[] =
 "<gq>"
 "    <layout id = '_current_'>"
@@ -192,6 +201,7 @@
 	{PANE_KEYWORDS,		"keywords",	N_("Keywords"),		default_config_keywords},
 	{PANE_COMMENT,		"comment",	N_("Comment"),		default_config_comment},
 	{PANE_COMMENT,		"rating",	N_("Rating"),		default_config_rating},
+	{PANE_COMMENT,		"headline",	N_("Headline"),		default_config_headline},
 	{PANE_EXIF,		"exif",		N_("Exif"),		default_config_exif},
 /* other pre-configured panes */
 	{PANE_EXIF,		"file_info",	N_("File info"),	default_config_file_info},
--- a/web/help/GuideReferenceXmpExif.html	Mon Aug 20 14:34:57 2018 +0100
+++ b/web/help/GuideReferenceXmpExif.html	Tue Aug 21 12:21:17 2018 +0100
@@ -809,11 +809,19 @@
             </td>
 </tr>
 <tr class="tr-shade">
-<td class="td-colsep">
+<td class="td-colsep td-rowsep">
               <span class="para">Xmp.xmp.Rating</span>
             </td>
+<td class="td-rowsep">
+              <span class="para">Rating</span>
+            </td>
+</tr>
+<tr>
+<td class="td-colsep">
+              <span class="para">Xmp.photoshop.Headline</span>
+            </td>
 <td>
-              <span class="para">Rating</span>
+              <span class="para">Headline</span>
             </td>
 </tr>
 </tbody>