Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webtoolbar.py
Commit message (Collapse)AuthorAgeFilesLines
* Update progress bar and stop/reload buttons when switching tabsManuel Quiñones2012-03-281-9/+9
| | | | | | | | | | | | | | | | | | | | Calling the _set_status and _set_progress methods in the web toolbar directly when a new tab is activated. Also the callback for load-status is disconnected now in the previous tab, like the other callbacks. Removed the update of the navigation buttons when the loading status changes. This is only needed when the adress changes or when the tabs are switched. Removed the title set to None when loading status chenges, this was giving the following Gtk error: Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Basic PDF readingManuel Quiñones2012-03-221-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | When a request is made with a MIME type 'application/pdf', a new tab is opened next to the current one to show the document. If the document is remote, a download starts, and the progress is shown in the toolbar's URL entry. It can be cancelled with the X button, the same for cancelling the loading. Basic navigation is provided to allow a quick read of the PDF. The user can also save the document to the Journal to store it, and later it may be opened in Read for featureful usage. The controls are in a floating toolbar, at the bottom of the document. The PDF tabs are restored between sessions as expected. If the user clicks on a hyperlink in a PDF, a new tab is opened next to the current to browse it. This uses Evince, the same backend to display the PDF document as Read. And WebKit to download the document, as per other downloads in Browse. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Use SugarMenuItem in the back/forward palettesManuel Quiñones2012-03-021-10/+23
| | | | | | | This is a fix for the GTK+3 menu palettes, and should be reverted when the palettes are fixed. Is the same hack as current Read activity. Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Palettes showing history in back and forward buttonsManuel Quiñones2012-01-071-32/+38
| | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Use self._browser in PrimaryToolbar, remove unused codeManuel Quiñones2012-01-071-29/+8
| | | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Global history for URL autocompletion in URL entryManuel Quiñones2012-01-061-8/+8
| | | | | | | | | 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>
* Normalize and autosearch url input.Manuel Quiñones2012-01-051-1/+3
| | | | | | | | | | This borrows code from Epiphany. Our normalize_or_autosearch_url is like the method of the same name in ephy-web-view.c . And the function has_web_scheme is like ephy_embed_utils_address_has_web_scheme in ephy-embed-utils.c Acked-by: Simon Schampijer <simon@laptop.org> Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Restore reload/stop loading functionalityManuel Quiñones2011-12-201-4/+3
| | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Fix bugs adding conditionals for BrowserNotebook with no pagesManuel Quiñones2011-12-051-3/+4
| | | | Signed-off-by: Manuel Quiñones <manuq@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>
* Fixup for previous fixup, c4c9787cd323ed6954b20db4ccc009da32d78ddcManuel Quiñones2011-11-301-1/+1
| | | | | | Now hopefully, it really fixes __loading_changed_cb method. Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Fixup of commit cb60c84225cdd1afb0e6008aecfdaa3b387e00ceManuel Quiñones2011-11-301-0/+1
| | | | | | | - Missing WebKit imports - fix __loading_changed_cb method Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Restore navigation back-forward in toolbar buttonsManuel Quiñones2011-11-301-4/+4
| | | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Restore url-entry showing url, title and progress barManuel Quiñones2011-11-301-44/+37
| | | | | | | | | We left filepicker.cleanup_temp_files() commented for now, as this can be functionality that needs to be restored in the future, cleaning the temporal files when the uri changes. 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-5/+5
| | | | | | | | | 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-6/+6
| | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Port from PyGTK to PyGI, renamingManuel Quiñones2011-11-251-25/+25
| | | | | | | 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-17/+8
| | | | | Reviewed-by: Manuel Quinones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Browse: tabs usability improvedManuel Quiñones2011-09-101-15/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Show the start of an url if bigger than the entry fieldSimon Schampijer2011-08-301-1/+0
| | | | | | | | | If the url is bigger than the entry field the important information is at the beginning of the url. Epiphany or Firefox are doing the same thing. Signed-off-by: Simon Schampijer <simon@laptop.org> Tested-By: Gonzalo Odiard <gonzalo@laptop.org>
*