Merge lp:~optimisme/pantheon-files/fix-1184604 into lp:~elementary-apps/pantheon-files/trunk
Proposed by
Albert
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Victor Martinez | ||||||||
Approved revision: | 1212 | ||||||||
Merged at revision: | 1200 | ||||||||
Proposed branch: | lp:~optimisme/pantheon-files/fix-1184604 | ||||||||
Merge into: | lp:~elementary-apps/pantheon-files/trunk | ||||||||
Diff against target: |
112 lines (+42/-4) 4 files modified
libcore/gof-file.c (+35/-2) libcore/gof-file.h (+1/-1) libcore/marlincore-C.vapi (+3/-0) src/View/OverlayBar.vala (+3/-1) |
||||||||
To merge this branch: | bzr merge lp:~optimisme/pantheon-files/fix-1184604 | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Victor Martinez (community) | Approve | ||
Review via email: mp+166085@code.launchpad.net |
Commit message
- Local network root overlays
- Network root folder detection
- Open files from "smb" folders
Description of the change
Fixed:
- Local network root overlays
- Network root folder detection
- Open files from "smb" folders
https:/
To post a comment you must log in.
Nice work, as always.
A couple of suggestions (diff lines):
- 26: "else" clause not needed.
- 39, 40: Use g_strdup instead.
I'm not a big fan of the way some things were implemented in GOFFile. Historically, it duplicates a couple of things in memory that are still allocated in GOFFile.info, unnecessarily increasing memory consumption since the latter is not freed. To avoid extending this problem, I'd recommend adding GOFFile. get_target_ location_ uri to the API, and returning directly the result of: "g_file_ info_get_ attribute_ string (file->info, G_FILE_ ATTRIBUTE_ STANDARD_ TARGET_ URI);" so that the code doesn't duplicate that string (do not free this string since it's owned by GOFFile.info).
- 21 - 29: Some coding style corrections are needed here. Also either documentation or more verbose code would be appreciated. I'd suggest moving that portion of code to a separate function (e.g. is_complete_ smb_uri) , and documenting what that method does on that function. What I've figured by reading the code is that it verifies the completeness of an URI, and if it doesn't appear to be complete it's treated as root.