[gwibber] fix facebook support

Tom Callaway spot at fedoraproject.org
Fri Oct 19 20:33:29 UTC 2012


commit 24168b260cef754cec116256a7f4ab256a448650
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Fri Oct 19 16:34:54 2012 -0400

    fix facebook support

 gwibber-3.4.2-fix-facebook.patch |   21 +++++++++++++++++++++
 gwibber.spec                     |   12 +++++++++++-
 2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/gwibber-3.4.2-fix-facebook.patch b/gwibber-3.4.2-fix-facebook.patch
new file mode 100644
index 0000000..d665b30
--- /dev/null
+++ b/gwibber-3.4.2-fix-facebook.patch
@@ -0,0 +1,21 @@
+diff -up gwibber-3.4.2/gwibber/microblog/plugins/facebook/gtk/facebook/__init__.py.fix-facebook gwibber-3.4.2/gwibber/microblog/plugins/facebook/gtk/facebook/__init__.py
+--- gwibber-3.4.2/gwibber/microblog/plugins/facebook/gtk/facebook/__init__.py.fix-facebook	2012-10-19 16:28:32.169509495 -0400
++++ gwibber-3.4.2/gwibber/microblog/plugins/facebook/gtk/facebook/__init__.py	2012-10-19 16:28:59.994514384 -0400
+@@ -105,7 +105,7 @@ class AccountWidget(Gtk.VBox):
+       "redirect_uri": "http://www.facebook.com/connect/login_success.html",
+     })
+     web.load_uri("https://graph.facebook.com/oauth/authorize?" + url)
+-    web.connect("title-changed", self.on_facebook_auth_title_change)
++    web.connect("onload-event", self.on_facebook_auth_title_change)
+ 
+     self.scroll = Gtk.ScrolledWindow()
+     
+@@ -126,7 +126,7 @@ class AccountWidget(Gtk.VBox):
+     self.dialog.infobar_content_area.show()
+ 
+     url = web.get_main_frame().get_uri()
+-    if title.get_title() == "Success":
++    if "/login_success" in url:
+       try:
+         self.account["access_token"] = str(urlparse.parse_qs(url.split("#", 1)[1])["access_token"][0])
+       except:
diff --git a/gwibber.spec b/gwibber.spec
index a5793b3..512f2be 100644
--- a/gwibber.spec
+++ b/gwibber.spec
@@ -2,7 +2,7 @@
 
 Name:           gwibber
 Version:        3.4.2
-Release:        3%{?dist}
+Release:        4%{?dist}
 Epoch:          1
 Summary:        An open source microblogging client for GNOME developed with Python and GTK
 Group:          Applications/Internet
@@ -44,6 +44,10 @@ Patch52:	gwibber-3.3.2-no-gtkspell.patch
 # Gee now reports API of 0.8 in the 0.7 releases.
 Patch53:	gwibber-3.3.2-gee-0.8.patch
 
+# Fix facebook support
+# https://bugs.launchpad.net/ubuntu/+source/gwibber/+bug/1058672
+Patch54:	gwibber-3.4.2-fix-facebook.patch
+
 Requires:	libsoup, python-pycurl
 Requires:	python 
 Requires:	dbus-python >= 0.80.2
@@ -113,6 +117,9 @@ Development files for gwibber's libraries.
 # Match with 0.7 API (of 0.8)
 %patch53 -p1 -b .gee08
 
+# Fix facebook support
+%patch54 -p1 -b .fix-facebook
+
 %build
 NOCONFIGURE=true ./autogen.sh
 %configure --disable-unity --disable-static --disable-spell
@@ -188,6 +195,9 @@ fi
 %{_datadir}/vala/vapi/gwibber*
 
 %changelog
+* Fri Oct 19 2012 Tom Callaway <spot at fedoraproject.org> - 1:3.4.2-4
+- fix facebook (thanks to Ken VanDine)
+
 * Mon Jul 23 2012 Tom Callaway <spot at fedoraproject.org> - 1:3.4.2-3
 - add missing Require: pygobject3
 


More information about the scm-commits mailing list