Merge lp:~mhall119/pantheon-mail/gresources-sql into lp:~elementary-apps/pantheon-mail/trunk
Proposed by
Michael Hall
Status: | Merged |
---|---|
Approved by: | Corentin Noël |
Approved revision: | 2107 |
Merged at revision: | 2107 |
Proposed branch: | lp:~mhall119/pantheon-mail/gresources-sql |
Merge into: | lp:~elementary-apps/pantheon-mail/trunk |
Diff against target: |
304 lines (+61/-24) 17 files modified
data/CMakeLists.txt (+0/-3) data/sql/mail-sql.gresource.xml (+29/-0) data/ui/pantheon-mail.gresource.xml (+1/-1) src/CMakeLists.txt (+2/-1) src/client/accounts/account-dialog-account-list-pane.vala (+1/-1) src/client/accounts/account-dialog-edit-alternate-emails-pane.vala (+1/-1) src/client/accounts/account-dialog-remove-fail-pane.vala (+1/-1) src/client/accounts/add-edit-page.vala (+1/-1) src/client/application/geary-application.vala (+1/-1) src/client/application/geary-controller.vala (+2/-2) src/client/components/conversation-find-bar.vala (+1/-1) src/client/components/main-toolbar.vala (+2/-2) src/client/composer/composer-widget.vala (+2/-2) src/client/dialogs/certificate-warning-dialog.vala (+1/-1) src/client/dialogs/upgrade-dialog.vala (+1/-1) src/engine/db/db-connection.vala (+9/-3) src/engine/db/db-versioned-database.vala (+6/-2) |
To merge this branch: | bzr merge lp:~mhall119/pantheon-mail/gresources-sql |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
elementary Apps team | Pending | ||
Review via email: mp+299467@code.launchpad.net |
Commit message
Switch versioned database migration sql files to using GResource like the UI files are
Description of the change
Switch versioned database migration sql files to using GResource like the UI files are
Creates a new gresources.xml file which contains all current sql migration files. Switches the file lookup to resource:// URIs which GIO uses to look into GResource files. Finally read the file contents through an InputStream because FileUtils can't operate on GResource URIs.
Also changed the GResource prefix for UI files by appending /ui to it, to avoid potential naming conflicts between them and the SQL files. Renamed the class variable to reflect it's UI-specific nature.
To post a comment you must log in.