| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
| |
While Browse is loading, the overlay at the bottom-left of the
screen -which is currently used to show the URL of a link when
the mouse is over it- will show "Loading...", and later will
append the requested URI to that message. This message replaces
the one showing the link URL until the page load is done.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This identifier is used in ASLO to determine which activities
can be downloaded (ASLO is parsing the user agent of the Browser
to provide an appropriate activity version, if it fails to get
the Sugar version from the agent string, it uses the last stable version,
which is 0.94 at the moment).
One thing that is not perfectly handled by this patch is that we
need to modify the user agent for every WebView (see [1]).
Furthermore we need to modify the Sugar version in Browse accordingly
with each Sugar release as the Sugar version is only availble in the
shell and not in the toolkit.
[1] https://lists.webkit.org/pipermail/webkit-gtk/2012-January/000893.html
Signed-off-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
| |
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
| |
Inspired by: http://wiki.disorder.sk/howto:webkit_snippets
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
| |
Now the WebKit.WebView zoom_in() and zoom_out() methods are called and
the page is effectively zoomed.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
| |
Using pyflakes to check.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
| |
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
| |
Was done running the pygi-convert.sh script.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
| |
Proper code, using signals, instead of adding a reference of
TabbedView to Browse objects.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
|
| |
Restoring the history index instead of (re)loading the active URL will
"distribute" the history over the Back and Forward buttons exactly the same
as before Stop + Resume instead of putting it all on the Back button.
[tweaked description]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Acked-By: Sascha Silbe <silbe@activitycentral.com>
|
|
|
|
|
|
|
| |
Slightly enhance and rename GetSourceListener so it can be used for waiting
for completion of any save operation, not just GetSource.
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
|
|
|
|
| |
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
|
|
|
|
| |
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
|
| |
|