Merge lp:~elementary-apps/pantheon-photos/unfullscreen into lp:~pantheon-photos/pantheon-photos/trunk

Proposed by Danielle Foré
Status: Merged
Approved by: Danielle Foré
Approved revision: 2517
Merged at revision: 2520
Proposed branch: lp:~elementary-apps/pantheon-photos/unfullscreen
Merge into: lp:~pantheon-photos/pantheon-photos/trunk
Diff against target: 21 lines (+3/-2)
1 file modified
src/AppWindow.vala (+3/-2)
To merge this branch: bzr merge lp:~elementary-apps/pantheon-photos/unfullscreen
Reviewer Review Type Date Requested Status
Victor Martinez (community) Approve
Review via email: mp+220153@code.launchpad.net

Commit message

use symbolic window restore icon

Description of the change

Changes out the stock.unfullscreen icon for symbolic window-restore

To post a comment you must log in.
Revision history for this message
Victor Martinez (victored) wrote :

Looks good!

One thing though. Let's stick to Shotwell's coding style. There are thousands of lines of code using it, and new code just look bad and inconsistent when we impose our own style.

I'm talking about leaving no spaces before opening parenthesis (diff lines 10, 18, and 19).

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

Hey Victor, do we really want to stick to Shotwell's coding style? I think long term it might make more sense for new code to be our style so that we can eventually convert

Revision history for this message
Erasmo Marín (erasmo-marin) wrote :

In my opinion we should stick to the Yorba code style, because using 2 differents styles hurts your brain, so, there are only 2 available options:

1) Keep the current style (easy)
2) Change everything to the elementary style (hard)

Also, keeping the current style is good for shotwell and pantheon-photos. It's better for colaboration between the projects. I did the same comment a moment ago in another merge propose.

Revision history for this message
David Gomes (davidgomes) wrote :

I agree with Victor and Erasmo.

Revision history for this message
Jim Nelson (yorba-jim) wrote :

For whatever it's worth, I'd be pretty miffed if you guys converted the entire code base to your style just to get your preferred brace style or whatever. That's the kind of thing that makes a fork no longer a fork.

Revision history for this message
Victor Martinez (victored) wrote :

Agreed, that's totally not worth it and even harmful to the revision history.

The purpose of coding style is having a *consistent* codebase, and the thousands of lines of code in Shotwell have have a well-defined style already.

I'm glad the existing codebase is extremely coherent in this regard :)

review: Needs Fixing
2517. By Danielle Foré

change paranthens to yorba style

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

Okay changed to Yorba style.

I gotta say that I disagree though. Since all of us are working on multiple apps we're already dealing with 2 code styles. Imo, This will make it harder to contribute to elementary development as a whole.

Revision history for this message
Victor Martinez (victored) wrote :

Thank you for the fix Daniel!

I can totally see your point. I don't see it as a big problem though because developers should always adapt to the style of the file they're working on.

I've noticed many have issues to comply with this even when we're trying to enforce our own style, and this delays our merges.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/AppWindow.vala'
2--- src/AppWindow.vala 2014-05-20 08:26:35 +0000
3+++ src/AppWindow.vala 2014-05-23 02:38:49 +0000
4@@ -9,8 +9,7 @@
5 public const int TOOLBAR_DISMISSAL_SEC = 2;
6 public const int TOOLBAR_CHECK_DISMISSAL_MSEC = 500;
7
8- private Gtk.Window toolbar_window = new Gtk.Window(Gtk.WindowType.POPUP);
9- private Gtk.ToolButton close_button = new Gtk.ToolButton.from_stock(Gtk.Stock.LEAVE_FULLSCREEN);
10+ private Gtk.Window toolbar_window = new Gtk.Window(Gtk.WindowType.POPUP);
11 private Gtk.ToggleToolButton pin_button = new Gtk.ToggleToolButton.from_stock(Resources.PIN_TOOLBAR);
12 private bool is_toolbar_shown = false;
13 private bool waiting_for_invoke = false;
14@@ -50,6 +49,8 @@
15 pin_button.set_tooltip_text(_("Pin the toolbar open"));
16 pin_button.clicked.connect(update_toolbar_dismissal);
17
18+ Gtk.Image img = new Gtk.Image.from_icon_name("window-restore-symbolic", Gtk.IconSize.LARGE_TOOLBAR);
19+ Gtk.ToolButton close_button = new Gtk.ToolButton(img, null);
20 close_button.set_tooltip_text(_("Leave fullscreen"));
21 close_button.clicked.connect(on_close);
22

Subscribers

People subscribed via source and target branches