From 0ee8dde796c331de78e499a73a920afcf30dfd98 Mon Sep 17 00:00:00 2001 From: Elad Alfassa Date: Sep 03 2011 11:24:30 +0000 Subject: Rename the patch file --- diff --git a/0001-Fix-account.get_id-is-not-a-function-error.patch b/0001-Fix-account.get_id-is-not-a-function-error.patch deleted file mode 100644 index 041a941..0000000 --- a/0001-Fix-account.get_id-is-not-a-function-error.patch +++ /dev/null @@ -1,36 +0,0 @@ -From d84abb894a3cb6d8fe4244a47d7d450920677b22 Mon Sep 17 00:00:00 2001 -From: Michel Alexandre Salim -Date: Sat, 3 Sep 2011 12:26:56 +0200 -Subject: [PATCH] Access Account fields directly, not through getter functions - -Per David Zeuthen -(https://bugzilla.redhat.com/show_bug.cgi?id=735341#c2): - -gdbus-codegen(1) now uses (skip) annotation on generated C property -getters - it is better, and thread-safe, to access the GObject property -directly via e.g. account_id - -Signed-off-by: Michel Alexandre Salim ---- - src/sources.js | 4 ++-- - 1 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/sources.js b/src/sources.js -index 629ff35..f703cd1 100644 ---- a/src/sources.js -+++ b/src/sources.js -@@ -48,8 +48,8 @@ Source.prototype = { - this.object = params.object; - - let account = this.object.get_account(); -- this.id = account.get_id(); -- this.name = account.get_provider_name(); -+ this.id = account.id; -+ this.name = account.provider_name; - } else { - this.id = params.id; - this.name = params.name; --- -1.7.6.1 - - diff --git a/gnome-documents-0.1.90-fix_account_props.patch b/gnome-documents-0.1.90-fix_account_props.patch new file mode 100644 index 0000000..041a941 --- /dev/null +++ b/gnome-documents-0.1.90-fix_account_props.patch @@ -0,0 +1,36 @@ +From d84abb894a3cb6d8fe4244a47d7d450920677b22 Mon Sep 17 00:00:00 2001 +From: Michel Alexandre Salim +Date: Sat, 3 Sep 2011 12:26:56 +0200 +Subject: [PATCH] Access Account fields directly, not through getter functions + +Per David Zeuthen +(https://bugzilla.redhat.com/show_bug.cgi?id=735341#c2): + +gdbus-codegen(1) now uses (skip) annotation on generated C property +getters - it is better, and thread-safe, to access the GObject property +directly via e.g. account_id + +Signed-off-by: Michel Alexandre Salim +--- + src/sources.js | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/sources.js b/src/sources.js +index 629ff35..f703cd1 100644 +--- a/src/sources.js ++++ b/src/sources.js +@@ -48,8 +48,8 @@ Source.prototype = { + this.object = params.object; + + let account = this.object.get_account(); +- this.id = account.get_id(); +- this.name = account.get_provider_name(); ++ this.id = account.id; ++ this.name = account.provider_name; + } else { + this.id = params.id; + this.name = params.name; +-- +1.7.6.1 + +