| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
We do set this in the toolkit now [1].
[1] http://git.sugarlabs.org/sugar-toolkit-gtk3/sugar-toolkit-gtk3/commit/8f4474f3f5ecd4db1622ad9967a928d16be82b54
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
|
|
| |
Asking the right clipboard to Gdk, which is Gdk.SELECTION_CLIPBOARD .
This was fixed for the text copy functionality in commit c3b6dd91 but
images was missing.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Show the same Palette as we show when a learner does
a right click on a canvas element.
We use the LongPress event controller from the toolkit for
that. We can only hook this up to the browser widget once
it is realized because we need to enable the touch events
on the x11 window.
When we recognized a long-press event we need to get the
information about that canvas element from WebKit. The
webkit_web_view_get_hit_test_result API [1] which we use
when a right click is recognized does expect an event of
type GdkEventButton to be passed. From the x, y coordinates
we get with the pressed signal we can construct such an
event and and pass that fake event to WebKit.
In order to differentiate between a tap and a tap&hold
event, we need to inhibit the release event to be further
propagated if a long-press occurred before. We use a
boolean to differentiate those two cases.
[1] http://webkitgtk.org/reference/webkitgtk/stable/webkitgtk-webkitwebview.html#webkit-web-view-get-hit-test-result
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
| |
introduced in c3b6dd919c91cd733a081ace6d0444b4191ca15e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the user right clicks over a link, an image or selected text the
Sugar's Palette is shown with the proper menu's items for each case.
There are 4 possibilities. When the click is done over:
- Link:
- Title and subtitle (if they are availables)
- title is the content text of the link
- subtitle is the uri
- Copy link (copy the link into the clipboard)
- Keep link (download the .html to the Journal)
- Follow link in new tab (open a new tab with the url pointed)
- Follow link (follow the link inside the current tab)
- Image:
- Title and subtitle (if they are availables)
- title is the "title" property of the <img>
- subtitle is the uri
- Keep image (download the image to the Journal)
- Copy image (copy the image into the clipboard)
- Image with a link:
- Title and subtitle (if they are availables)
- title is the "title" property of the <img>
- subtitle is the uri
Same Items than "Link" option
- Selected Text:
- Title and subtitle (not implemented because the function
webkit_web_view_get_selected_text was removed:
https://bugs.webkit.org/show_bug.cgi?id=62512)
- Copy text (copy the text into the clipboard)
Signed-off-by: Simon Schampijer <simon@laptop.org>
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Acked-by: Manuel Quiñones <manuq@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: Sascha Silbe <silbe@activitycentral.com>
|
|
|
|
| |
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
image: 'Keep image', Copy 'image'
link: 'Keep link', Copy link', Follow link'
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
- specify the dir we want to save to
- preserve the base file name
- file name unique since using mkstemp
|
| |
|
| |
|
| |
|
|
|