Merge lp:~vikoadi/pantheon-photos/welcome-when-empty into lp:~pantheon-photos/pantheon-photos/trunk
Proposed by
Viko Adi Rahmawan
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | meese | ||||
Approved revision: | 2633 | ||||
Merged at revision: | 2665 | ||||
Proposed branch: | lp:~vikoadi/pantheon-photos/welcome-when-empty | ||||
Merge into: | lp:~pantheon-photos/pantheon-photos/trunk | ||||
Diff against target: |
148 lines (+52/-19) 6 files modified
src/CollectionPage.vala (+9/-1) src/Page.vala (+5/-3) src/library/LibraryWindow.vala (+18/-15) src/library/PhotosPage.vala (+8/-0) src/library/RawsPage.vala (+8/-0) src/library/TrashPage.vala (+4/-0) |
||||
To merge this branch: | bzr merge lp:~vikoadi/pantheon-photos/welcome-when-empty | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
meese | Approve | ||
Review via email: mp+236228@code.launchpad.net |
Commit message
Use welcome empty screen for all pages
Description of the change
override get_view_
now empty message will use welcome screen, on trashpage and collectionpage (tags and smarttags too) we will not show import button and change library button
To post a comment you must log in.
Use "return_ val_if_ fail" where needed "return_if_fail" is not compatible with non-void methods.
This snippet is probably applicable in most cases here.
var foo = get_bar () as Foo;
warn_if_fail (foo != null);
if (foo != null)
foo.do_baz ();
return "bla";
where "var foo = get_bar () as Foo;" could be "unowned Foo foo = get_bar () as Foo;" if possible to avoid useless refs/unrefs.