Merge lp:~elementary-apps/pantheon-photos/sidebar-extra-props into lp:~pantheon-photos/pantheon-photos/trunk

Proposed by Danielle Foré
Status: Merged
Approved by: Felipe Escoto
Approved revision: 3038
Merged at revision: 3041
Proposed branch: lp:~elementary-apps/pantheon-photos/sidebar-extra-props
Merge into: lp:~pantheon-photos/pantheon-photos/trunk
Diff against target: 79 lines (+1/-13)
1 file modified
src/sidebar/metadata/ExtendedProperties.vala (+1/-13)
To merge this branch: bzr merge lp:~elementary-apps/pantheon-photos/sidebar-extra-props
Reviewer Review Type Date Requested Status
Photos Devs Pending
Review via email: mp+310128@code.launchpad.net

Commit message

ExtendedProperties.vala: Remove superfluous properties

Description of the change

This is pretty opinionated so I guess I need some opinions. But I think these properties are just generally unhelpful and don't help me make any kind of decision.

Why does it matter what software was running on my camera?

Do I really care where this photo is on the filesystem? I can right-click and show the file if I need to get to it for some reason. This isn't a link or anything so it's not like it's convenient.

What is the original size useful for? So I know this photo was scaled down or cropped in some way. Now what? Is this useful info to someone?

To post a comment you must log in.
Revision history for this message
Felipe Escoto (philip.scott) wrote :

The only property i disagree with removing is the filesystem info. Since we do the automatic importing, it could be nice to know where the photo is without having to depend on Files.

Revision history for this message
Danielle Foré (danrabbit) wrote :

I disagree, but in the interest of merging I will fight that fight another day :p

3038. By Danielle Foré

remove unecessary properties

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/sidebar/metadata/ExtendedProperties.vala'
--- src/sidebar/metadata/ExtendedProperties.vala 2016-11-05 03:11:19 +0000
+++ src/sidebar/metadata/ExtendedProperties.vala 2016-11-06 17:15:54 +0000
@@ -9,7 +9,6 @@
9 // Photo stuff9 // Photo stuff
10 private string file_path;10 private string file_path;
11 private uint64 filesize;11 private uint64 filesize;
12 private Dimensions? original_dim;
13 private string camera_make;12 private string camera_make;
14 private string camera_model;13 private string camera_model;
15 private string flash;14 private string flash;
@@ -20,7 +19,6 @@
20 private double gps_alt;19 private double gps_alt;
21 private string artist;20 private string artist;
22 private string copyright;21 private string copyright;
23 private string software;
24 private string exposure_bias;22 private string exposure_bias;
25 private string exposure_date;23 private string exposure_date;
26 private string exposure_time;24 private string exposure_time;
@@ -45,7 +43,6 @@
45 development_path = "";43 development_path = "";
46 is_raw = false;44 is_raw = false;
47 filesize = 0;45 filesize = 0;
48 original_dim = Dimensions (0, 0);
49 camera_make = "";46 camera_make = "";
50 camera_model = "";47 camera_model = "";
51 flash = "";48 flash = "";
@@ -55,7 +52,6 @@
55 gps_long_ref = "";52 gps_long_ref = "";
56 artist = "";53 artist = "";
57 copyright = "";54 copyright = "";
58 software = "";
59 exposure_bias = "";55 exposure_bias = "";
60 exposure_date = "";56 exposure_date = "";
61 exposure_time = "";57 exposure_time = "";
@@ -106,14 +102,12 @@
106 metadata.set_exposure_date_time (new MetadataDateTime (photo.get_timestamp ()));102 metadata.set_exposure_date_time (new MetadataDateTime (photo.get_timestamp ()));
107103
108 is_raw = (photo.get_master_file_format () == PhotoFileFormat.RAW);104 is_raw = (photo.get_master_file_format () == PhotoFileFormat.RAW);
109 original_dim = metadata.get_pixel_dimensions ();
110 camera_make = metadata.get_camera_make ();105 camera_make = metadata.get_camera_make ();
111 camera_model = metadata.get_camera_model ();106 camera_model = metadata.get_camera_model ();
112 flash = metadata.get_flash_string ();107 flash = metadata.get_flash_string ();
113 metadata.get_gps (out gps_long, out gps_long_ref, out gps_lat, out gps_lat_ref, out gps_alt);108 metadata.get_gps (out gps_long, out gps_long_ref, out gps_lat, out gps_lat_ref, out gps_alt);
114 artist = metadata.get_artist ();109 artist = metadata.get_artist ();
115 copyright = metadata.get_copyright ();110 copyright = metadata.get_copyright ();
116 software = metadata.get_software ();
117 exposure_bias = metadata.get_exposure_bias ();111 exposure_bias = metadata.get_exposure_bias ();
118 time_t exposure_time_obj = metadata.get_exposure_date_time ().get_timestamp ();112 time_t exposure_time_obj = metadata.get_exposure_date_time ().get_timestamp ();
119 exposure_date = get_prettyprint_date (Time.local (exposure_time_obj));113 exposure_date = get_prettyprint_date (Time.local (exposure_time_obj));
@@ -131,8 +125,7 @@
131 if (page is EventsDirectoryPage) {125 if (page is EventsDirectoryPage) {
132 // nothing special to be done for now for Events126 // nothing special to be done for now for Events
133 } else {127 } else {
134 add_line (_ ("Location:"), (file_path != "" && file_path != null) ?128 add_line (_("Location:"), (file_path != "" && file_path != null) ? file_path.replace ("&", "&") : NO_VALUE);
135 file_path.replace ("&", "&") : NO_VALUE);
136129
137 add_line (_ ("File size:"), (filesize > 0) ?130 add_line (_ ("File size:"), (filesize > 0) ?
138 format_size ((int64) filesize) : NO_VALUE);131 format_size ((int64) filesize) : NO_VALUE);
@@ -140,9 +133,6 @@
140 if (is_raw)133 if (is_raw)
141 add_line (_ ("Developer:"), development_path);134 add_line (_ ("Developer:"), development_path);
142135
143 add_line (_ ("Original size:"), (original_dim != null && original_dim.has_area ()) ?
144 "%d × %d".printf (original_dim.width, original_dim.height) : NO_VALUE);
145
146 add_line (_ ("Camera make:"), (camera_make != "" && camera_make != null) ?136 add_line (_ ("Camera make:"), (camera_make != "" && camera_make != null) ?
147 camera_make : NO_VALUE);137 camera_make : NO_VALUE);
148138
@@ -168,8 +158,6 @@
168 add_line (_ ("Artist:"), (artist != "" && artist != null) ? artist : NO_VALUE);158 add_line (_ ("Artist:"), (artist != "" && artist != null) ? artist : NO_VALUE);
169159
170 add_line (_ ("Copyright:"), (copyright != "" && copyright != null) ? copyright : NO_VALUE);160 add_line (_ ("Copyright:"), (copyright != "" && copyright != null) ? copyright : NO_VALUE);
171
172 add_line (_ ("Software:"), (software != "" && software != null) ? software : NO_VALUE);
173 }161 }
174 }162 }
175}163}

Subscribers

People subscribed via source and target branches