Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/palettes.py
Commit message (Collapse)AuthorAgeFilesLines
* Order of MenuItems in palettes, SL #4230Manuel Kaufmann2012-11-231-4/+4
| | | | | | | | Keep the same order for MenuItems when the Palettes are shown for links as in previous builds. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Simon Schampijer <simon@laptop.org>
* SugarLongPressController: default the trigger_delay property to 600msSimon Schampijer2012-11-061-1/+1
| | | | | | | | | 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>
* Palettes: fix Copy Image functionality - SL #3455Gonzalo Odiard2012-10-171-1/+1
| | | | | | | | | | 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>
* Touch: on long-press on a link or image show the PaletteSimon Schampijer2012-10-151-2/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Remove leftover debugging logsSimon Schampijer2012-10-011-4/+0
| | | | introduced in c3b6dd919c91cd733a081ace6d0444b4191ca15e
* Show Sugar's palette when right click is pressed SL #3455Manuel Kaufmann2012-09-281-200/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Remove mozilla xpcom and hulahop, add WebKitManuel Quiñones2011-11-291-3/+0
| | | | | | | | | 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-5/+5
| | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Port from PyGTK to PyGI, renamingManuel Quiñones2011-11-251-17/+17
| | | | | | | Was done running the pygi-convert.sh script. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Fix for Follow link in new tabManuel Quiñones2011-09-121-3/+1
| | | | | | | | 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>
* Browse: tabs usability improvedManuel Quiñones2011-09-101-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 overlong linesSascha Silbe2011-05-211-3/+4
| | | | Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* fix PEP8 whitespace issuesSascha Silbe2011-05-211-2/+2
| | | | Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* add/remove some empty lines according to PEP8Sascha Silbe2010-06-161-1/+5
|
* remove EOL spacesSascha Silbe2010-06-161-5/+5
|
* Listen for mouseout event to popdown palette #1314Simon Schampijer2009-09-181-0/+45
|
* Refine image and link right click palette #815Simon Schampijer2009-08-211-10/+17
| | | | | image: 'Keep image', Copy 'image' link: 'Keep link', Copy link', Follow link'
* Add a "Download image" option to the image paletteTomeu Vizoso2008-10-151-2/+12
|
* Add a "Download link" option to the link paletteTomeu Vizoso2008-10-151-3/+16
|
* #8256 Only put image in the clipboard when the image has been completely writtenTomeu Vizoso2008-09-091-14/+40
|
* copy Image to clipboard under rainbowSimon Schampijer2008-06-091-4/+12
| | | | | | - specify the dir we want to save to - preserve the base file name - file name unique since using mkstemp
* Pylint fixesSimon Schampijer2008-05-281-2/+2
|
* Add Follow link item to link paletteTomeu Vizoso2008-05-281-3/+14
|
* Add palette for images.Tomeu Vizoso2008-05-251-6/+73
|
* Add a simple palette for links with an option to copy to the clipboard.Tomeu Vizoso2008-05-251-0/+104