Merge lp:~darcy-develin/scratch/fix-1048186 into lp:~elementary-apps/scratch/scratch

Proposed by Darcy Luís Neves Brás da Silva
Status: Merged
Merged at revision: 871
Proposed branch: lp:~darcy-develin/scratch/fix-1048186
Merge into: lp:~elementary-apps/scratch/scratch
Diff against target: 35 lines (+6/-12)
1 file modified
src/Scratch.vala (+6/-12)
To merge this branch: bzr merge lp:~darcy-develin/scratch/fix-1048186
Reviewer Review Type Date Requested Status
David Gomes (community) Approve
Sergey "Shnatsel" Davidoff (community) Approve
Review via email: mp+123499@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Screw code reviews.

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

This is an Approve, except for that missing space before the first Opening Parenthes on Line 24.

review: Approve
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

I mean, all it does is reverting a previous merge that causes crashes and bug 1048186, and we're waiting for... over two days to just revert a commit? I'm catalyzing this!

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

Wow Sergey, way to be mature and a good example. Mefrio already said he'd do reviews when he gets back. Not to mention Scratch does not have anything targeted for Beta1, so it's NOT a development focus right now.

If you want something reviewed faster, please actually review it. Merging code just because you're impatient is irresponsible and selfish.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Okay, I knew you'd say that so I've added a follow-up explaination ;)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Scratch.vala'
2--- src/Scratch.vala 2012-09-06 20:31:51 +0000
3+++ src/Scratch.vala 2012-09-10 07:45:27 +0000
4@@ -126,25 +126,19 @@
5 return doc;
6 }
7 }
8-
9- /* Is not open
10- * filename is still encoded as uri, so a file is created
11- * to extract a decoded version/display_name
12- */
13-
14- var f = File.new_for_uri(filename);
15- string decoded_filename = f.query_info(FileAttribute.STANDARD_DISPLAY_NAME, FileQueryInfoFlags.NONE).get_display_name();
16- f.unref();
17+
18+
19
20 current_directory = Path.get_dirname (filename);
21- /* use the decoded version for presentation */
22- var document = new Document(decoded_filename, window);
23+ /* FIXME : filename is still encoded as uri */
24+ var document = new Document(filename, window);
25 document.create_sourceview ();
26 documents.append (document);
27 document.closed.connect( (doc) => { documents.remove(doc); });
28 document.tab.make_backup ();
29 window.current_notebook.set_tab ();
30- window.set_window_title (decoded_filename);
31+ /* FIXME : filename is still encoded as uri */
32+ window.set_window_title (filename);
33 return document;
34
35 }

Subscribers

People subscribed via source and target branches