Carlos Garnacho
d77977aa62
scrolledwindow: add another shortcut to bypass event capture
...
When clicked again close to the previous button press location
(assuming it had ~0 movement), the scrolled window wil allow
the child to handle the events immediately.
This is so the user doesn't have to wait to the p-a-h timeout
in order to operate on the scrolledwindow child.
2012-02-18 17:48:46 +01:00
Carlos Garnacho
da35350ee3
scrolledwindow: Only do kinetic scrolling on touch devices
...
This is sort of meaningless on pointer devices, besides it implies
a different input event handling on child widgets that's unnecessary
there.
2012-02-18 17:48:46 +01:00
Carlos Garnacho
40996af9c1
scrolledwindow: Don't crash on 0-sized motion buffer
2012-02-18 17:48:46 +01:00
Carlos Garnacho
7e29b38bd4
scrolledwindow: Set also a GTK+ grab on p-a-h scrolling
...
This is so the widget is ensured to receive the events
regardless of the pointer position.
2012-02-18 17:48:46 +01:00
Carlos Garnacho
c1b86a5eab
scrolledwindow: Add GdkDevice parameter to ::press-and-hold handler
2012-02-18 17:48:46 +01:00
Carlos Garnacho
68587c203c
gtk: Handle press-and-hold for touch devices
...
Also, only react to the first button
2012-02-18 17:48:46 +01:00
Carlos Garnacho
80e08d1b1b
gtk: Add a GdkDevice parameter to ::press-and-hold
...
This would be useful when popping up menus, just so we
know what device to trigger it for.
2012-02-18 17:48:46 +01:00
Carlos Garnacho
0a05318277
gtk: Clean up press-and-hold code
...
The press and hold animation now fully relies on style context
transitions, finishing the p-a-h operation right after it
finishes. There's also no need to connect to ::drag-begin as
::grab-notify will also tell when a grab begins.
2012-02-18 17:48:45 +01:00
Carlos Garnacho
5c187245a4
tests: Add an entry to testpressandhold
...
Useful for checking behavior while selecting,
starting drags, subwindows...
2012-02-18 17:48:45 +01:00
Carlos Garnacho
739059cc91
entry: Handle ::grab-notify
...
Store the device, and unset private fields whenever the device
is shadowed by another GTK+ grab, so popping up menus while
selecting (i.e. press-and-hold) doesn't leave it in a confused
state.
2012-02-18 17:48:45 +01:00
Carlos Garnacho
86e966b944
gtk: Do not use deprecated APIs on press-and-hold
2012-02-18 17:48:45 +01:00
Carlos Garnacho
ef08d3975c
tests: Update testkineticscrolling to use GtkGrid
2012-02-18 17:48:45 +01:00
Carlos Garnacho
c50007b33a
gtk: connect to grab-notify for press and hold
...
This is so press and hold is cancelled if a click actually
causes an inner widget to do a GTK+ grab.
2012-02-18 17:48:45 +01:00
Carlos Garnacho
9f20e16683
gtk: Propagate ::captured-event up the hierarchy for crossing events
2012-02-18 17:48:45 +01:00
Carlos Garnacho
4f2ce2f7b6
gtk: emit ::captured-event starting from the GTK grab widget
2012-02-18 17:48:45 +01:00
Carlos Garcia Campos
a404a56254
scrolledwindow: Allow selections and drag-and-drop when kinetic scrolling is enabled
...
If the scrolling doesn't start after a long press, the scrolling is
cancelled and events are handled by child widget normally.
2012-02-18 17:48:45 +01:00
Carlos Garcia Campos
7a59b443ee
Add GtkWidget::press-and-hold signal
...
Press-and-hold signal is emitted when the mouse button is pressed for a
given amount of time, specified in the new "press-and-hold-timeout"
GtkSetting. It's commonly used in mobile platforms to emulate a right
click to show a context menu. This patch is based on previous patches by
Kristian Rietveld and Danielle Madeley.
https://bugzilla.gnome.org/show_bug.cgi?id=315645
2012-02-18 17:48:45 +01:00
Carlos Garnacho
127bfd71d7
gtksettings: Set animation for press-and-hold through GtkStyleProvider
...
The "gtk-press-and-hold-timeout" setting has also been added, to control
its duration.
2012-02-18 17:48:45 +01:00
Carlos Garnacho
35341511b9
themingengine: Implement press-and-hold notification renderer
...
gtk_render_activity() uses it for the GTK_STYLE_CLASS_PRESS_AND_HOLD
style class.
2012-02-18 17:48:45 +01:00
Carlos Garcia Campos
65888ac515
scrolledwindow: Add auto-hide-scrollbars style property
...
To hide the scrollbars in kinetic mode when not scrolling.
2012-02-18 17:48:45 +01:00
Carlos Garcia Campos
313f51d1f8
tests: Add new test for kinetic scrolling
2012-02-18 17:48:44 +01:00
Carlos Garcia Campos
5ddf0f4e5f
test: Add checkbox to enable/disable kinetic scrolling in scrolled window test
2012-02-18 17:48:44 +01:00
Carlos Garcia Campos
5e726db14e
scrolledwindow: Initial kinetic scrolling support
2012-02-18 17:48:44 +01:00
Carlos Garcia Campos
705dde471f
timeline: Add _gtk_timeline_get_elapsed_time()
...
To get the time in milliseconds since the last frame
2012-02-18 17:48:44 +01:00
Carlos Garcia Campos
d83640dc34
Add GtkWidget::captured-event signal
...
https://bugzilla.gnome.org/show_bug.cgi?id=641836
2012-02-18 17:48:44 +01:00
Carlos Garnacho
ed20c3255b
gdk: Add GDK_SOURCE_TOUCH
...
This device source applies to touch capable devices, most
notably touchscreens.
2012-02-18 17:48:44 +01:00
Yaron Shahrabani
0a189935ad
Updated Hebrew translation
2012-02-18 14:59:12 +02:00
Yaron Shahrabani
1f5681e419
Updated Hebrew translation.
2012-02-18 14:42:42 +02:00
Cosimo Cecchi
8dd4a0adf1
color-swatch: don't render our active badge if background-image is set
...
If the color active swatch has been set a background image from the
theme, use it as an asset, and do not draw our custom thing.
2012-02-18 09:55:45 +01:00
Cosimo Cecchi
dcec8dfdde
color-swatch: render a background if the swatch doesn't have a color
...
We still want to call into the background rendering code, to draw the
default background.
2012-02-18 09:55:45 +01:00
Cosimo Cecchi
8e85702dca
color-swatch: derive directly from GtkWidget
...
Instead of GtkDrawingArea, since that calls in realize
gtk_style_context_set_background(). We don't want that to happen, given
that we do all the painting ourselves in _draw().
2012-02-18 09:55:45 +01:00
Chao-Hsiung Liao
b58d50a0da
Updated Traditional Chinese translation(Hong Kong and Taiwan)
2012-02-18 08:49:57 +08:00
Daniel Mustieles
1578585c08
Updated Spanish translation
2012-02-17 18:02:22 +01:00
Daniel Mustieles
a18b3f2ed4
Updated Spanish translation
2012-02-17 17:50:13 +01:00
Cosimo Cecchi
039eb8dc04
color-editor: mark the GtkColorSwatch as not selectable
2012-02-17 17:03:15 +01:00
Cosimo Cecchi
5f0c4fc20f
color-swatch: add a "selectable" property to GtkColorSwatch
...
We don't want e.g. the swatch in GtkColorEditor to get the select badge
when it's clicked, so make this a property (on by default).
2012-02-17 17:03:15 +01:00
Fran Diéguez
04b36dabd0
Updated Galician translations
2012-02-16 15:00:06 +01:00
Claudio Saavedra
cfe65a0d6c
GtkNotebook: and another fix
...
https://bugzilla.gnome.org/show_bug.cgi?id=669116
2012-02-16 12:33:26 +02:00
Claudio Saavedra
ccf7867c35
GtkNotebook: fix one child-notify emission
...
Forgot to increase the counter in the for loop, doing it now.
https://bugzilla.gnome.org/show_bug.cgi?id=669116
2012-02-16 12:28:46 +02:00
Benjamin Otte
bf89bc624b
widget-factory: Don't crash when showing about dialog
2012-02-15 15:14:31 +01:00
Javier Jardón
392fdff8e5
docs: GtkWidget's "state-flags-changed" is a signal not a property
2012-02-15 13:43:58 +00:00
Daniel Mustieles
444f562955
Updated Spanish translation
2012-02-15 13:11:35 +01:00
Daniel Mustieles
db8555ed31
Updated Spanish translation
2012-02-15 13:05:43 +01:00
Daniel Mustieles
cc1b29cd67
Updated Spanish translation
2012-02-15 13:01:13 +01:00
Murray Cumming
a0b4ab109d
Documentation: Correct references to properties.
...
These should use :, not ::, though signals would use ::.
See
http://developer.gnome.org/gtk-doc-manual/unstable/documenting_syntax.html.en
and
http://developer.gnome.org/gtk-doc-manual/unstable/documenting_symbols.html.en
2012-02-15 11:43:33 +01:00
Rico Tzschichholz
87d979f498
Remove obsolete reference to gtk.css.raleigh
2012-02-15 08:03:05 +01:00
Matthias Clasen
f9be52cb2f
Add color and font chooser to the widget gallery
2012-02-14 23:48:36 -05:00
Matthias Clasen
fae1be06cd
Docs: Reorder a sections
2012-02-14 23:36:02 -05:00
Matthias Clasen
e1a625aa78
GtkColorSwatch: Add accessible actions
2012-02-14 21:16:52 -05:00
Claudio Saavedra
347328adb0
GtkNotebook: emit child-notify::position on drag 'n drop reorder
...
https://bugzilla.gnome.org/show_bug.cgi?id=669116
2012-02-15 01:05:12 +02:00