Exif-display plugin patch: desciption tag
Jonathan Michalon <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.Eog |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I've just searched for a way to see the description tag of an image simultaneously to the image itself (and not in the property window). I've installed the Exif-display plugin, but that field is missing so I wrote a patch accordingly. May the patch be reviewed by pros of GTK+ ? Or even, pushed to the eog-plugins repo? In the same way, I'd dreamed of a nice, half transparent incrustation on images provided by such a tag and showing that description, when in fullscreen mode. This could disappear some time after to let people see the picture (as the FullscreenToolbar). May this be possible? Waiting for your feeling about all that, Jonathan _______________________________________________ Eog-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/eog-list
Add-Description-Field.patch
(text/x-diff, 2.7 KB)
diff --git a/plugins/exif-display/eog-exif-display-plugin.c b/plugins/exif-display/eog-exif-display-plugin.c
index 15e1418..df86fb4 100644
--- a/plugins/exif-display/eog-exif-display-plugin.c
+++ b/plugins/exif-display/eog-exif-display-plugin.c
@@ -290,6 +290,9 @@ static void manage_exif_data (WindowData *data)
set_exif_label (exif_data, EXIF_TAG_METERING_MODE,
data->sidebar_builder, "metering_mode_label", TRUE);
+
+ set_exif_label (exif_data, EXIF_TAG_USER_COMMENT,
+ data->sidebar_builder, "desc_label", TRUE);
set_exif_label (exif_data, EXIF_TAG_EXPOSURE_BIAS_VALUE, data->sidebar_builder, "exposure_bias_label", FALSE);
diff --git a/plugins/exif-display/exif-display.ui b/plugins/exif-display/exif-display.ui
index 9b66b83..795e93c 100644
--- a/plugins/exif-display/exif-display.ui
+++ b/plugins/exif-display/exif-display.ui
@@ -128,6 +128,7 @@
<object class="GtkLabel" id="focal_length_label">
<property name="visible">True</property>
<property name="xalign">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_END</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -185,6 +186,31 @@
<property name="bottom_attach">6</property>
</packing>
</child>
+ <child>
+ <object class="GtkLabel" id="label7">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes"><b>Desciption:</b></property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">6</property>
+ <property name="bottom_attach">7</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="desc_label">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_END</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">6</property>
+ <property name="bottom_attach">7</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>