Fix #630: add headline field to the sidebar
authoroxpa <>
Tue, 21 Aug 2018 11:21:17 +0000 (12:21 +0100)
committerColin Clark <colin.clark@cclark.uk>
Tue, 21 Aug 2018 11:21:17 +0000 (12:21 +0100)
https://github.com/BestImageViewer/geeqie/pull/630

doc/docbook/GuideReferenceTags.xml
src/bar.c
web/help/GuideReferenceXmpExif.html

index f40b473..96758a1 100644 (file)
               <para>Rating</para>\r
             </entry>\r
           </row>\r
+          <row>\r
+            <entry>\r
+              <para>Xmp.photoshop.Headline</para>\r
+            </entry>\r
+            <entry>\r
+              <para>Headline</para>\r
+            </entry>\r
+          </row>\r
         </tbody>\r
       </tgroup>\r
     </table>\r
index 021a7ce..2e43042 100644 (file)
--- a/src/bar.c
+++ b/src/bar.c
@@ -66,6 +66,15 @@ static const gchar default_config_title[] =
 "    </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 @@ static const KnownPanes known_panes[] = {
        {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},
index cb94904..5eeb985 100644 (file)
@@ -809,13 +809,21 @@ dd.answer div.label { float: left; }
             </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>
+<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">Headline</span>
+            </td>
+</tr>
 </tbody>
 </table>
 </div>