diff -Nru capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/debian/bzr-builder.manifest capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/debian/bzr-builder.manifest --- capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/debian/bzr-builder.manifest 2015-08-17 06:32:32.000000000 +0000 +++ capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/debian/bzr-builder.manifest 2016-09-16 02:28:07.000000000 +0000 @@ -1,3 +1,3 @@ -# bzr-builder format 0.3 deb-version {debupstream}+r23+pkg6 +# bzr-builder format 0.3 deb-version {debupstream}+r23+pkg7 lp:capnet-assist/freya revid:cody@elementary.io-20150607215648-e1ngi3hnqq9hgpoa -nest-part packaging lp:~elementary-os/capnet-assist/deb-packaging debian debian revid:cody@elementary.io-20150802085345-1uvu5mwuh271xvbn +nest-part packaging lp:~elementary-os/capnet-assist/deb-packaging-freya debian debian revid:cody@elementary.io-20160916022607-nbfzwfj4orj4dy3o diff -Nru capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/debian/changelog capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/debian/changelog --- capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/debian/changelog 2015-08-17 06:32:32.000000000 +0000 +++ capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/debian/changelog 2016-09-16 02:28:07.000000000 +0000 @@ -1,8 +1,8 @@ -capnet-assist (0.1.1+r23+pkg6~ubuntu0.3.1) trusty; urgency=low +capnet-assist (0.1.1+r23+pkg7~ubuntu0.3.2.1) trusty; urgency=low * Auto build. - -- Cody Garver Mon, 17 Aug 2015 06:32:32 +0000 + -- Cody Garver Fri, 16 Sep 2016 02:28:07 +0000 capnet-assist (0.1.1) trusty; urgency=medium diff -Nru capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/.pc/applied-patches capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/.pc/applied-patches --- capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/.pc/applied-patches 2015-08-17 06:32:32.000000000 +0000 +++ capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/.pc/applied-patches 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -official-204-url.patch diff -Nru capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/.pc/official-204-url.patch/src/CaptiveLogin.vala capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/.pc/official-204-url.patch/src/CaptiveLogin.vala --- capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/.pc/official-204-url.patch/src/CaptiveLogin.vala 2015-08-17 06:32:32.000000000 +0000 +++ capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/.pc/official-204-url.patch/src/CaptiveLogin.vala 1970-01-01 00:00:00.000000000 +0000 @@ -1,104 +0,0 @@ -/*** - BEGIN LICENSE - - Copyright (C) 2015 elementary LLC. - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License version 3, as published - by the Free Software Foundation. - - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranties of - MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR - PURPOSE. See the GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program. If not, see - - END LICENSE -***/ - -public class ValaBrowser : Gtk.Window { - - private const string TITLE = "Log in"; - private const string DUMMY_URL = "http://elementary.io"; - - private WebKit.WebView web_view; - - public ValaBrowser () { - set_default_size (1000, 680); - set_keep_above (true); - set_skip_taskbar_hint (true); - - var header = new Gtk.HeaderBar (); - header.set_show_close_button (true); - header.get_style_context ().remove_class ("header-bar"); - - this.set_titlebar (header); - this.title = ValaBrowser.TITLE; - - create_widgets (); - connect_signals (); - } - - private void create_widgets () { - this.web_view = new WebKit.WebView (); - var scrolled_window = new Gtk.ScrolledWindow (null, null); - scrolled_window.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC); - scrolled_window.add (this.web_view); - var vbox = new Gtk.Box (Gtk.Orientation.VERTICAL, 0); - vbox.set_homogeneous (false); - vbox.pack_start (scrolled_window, true, true, 0); - add (vbox); - } - - public bool isLoggedIn () { - var page = "http://connectivitycheck.android.com/generate_204"; - debug ("Getting 204 page"); - - var session = new Soup.Session (); - var message = new Soup.Message ("GET", page); - - session.send_message (message); - - debug ("Return code: %u", message.status_code); - return message.status_code == 204; - } - - private void connect_signals () { - this.destroy.connect (Gtk.main_quit); - //should title change? - this.web_view.title_changed.connect ((source, frame, title) => { - this.title = "%s".printf (title); - }); - - this.web_view.document_load_finished.connect ( (frame) => { - if (isLoggedIn ()) { - debug ("Logged in!"); - Gtk.main_quit (); - } else { - debug ("Still not logged in."); - } - }); - } - - public void start () { - show_all (); - this.web_view.load_uri (ValaBrowser.DUMMY_URL); - } - - public static int main (string[] args) { - Gtk.init (ref args); - - var browser = new ValaBrowser (); - - if (!browser.isLoggedIn ()) { - debug ("Opening browser to login"); - browser.start (); - Gtk.main (); - } else { - debug ("Already logged in and connected, shutting down."); - } - - return 0; - } -} diff -Nru capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/.pc/.quilt_patches capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/.pc/.quilt_patches --- capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/.pc/.quilt_patches 2015-08-17 06:32:32.000000000 +0000 +++ capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/.pc/.quilt_patches 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -/home/buildd/build-RECIPEBRANCHBUILD-972759/chroot-autobuild/home/buildd/work/tree/capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/debian/patches diff -Nru capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/.pc/.quilt_series capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/.pc/.quilt_series --- capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/.pc/.quilt_series 2015-08-17 06:32:32.000000000 +0000 +++ capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/.pc/.quilt_series 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -/home/buildd/build-RECIPEBRANCHBUILD-972759/chroot-autobuild/home/buildd/work/tree/capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/debian/patches/series diff -Nru capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/.pc/.version capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/.pc/.version --- capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/.pc/.version 2015-08-17 06:32:32.000000000 +0000 +++ capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/.pc/.version 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -2 diff -Nru capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/src/CaptiveLogin.vala capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/src/CaptiveLogin.vala --- capnet-assist-0.1.1+r23+pkg6~ubuntu0.3.1/src/CaptiveLogin.vala 2015-08-17 06:32:32.000000000 +0000 +++ capnet-assist-0.1.1+r23+pkg7~ubuntu0.3.2.1/src/CaptiveLogin.vala 2016-09-16 02:28:07.000000000 +0000 @@ -52,7 +52,7 @@ } public bool isLoggedIn () { - var page = "http://elementary.io/generate_204"; + var page = "http://connectivitycheck.android.com/generate_204"; debug ("Getting 204 page"); var session = new Soup.Session ();