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
1=== modified file 'src/sidebar/metadata/ExtendedProperties.vala'
2--- src/sidebar/metadata/ExtendedProperties.vala 2016-11-05 03:11:19 +0000
3+++ src/sidebar/metadata/ExtendedProperties.vala 2016-11-06 17:15:54 +0000
4@@ -9,7 +9,6 @@
5 // Photo stuff
6 private string file_path;
7 private uint64 filesize;
8- private Dimensions? original_dim;
9 private string camera_make;
10 private string camera_model;
11 private string flash;
12@@ -20,7 +19,6 @@
13 private double gps_alt;
14 private string artist;
15 private string copyright;
16- private string software;
17 private string exposure_bias;
18 private string exposure_date;
19 private string exposure_time;
20@@ -45,7 +43,6 @@
21 development_path = "";
22 is_raw = false;
23 filesize = 0;
24- original_dim = Dimensions (0, 0);
25 camera_make = "";
26 camera_model = "";
27 flash = "";
28@@ -55,7 +52,6 @@
29 gps_long_ref = "";
30 artist = "";
31 copyright = "";
32- software = "";
33 exposure_bias = "";
34 exposure_date = "";
35 exposure_time = "";
36@@ -106,14 +102,12 @@
37 metadata.set_exposure_date_time (new MetadataDateTime (photo.get_timestamp ()));
38
39 is_raw = (photo.get_master_file_format () == PhotoFileFormat.RAW);
40- original_dim = metadata.get_pixel_dimensions ();
41 camera_make = metadata.get_camera_make ();
42 camera_model = metadata.get_camera_model ();
43 flash = metadata.get_flash_string ();
44 metadata.get_gps (out gps_long, out gps_long_ref, out gps_lat, out gps_lat_ref, out gps_alt);
45 artist = metadata.get_artist ();
46 copyright = metadata.get_copyright ();
47- software = metadata.get_software ();
48 exposure_bias = metadata.get_exposure_bias ();
49 time_t exposure_time_obj = metadata.get_exposure_date_time ().get_timestamp ();
50 exposure_date = get_prettyprint_date (Time.local (exposure_time_obj));
51@@ -131,8 +125,7 @@
52 if (page is EventsDirectoryPage) {
53 // nothing special to be done for now for Events
54 } else {
55- add_line (_ ("Location:"), (file_path != "" && file_path != null) ?
56- file_path.replace ("&", "&") : NO_VALUE);
57+ add_line (_("Location:"), (file_path != "" && file_path != null) ? file_path.replace ("&", "&") : NO_VALUE);
58
59 add_line (_ ("File size:"), (filesize > 0) ?
60 format_size ((int64) filesize) : NO_VALUE);
61@@ -140,9 +133,6 @@
62 if (is_raw)
63 add_line (_ ("Developer:"), development_path);
64
65- add_line (_ ("Original size:"), (original_dim != null && original_dim.has_area ()) ?
66- "%d × %d".printf (original_dim.width, original_dim.height) : NO_VALUE);
67-
68 add_line (_ ("Camera make:"), (camera_make != "" && camera_make != null) ?
69 camera_make : NO_VALUE);
70
71@@ -168,8 +158,6 @@
72 add_line (_ ("Artist:"), (artist != "" && artist != null) ? artist : NO_VALUE);
73
74 add_line (_ ("Copyright:"), (copyright != "" && copyright != null) ? copyright : NO_VALUE);
75-
76- add_line (_ ("Software:"), (software != "" && software != null) ? software : NO_VALUE);
77 }
78 }
79 }

Subscribers

People subscribed via source and target branches