sugar-toolkit-gtk3/src/sugar3/graphics
Simon Schampijer a515976dff WidgetInvoker: add support for long-press events, part of #4127
The WidgetInvoker will decide if a long press has been made
or not. We watch out for TOUCH_END events and when a long-press
event has been seen before we stop further propagation of the
event, hence there won't be any button-release or clicked
events available to the user of the widget.

There are several widgets using the WidgetInvoker, and those
handle differently touch events. The GtkButton does have a widget
implementation to handle touch events, it does stop further
propagation and emits the pressed/released signal for further
consumption [1]. We will not get a button-press/button-release
event for a touch event in this case.

The default behaviour for widgets e.g. a TreeView is to transform
the touch events into pointer events [2], for those widgets we do get
a button-press/button-release event for a touch events.

[1] http://git.gnome.org/browse/gtk+/tree/gtk/gtkbutton.c#n1809
[2] http://git.gnome.org/browse/gtk+/tree/gtk/gtkwidget.c#n5876

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
2012-11-05 14:45:53 +01:00
..
__init__.py
alert.py Alert: use GtkStyleContext instead of deprecated GtkStyle - SL #3907 2012-10-01 22:57:05 -03:00
animator.py Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 2011-12-13 17:19:52 -03:00
colorbutton.py Fix the drawing of ColorToolButton, RadioToolButton and ToggleToolButton 2012-08-27 14:13:42 -03:00
combobox.py Trivial GTK3 porting fixes 2011-12-20 19:00:17 +01:00
icon.py CellRendererIcon: add active state - SL #3989 2012-10-30 11:14:26 -03:00
iconentry.py IconEntry, set_icon_from_name: handle case when icon can not be found cleanly 2012-09-17 15:54:26 +02:00
Makefile.am Add new PaletteMenuItem widget for usage in mixed content Palettes 2012-09-13 17:40:14 +02:00
menuitem.py Replacing set_data/get_data with a python attribute 2012-06-06 14:56:44 +02:00
notebook.py Adapt to Gtk.icon_size_lookup*() API changes 2011-12-13 17:19:52 -03:00
objectchooser.py Object Chooser: update for GDK3 get_xid() 2012-05-22 13:00:24 +02:00
palette.py Palettes: move PRIMARY and SECONDARY constant to the base class 2012-10-23 11:29:02 +02:00
palettegroup.py Reimplement Palettes for GTK3 2011-12-20 19:19:16 +01:00
palettemenuitem.py Add new PaletteMenuItem widget for usage in mixed content Palettes 2012-09-13 17:40:14 +02:00
palettewindow.py WidgetInvoker: add support for long-press events, part of #4127 2012-11-05 14:45:53 +01:00
panel.py Trivial GTK3 porting fixes 2011-12-20 19:00:17 +01:00
radiopalette.py Fix radiopalette due to api change in toolbotton 2012-09-21 10:04:39 -03:00
radiotoolbutton.py RadioToolButton, ToolButton, ToggleToolButton: add back the getter for the icon_name property 2012-09-20 09:38:39 +02:00
style.py Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 2011-12-13 17:19:52 -03:00
toggletoolbutton.py RadioToolButton, ToolButton, ToggleToolButton: add back the getter for the icon_name property 2012-09-20 09:38:39 +02:00
toolbarbox.py Set correct background for subtoolbars - SL #3987 2012-11-01 08:54:21 -03:00
toolbox.py Trivial GTK3 porting fixes 2011-12-20 19:00:17 +01:00
toolbutton.py Add toggle_palette property for Palette invoker, SL #4065 2012-10-23 11:28:15 +02:00
toolcombobox.py Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 2011-12-13 17:19:52 -03:00
tray.py TrayIcon: set the touch mask on the event box, part of SL #4127 2012-11-05 14:40:31 +01:00
window.py Window: show unfullscreen button on button and touch events 2012-10-23 16:14:13 +02:00
xocolor.py Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 2011-12-13 17:19:52 -03:00