Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
Commit message (Collapse)AuthorAgeFilesLines
* Display pages based on locale specific informationSimon Schampijer2012-01-231-16/+5
| | | | | | | | | | | | | | | | This displays pages based on your locale information e.g. 'google.com' will be in French when your locale is set to 'fr'. We use our associated SoupSession to set the "accept-language-auto" property [1] which will set the 'accept-language' header when making requests based on the return value of g_get_language_names() [2]. This does replace our custom code that did determine the locale information and the 'intl.accept_languages' [3] property before. [1] http://developer.gnome.org/libsoup/stable/SoupSession.html#SoupSession--accept-language-auto [2] http://developer.gimp.org/api/2.0/glib/glib-I18N.html#g-get-language-names [3] http://kb.mozillazine.org/About:config_entries#Intl. Signed-off-by: Simon Schampijer <simon@laptop.org>
* Bring back download functionality using WebKitSimon Schampijer2012-01-231-5/+4
| | | | | | | | | | | | | | This brings back the download functionality to Browse using WebKit, it handles the cases when you click on a link and the Browser is not setup to view this file. Requesting a download through Palettes is still to come. The code is inspired by the download code in Surf. Signed-off-by: Simon Schampijer <simon@laptop.org>
* Adopt to new Activity APISimon Schampijer2012-01-111-7/+5
| | | | | | '_shared_activity' has been deprecated use 'get_shared_activity()' now. Signed-off-by: Simon Schampijer <simon@laptop.org>
* Make None comparison PEP8 conformSimon Schampijer2012-01-111-1/+1
|
* Show link information when hovering over linkSimon Schampijer2012-01-071-5/+4
| | | | | | | | | When hovering over a link we show the link information at the lower left corner, like Epiphany does. Needs styling to be eve nicer. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Global history for URL autocompletion in URL entryManuel Quiñones2012-01-061-1/+0
| | | | | | | | | The sqlite backend to store the global history is maintained. There are two fields in the database that are left unused: bookmark and gecko_flags. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Restore starred linksManuel Quiñones2012-01-051-22/+18
| | | | | | | The thumbnails are now made with Cairo. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Adopt to WebKit API for title of the browser widgetSimon Schampijer2012-01-041-1/+1
| | | | | | | | | | The webkitgtk API [1] does return None if the title is not set. Adopt to that change. [1] http://webkitgtk.org/reference/webkitgtk-webkitwebview.html#WebKitWebView--title Signed-off-by: Simon Schampijer <simon@laptop.org> Reviewed-by: Manuel Quiñones <manuq@laptop.org>
* Improve session store and restoreManuel Quiñones2012-01-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | This is the review from Simon Schampijer of commit 14102bcd65f015dcbf12d1406df8ef7ffb64d13d . * the sessionstore code is moved into Browser, we do have set_history_index/get_history_index already there, the TabbedView does use that path for their requests about the history * Rename a few bits s/session/history and the return value from self.get_back_forward_list() Use back_forward_list as variable * Fold _get_history and _set_history into their appropriate 'mother' methods * Make set_history_index a bit cleaner, the API provided by webkitgtk does not seem to cleanly allow our usage like: get_current_item_index and go_to_back_forward_item(index) also the API does seem to miss a back_forward_list.get_length() (see the code we have to do in _items_history_as_list) there only exist a back_forward_list.get_back_length() and back_forward_list.get_forward_length(). Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Store and restore session for each tabManuel Quiñones2011-12-201-10/+7
| | | | | | | | For going to a specific item in the history, it uses go_back() method of WebKit.WebView. I tried also with WebKit.WebHistoryItem go_back(), seemed the proper solution, but the page wouldn't update. Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Restore keystrokes for go back, go forward, reload pageManuel Quiñones2011-12-011-5/+7
| | | | | | | | | | | - Added logging in the keystrokes - Changed Gdk.EventMask.CONTROL_MASK for Gdk.ModifierType.CONTROL_MASK, it was badly converted by the pygi-convert.sh script in commit dec602fda0890bdbfb121107b9bb39f7954a9cd5 Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Add needed imports for Gdk, GdkPixbuf and WebKitManuel Quiñones2011-12-011-0/+1
| | | | | | | Using pyflakes to check. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Commenting out code so the activity can stopManuel Quiñones2011-11-301-2/+7
| | | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Remove mozilla xpcom and hulahop, add WebKitManuel Quiñones2011-11-291-26/+9
| | | | | | | | | This commit breaks a lot of Browse functionality. This is marked in the code with a FIXME keyword. Original work was done by Daniel Drake. Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Rename sugar to sugar3Manuel Quiñones2011-11-291-10/+10
| | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Port from PyGTK to PyGI, renamingManuel Quiñones2011-11-251-15/+15
| | | | | | | Was done running the pygi-convert.sh script. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Remove old toolbars supportDaniel Drake2011-11-181-52/+14
| | | | | Reviewed-by: Manuel Quinones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Pylint cleanupSimon Schampijer2011-09-101-4/+3
|
* Browse: tabs usability improvedManuel Quiñones2011-09-101-27/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The Add Tab button has been relocated next to the tab labels, allowing more space for the URL entry. Tabs are always shown. There is at least one tab. In that case, it cannot be closed. We prevent the closing by hiding the 'X' button. Also, the close image was sugarized. There is now a fixed width for tabs. The label text does ellipsize. The width depends on the amount of tabs. There is a maximum size that is used when there is extra space. There is a minimum size to prevent hiding the information. When a new tab is opened, it now shows an empty page, not the default page. In the future, we will add a hint in this empty page, similar to what we have for an empty Journal. Added the option to "follow link in new tab" in the link's palette. Added an icon for this item, and also the icon for "follow link" is also updated. When a new tab is opened via the '+' button, the focus goes to the URL entry in the toolbar. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Fix autosuggestions in url entry SL #3087Simon Schampijer2011-09-071-0/+4
| | | | | | | Fixes regression introduced by e15a091101223456dc770b9b5e02db8146d05da8 Signed-off-by: Simon Schampijer <simon@laptop.org> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
* Remove unused imports in webactivity.pyGonzalo Odiard2011-08-291-3/+0
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Remove unfinished downloadsRafael Ortiz2011-07-151-0/+2
| | | | | | When Browse starts removes all files in the instance directory that where not modified in a long time(1 day). Since there is no way to pause a download and continue later, this files are failed downloads that should be eliminated. this is the ''cache'' case of an already fixed issue, by Jose Prous joseprous@gmail.com
* updating commentRafael Ortiz2011-07-071-1/+1
|
* Start password managerSascha Silbe2011-07-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | With todays plethora of sites using passwords for authentication a password manager in the browser is important not just for convenience, but also for security. Most humans can't remember more than a few secure passwords. Without storing passwords in the browser they use weak passwords and/or the same password for many sites. Passwords are stored unencrypted by default. This is consistent with the security model of most deployments (no login passwords either). Individual users can set a password by accessing the internal URL chrome://pippki/content/changepassword.xul . However this password needs to be entered once per Browse session. Solutions like disk encryption that are at the same time more convenient (a single password per login) and more secure (all data gets encrypted, not just passwords to websites). The UI isn't pretty [1], but we can still improve on that later on. [1] http://wiki.sugarlabs.org/go/File:Browse-save-password.png Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Signed-off-by: Rafael Ortiz <rafael@activitycentral.com>
*