Fix up GOA branch to build with meson.
This commit is contained in:
parent
5108a21def
commit
fbc6671e16
5 changed files with 15 additions and 6 deletions
2
debian/control
vendored
2
debian/control
vendored
|
|
@ -12,6 +12,7 @@ Build-Depends: debhelper (>= 8),
|
||||||
libgirepository1.0-dev,
|
libgirepository1.0-dev,
|
||||||
libglib2.0-dev (>= 2.54.0),
|
libglib2.0-dev (>= 2.54.0),
|
||||||
libgmime-2.6-dev (>= 2.6.17),
|
libgmime-2.6-dev (>= 2.6.17),
|
||||||
|
libgoa-1.0-dev,
|
||||||
libgtk-3-dev (>= 3.22.26),
|
libgtk-3-dev (>= 3.22.26),
|
||||||
libmessaging-menu-dev,
|
libmessaging-menu-dev,
|
||||||
libnotify-dev,
|
libnotify-dev,
|
||||||
|
|
@ -37,6 +38,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends},
|
||||||
libgee-0.8-2,
|
libgee-0.8-2,
|
||||||
libglib2.0-0 (>= 2.56.0),
|
libglib2.0-0 (>= 2.56.0),
|
||||||
libgmime-2.6-0 (>= 2.6.17),
|
libgmime-2.6-0 (>= 2.6.17),
|
||||||
|
libgoa-1.0-0b,
|
||||||
libgtk-3-0 (>= 3.22.26),
|
libgtk-3-0 (>= 3.22.26),
|
||||||
libmessaging-menu0,
|
libmessaging-menu0,
|
||||||
libnotify4,
|
libnotify4,
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ gcr = dependency('gcr-3', version: '>= 3.10.1')
|
||||||
gdk = dependency('gdk-3.0', version: '>=' + target_gtk)
|
gdk = dependency('gdk-3.0', version: '>=' + target_gtk)
|
||||||
gee = dependency('gee-0.8', version: '>= 0.8.5')
|
gee = dependency('gee-0.8', version: '>= 0.8.5')
|
||||||
gio = dependency('gio-2.0', version: '>=' + target_glib)
|
gio = dependency('gio-2.0', version: '>=' + target_glib)
|
||||||
|
goa = dependency('goa-1.0')
|
||||||
gobject_introspection = dependency('gobject-introspection-1.0')
|
gobject_introspection = dependency('gobject-introspection-1.0')
|
||||||
gthread = dependency('gthread-2.0', version: '>=' + target_glib)
|
gthread = dependency('gthread-2.0', version: '>=' + target_glib)
|
||||||
javascriptcoregtk = dependency('javascriptcoregtk-4.0', version: '>=' + target_webkit)
|
javascriptcoregtk = dependency('javascriptcoregtk-4.0', version: '>=' + target_webkit)
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ public class AccountManager : GLib.Object {
|
||||||
GLib.List<Goa.Object> list = this.goa_service.get_accounts();
|
GLib.List<Goa.Object> list = this.goa_service.get_accounts();
|
||||||
for (int i=0; i < list.length() && !cancellable.is_cancelled(); i++) {
|
for (int i=0; i < list.length() && !cancellable.is_cancelled(); i++) {
|
||||||
Goa.Object account = list.nth_data(i);
|
Goa.Object account = list.nth_data(i);
|
||||||
string id = to_geary_id(account.get_account());
|
string id = to_geary_id(account);
|
||||||
if (!this.enabled_accounts.has_key(id)) {
|
if (!this.enabled_accounts.has_key(id)) {
|
||||||
Geary.AccountInformation? info = null;
|
Geary.AccountInformation? info = null;
|
||||||
try {
|
try {
|
||||||
|
|
@ -187,7 +187,7 @@ public class AccountManager : GLib.Object {
|
||||||
// XXX want to report this problem to the user
|
// XXX want to report this problem to the user
|
||||||
// somehow, but at this point in the app's
|
// somehow, but at this point in the app's
|
||||||
// lifecycle we don't even have a main window.
|
// lifecycle we don't even have a main window.
|
||||||
warning("Error creating GOA account %s: %s",
|
warning("Error creating existing GOA account %s: %s",
|
||||||
account.get_account().id, err.message);
|
account.get_account().id, err.message);
|
||||||
}
|
}
|
||||||
if (info != null) {
|
if (info != null) {
|
||||||
|
|
@ -453,8 +453,8 @@ public class AccountManager : GLib.Object {
|
||||||
this.engine.add_account(account);
|
this.engine.add_account(account);
|
||||||
}
|
}
|
||||||
|
|
||||||
private inline string to_geary_id(Goa.Account account) {
|
private inline string to_geary_id(Goa.Object account) {
|
||||||
return GOA_ID_PREFIX + account.id;
|
return GOA_ID_PREFIX + account.get_account().id;
|
||||||
}
|
}
|
||||||
|
|
||||||
private inline string to_goa_id(string id) {
|
private inline string to_goa_id(string id) {
|
||||||
|
|
@ -500,7 +500,7 @@ public class AccountManager : GLib.Object {
|
||||||
if (provider == Geary.ServiceProvider.OTHER) {
|
if (provider == Geary.ServiceProvider.OTHER) {
|
||||||
imap.load_settings(imap_config);
|
imap.load_settings(imap_config);
|
||||||
|
|
||||||
smtp.load_settings(imap_config);
|
smtp.load_settings(smtp_config);
|
||||||
if (smtp.smtp_use_imap_credentials) {
|
if (smtp.smtp_use_imap_credentials) {
|
||||||
smtp.credentials.user = imap.credentials.user;
|
smtp.credentials.user = imap.credentials.user;
|
||||||
smtp.credentials.pass = imap.credentials.pass;
|
smtp.credentials.pass = imap.credentials.pass;
|
||||||
|
|
@ -538,7 +538,7 @@ public class AccountManager : GLib.Object {
|
||||||
GLib.Cancellable? cancellable)
|
GLib.Cancellable? cancellable)
|
||||||
throws GLib.Error {
|
throws GLib.Error {
|
||||||
Geary.AccountInformation? info = new_goa_account(
|
Geary.AccountInformation? info = new_goa_account(
|
||||||
to_geary_id(account.get_account()), account
|
to_geary_id(account), account
|
||||||
);
|
);
|
||||||
if (info != null) {
|
if (info != null) {
|
||||||
debug("GOA id: %s", info.id);
|
debug("GOA id: %s", info.id);
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ geary_client_vala_sources = files(
|
||||||
'application/geary-args.vala',
|
'application/geary-args.vala',
|
||||||
'application/geary-config.vala',
|
'application/geary-config.vala',
|
||||||
'application/geary-controller.vala',
|
'application/geary-controller.vala',
|
||||||
|
'application/goa-mediator.vala',
|
||||||
'application/secret-mediator.vala',
|
'application/secret-mediator.vala',
|
||||||
|
|
||||||
'accounts/account-dialog.vala',
|
'accounts/account-dialog.vala',
|
||||||
|
|
@ -18,6 +19,7 @@ geary_client_vala_sources = files(
|
||||||
'accounts/account-manager.vala',
|
'accounts/account-manager.vala',
|
||||||
'accounts/account-spinner-page.vala',
|
'accounts/account-spinner-page.vala',
|
||||||
'accounts/add-edit-page.vala',
|
'accounts/add-edit-page.vala',
|
||||||
|
'accounts/goa-service-information.vala',
|
||||||
'accounts/local-service-information.vala',
|
'accounts/local-service-information.vala',
|
||||||
'accounts/login-dialog.vala',
|
'accounts/login-dialog.vala',
|
||||||
|
|
||||||
|
|
@ -111,6 +113,7 @@ geary_client_dependencies = [
|
||||||
gcr,
|
gcr,
|
||||||
gee,
|
gee,
|
||||||
gio,
|
gio,
|
||||||
|
goa,
|
||||||
gtk,
|
gtk,
|
||||||
libcanberra,
|
libcanberra,
|
||||||
libnotify,
|
libnotify,
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@ geary_c_options = [
|
||||||
# Select libunwind's optimised, local-only backtrace unwiding. See
|
# Select libunwind's optimised, local-only backtrace unwiding. See
|
||||||
# libunwind(3).
|
# libunwind(3).
|
||||||
'-DUNW_LOCAL_ONLY',
|
'-DUNW_LOCAL_ONLY',
|
||||||
|
# Yes yes, GOA's API is unstable. :(
|
||||||
|
'-DGOA_API_IS_SUBJECT_TO_CHANGE'
|
||||||
]
|
]
|
||||||
|
|
||||||
subdir('sqlite3-unicodesn')
|
subdir('sqlite3-unicodesn')
|
||||||
|
|
@ -74,6 +76,7 @@ geary_bin_dependencies = [
|
||||||
geary_engine_dep,
|
geary_engine_dep,
|
||||||
gee,
|
gee,
|
||||||
gmime,
|
gmime,
|
||||||
|
goa,
|
||||||
gtk,
|
gtk,
|
||||||
libmath,
|
libmath,
|
||||||
libsoup,
|
libsoup,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue