[eog-plugins] [exif-display] Show description field and improve alignment



commit 9b4265726c8da0a540ffad094addb77e08c543b8
Author: Jonathan Michalon <studios chalmion no-log org>
Date:   Wed Aug 12 13:50:22 2009 +0200

    [exif-display] Show description field and improve alignment
    
    Adds the description tag to the displayed fields and improves the
    alignment of the text widgets (e.g. when resizing)
    Submitted through eog-list:
    http://mail.gnome.org/archives/eog-list/2009-August/msg00007.html

 ChangeLog                                      |    7 ++++
 plugins/exif-display/eog-exif-display-plugin.c |    3 ++
 plugins/exif-display/exif-display.ui           |   39 ++++++++++++++++++++++-
 3 files changed, 47 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e88dd1e..3546fde 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-08-12  Felix Riemann  <friemann gnome org>
+
+	* plugins/exif-display/eog-exif-display-plugin.c:
+	* plugins/exif-display/exif-display.ui:
+	Add description tag to the list of displayed exif tags and improve
+	widget alignment (Jonathan Michalon).
+
 2009-08-11  Felix Riemann  <friemann gnome org>
 
 	* configure.ac:
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..995ed26 100644
--- a/plugins/exif-display/exif-display.ui
+++ b/plugins/exif-display/exif-display.ui
@@ -28,7 +28,6 @@
             <child>
               <object class="GtkLabel" id="takenon_label">
                 <property name="visible">True</property>
-                <property name="xalign">0</property>
                 <property name="xpad">5</property>
                 <property name="ellipsize">end</property>
               </object>
@@ -42,7 +41,7 @@
               <object class="GtkTable" id="table1">
                 <property name="visible">True</property>
                 <property name="border_width">5</property>
-                <property name="n_rows">6</property>
+                <property name="n_rows">7</property>
                 <property name="n_columns">2</property>
                 <property name="column_spacing">7</property>
                 <property name="row_spacing">5</property>
@@ -53,6 +52,9 @@
                     <property name="label" translatable="yes">&lt;b&gt;ISO speed:&lt;/b&gt;</property>
                     <property name="use_markup">True</property>
                   </object>
+                  <packing>
+                    <property name="x-options">GTK_FILL</property>
+                  </packing>
                 </child>
                 <child>
                   <object class="GtkLabel" id="iso_label">
@@ -74,6 +76,7 @@
                   <packing>
                     <property name="top_attach">1</property>
                     <property name="bottom_attach">2</property>
+                    <property name="x-options">GTK_FILL</property>
                   </packing>
                 </child>
                 <child>
@@ -98,6 +101,7 @@
                   <packing>
                     <property name="top_attach">2</property>
                     <property name="bottom_attach">3</property>
+                    <property name="x-options">GTK_FILL</property>
                   </packing>
                 </child>
                 <child>
@@ -122,12 +126,14 @@
                   <packing>
                     <property name="top_attach">3</property>
                     <property name="bottom_attach">4</property>
+                    <property name="x-options">GTK_FILL</property>
                   </packing>
                 </child>
                 <child>
                   <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>
@@ -146,6 +152,7 @@
                   <packing>
                     <property name="top_attach">4</property>
                     <property name="bottom_attach">5</property>
+                    <property name="x-options">GTK_FILL</property>
                   </packing>
                 </child>
                 <child>
@@ -171,6 +178,7 @@
                   <packing>
                     <property name="top_attach">5</property>
                     <property name="bottom_attach">6</property>
+                    <property name="x-options">GTK_FILL</property>
                   </packing>
                 </child>
                 <child>
@@ -185,6 +193,33 @@
                     <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">&lt;b&gt;Description:&lt;/b&gt;</property>
+                    <property name="use_markup">True</property>
+                    <property name="yalign">0</property>
+                  </object>
+                  <packing>
+                    <property name="top_attach">6</property>
+                    <property name="bottom_attach">7</property>
+                    <property name="x-options">GTK_FILL</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>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]