]> Pileus Git - ~andy/gtk/log
~andy/gtk
12 years agoRemove broken css-match-region-matches-star reftest
Matthias Clasen [Mon, 5 Mar 2012 20:34:46 +0000 (15:34 -0500)]
Remove broken css-match-region-matches-star reftest

12 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 5 Mar 2012 16:47:52 +0000 (17:47 +0100)]
Updated Slovenian translation

12 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Mon, 5 Mar 2012 13:18:09 +0000 (21:18 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

12 years agoBump glib dep to 2.31.20
Matthias Clasen [Mon, 5 Mar 2012 13:15:54 +0000 (08:15 -0500)]
Bump glib dep to 2.31.20

Needed for --valist-marshallers

12 years agoFix symbol lists
Matthias Clasen [Mon, 5 Mar 2012 12:17:59 +0000 (07:17 -0500)]
Fix symbol lists

12 years agoAdd custom va_marshallers in some places
Alexander Larsson [Mon, 5 Mar 2012 11:39:09 +0000 (12:39 +0100)]
Add custom va_marshallers in some places

This is a slight performance optimization in the common case.

12 years agoUpdate for 3.3.18
Matthias Clasen [Mon, 5 Mar 2012 11:07:02 +0000 (06:07 -0500)]
Update for 3.3.18

12 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 5 Mar 2012 09:55:10 +0000 (10:55 +0100)]
Updated Spanish translation

12 years agogdk: Remove an unused enumeration
Matthias Clasen [Mon, 5 Mar 2012 01:05:08 +0000 (20:05 -0500)]
gdk: Remove an unused enumeration

We don't have any API using the GdkExtensionMode enumeration, so
no point in carrying it in the headers.

12 years agoscrolledwindow: Fix scroll event handling
Matthias Clasen [Mon, 5 Mar 2012 00:20:10 +0000 (19:20 -0500)]
scrolledwindow: Fix scroll event handling

Rewrite the code that deals with smooth scroll events to
be in terms of 'scroll units' as well.

12 years agorange: Straighten the wheel delta calculation
Matthias Clasen [Mon, 5 Mar 2012 00:15:32 +0000 (19:15 -0500)]
range: Straighten the wheel delta calculation

Scroll events report normalized deltas in terms of an abstract
'scroll unit' now, so our job is to determine a suitable scroll
unit here. Since we are changing the value of the adjustment,
the allocation of the widget does not factor into this at all.

12 years agoxi2: Normalize scroll deltas
Matthias Clasen [Mon, 5 Mar 2012 00:12:27 +0000 (19:12 -0500)]
xi2: Normalize scroll deltas

XI2 provides us with an increment for each scroll valuator,
and by dividing the delta by the increment, we obtain normalized
values in some abstract 'scroll unit'.

For mouse wheels, the evdev driver reports an increment of -1,
so doing this division fixes the inverted scrolling with wheels
that we've seen recently.

12 years agogrid: Work harder for tight homogeneous allocation
Matthias Clasen [Sun, 4 Mar 2012 22:19:16 +0000 (17:19 -0500)]
grid: Work harder for tight homogeneous allocation

When doing homogeneous allocation in the presence of
overlapping spanning children, we need to avoid uneven
line allocations, otherwise, the final homogenization
will blow up the size request of the grid.

https://bugzilla.gnome.org/show_bug.cgi?id=671170

12 years agoUpdated Polish translation
Piotr Drąg [Sun, 4 Mar 2012 21:39:03 +0000 (22:39 +0100)]
Updated Polish translation

12 years agoUpdated POTFILES.in
Piotr Drąg [Sun, 4 Mar 2012 21:35:26 +0000 (22:35 +0100)]
Updated POTFILES.in

12 years agoUpdated Galician translations
Fran Diéguez [Sun, 4 Mar 2012 19:11:23 +0000 (20:11 +0100)]
Updated Galician translations

12 years agoUpdated Slovenian translation
Martin Srebotnjak [Sun, 4 Mar 2012 19:06:29 +0000 (20:06 +0100)]
Updated Slovenian translation

12 years agoUpdated Slovenian translation
Martin Srebotnjak [Sun, 4 Mar 2012 19:06:11 +0000 (20:06 +0100)]
Updated Slovenian translation

12 years agoFree the resource file string.
Paolo Borelli [Sun, 4 Mar 2012 16:51:07 +0000 (17:51 +0100)]
Free the resource file string.

12 years agocolorscale: Select for touch events
Matthias Clasen [Sun, 4 Mar 2012 16:22:44 +0000 (11:22 -0500)]
colorscale: Select for touch events

We use long touches to trigger the popup.

12 years agocolorplane: Select for touch events
Matthias Clasen [Sun, 4 Mar 2012 16:21:36 +0000 (11:21 -0500)]
colorplane: Select for touch events

We now use long touches to trigger the popup.

12 years agogtk: Be more careful when ignoring touch events
Matthias Clasen [Sun, 4 Mar 2012 16:20:02 +0000 (11:20 -0500)]
gtk: Be more careful when ignoring touch events

12 years agogdk: Don't drop the emulating_pointer flag
Matthias Clasen [Sun, 4 Mar 2012 16:17:30 +0000 (11:17 -0500)]
gdk: Don't drop the emulating_pointer flag

When manually copying touch events, we must not forget the
emulating_pointer flag.

12 years agoUpdated Korean translation
Changwoo Ryu [Sun, 4 Mar 2012 09:46:36 +0000 (18:46 +0900)]
Updated Korean translation

12 years agoUpdated Korean translation
Changwoo Ryu [Sun, 4 Mar 2012 09:22:13 +0000 (18:22 +0900)]
Updated Korean translation

12 years agox11: Simplify XI2 mods state
Bastien Nocera [Wed, 29 Feb 2012 16:18:57 +0000 (16:18 +0000)]
x11: Simplify XI2 mods state

https://bugzilla.gnome.org/show_bug.cgi?id=671070

12 years agox11: Correct GroupSwitch mask
Bastien Nocera [Wed, 29 Feb 2012 16:15:10 +0000 (16:15 +0000)]
x11: Correct GroupSwitch mask

base | latched | locked is incorrect for the group mask,
and the clamping has already been applied.

https://bugzilla.gnome.org/show_bug.cgi?id=671070

12 years agoUpdated Bulgarian translation
Alexander Shopov [Sun, 4 Mar 2012 06:01:00 +0000 (08:01 +0200)]
Updated Bulgarian translation

12 years agocolorchooser: Allow removing the palettes again
Christian Persch [Sun, 4 Mar 2012 05:28:08 +0000 (00:28 -0500)]
colorchooser: Allow removing the palettes again

https://bugzilla.gnome.org/show_bug.cgi?id=671057

12 years agoBreak out press-and-hold code as its own object
Matthias Clasen [Sun, 4 Mar 2012 04:42:54 +0000 (23:42 -0500)]
Break out press-and-hold code as its own object

https://bugzilla.gnome.org/show_bug.cgi?id=671057

12 years agoUploaded Ukranian
Daniel Korostil [Sun, 4 Mar 2012 02:16:21 +0000 (04:16 +0200)]
Uploaded Ukranian

12 years agoUpdated Hungarian translation
Gabor Kelemen [Sun, 4 Mar 2012 01:11:07 +0000 (02:11 +0100)]
Updated Hungarian translation

12 years agoUpdated Polish translation
Piotr Drąg [Sat, 3 Mar 2012 22:30:51 +0000 (23:30 +0100)]
Updated Polish translation

12 years agoUploaded Ukranian
Daniel Korostil [Sat, 3 Mar 2012 22:07:42 +0000 (00:07 +0200)]
Uploaded Ukranian

12 years agoiconview: Fix autoscroll
Benjamin Otte [Sat, 3 Mar 2012 20:17:32 +0000 (21:17 +0100)]
iconview: Fix autoscroll

... when the iconview is not the only child in it's parent GdkWindow.

12 years agocelllayout: Remove unused include
Benjamin Otte [Sat, 3 Mar 2012 18:44:31 +0000 (19:44 +0100)]
celllayout: Remove unused include

12 years agotypes: Move GtkAdustment declaration to gtktypes.h
Benjamin Otte [Sat, 3 Mar 2012 18:41:55 +0000 (19:41 +0100)]
types: Move GtkAdustment declaration to gtktypes.h

... and make all the headers to not include gtkadjustment.h anymore. Of
course, also include it in the source files instead.

12 years agotypes: Clean up gtkwidget.h includes
Benjamin Otte [Sat, 3 Mar 2012 18:22:22 +0000 (19:22 +0100)]
types: Clean up gtkwidget.h includes

In particular gtksettings.h and gtkstylecontext.h needed to be included
in lots of places now.

Also, I order the includes alphabetically in a bunch of headers.

12 years agotypes: Move widget types into gtktypes.h
Benjamin Otte [Sat, 3 Mar 2012 17:48:56 +0000 (18:48 +0100)]
types: Move widget types into gtktypes.h

12 years agogtk: Add gtktypes.h
Benjamin Otte [Sat, 3 Mar 2012 17:42:15 +0000 (18:42 +0100)]
gtk: Add gtktypes.h

So far, the files is empty.

12 years agoUpdated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 3 Mar 2012 15:29:44 +0000 (22:29 +0700)]
Updated Vietnamese translation

12 years agopo/vi: import from Damned Lies
Nguyễn Thái Ngọc Duy [Sat, 3 Mar 2012 15:13:13 +0000 (22:13 +0700)]
po/vi: import from Damned Lies

12 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Sat, 3 Mar 2012 14:58:02 +0000 (15:58 +0100)]
Updated Basque language

12 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Sat, 3 Mar 2012 14:11:00 +0000 (15:11 +0100)]
Updated Basque language

12 years agocolorswatch: Support touch events
Matthias Clasen [Sat, 3 Mar 2012 06:48:55 +0000 (01:48 -0500)]
colorswatch: Support touch events

Support long press for customizing, and short press for
selecting/activating. This is simpler than the generic
press-and-hold support in the multitouch branch; we don't
display any feedback, and the timeout is currently hardcoded
to 1 second.

12 years agogdk: Emulate motion events when requested
Matthias Clasen [Sat, 3 Mar 2012 04:33:16 +0000 (23:33 -0500)]
gdk: Emulate motion events when requested

GtkRange was using GDK_POINTER_MOTION_MASK, and it was not
getting any emulated motion events, because we only translate
from GDK_BUTTON_MOTION_MASK to GDK_POINTER_MOTION_MASK, but not
the other way around, and emulated_mask only had
GDK_BUTTON_MOTION_MASK in it. Now we put GDK_POINTER_MOTION_MASK
in emulated_mask and successfully match for windows that
have GDK_POINTER_MOTION_MASK or any of the button motion masks
selected.

This fixes range sliders not following the finger and jumping
to the last position upon release.

12 years agopathbar: Fix scrolling
Matthias Clasen [Sat, 3 Mar 2012 03:53:22 +0000 (22:53 -0500)]
pathbar: Fix scrolling

We need to select for scroll events on the buttons now, selecting
for button events no longer gives us scrolling as a side-effect.

12 years agoxi2: Add some more debug output about scroll devices
Matthias Clasen [Sat, 3 Mar 2012 03:53:03 +0000 (22:53 -0500)]
xi2: Add some more debug output about scroll devices

12 years agopathbar: Fix gcc warning
Benjamin Otte [Sat, 3 Mar 2012 03:09:28 +0000 (04:09 +0100)]
pathbar: Fix gcc warning

12 years agoUpdated Hungarian translation
Gabor Kelemen [Fri, 2 Mar 2012 23:39:05 +0000 (00:39 +0100)]
Updated Hungarian translation

12 years agoUpdated Hungarian translation
Gabor Kelemen [Fri, 2 Mar 2012 23:39:00 +0000 (00:39 +0100)]
Updated Hungarian translation

12 years agoIconification using _NET_WM_STATE_HIDDEN hint if supported by WM
Mikael Magnusson [Tue, 21 Feb 2012 16:14:16 +0000 (17:14 +0100)]
Iconification using _NET_WM_STATE_HIDDEN hint if supported by WM

If the Window Manager supports the _NET_WM_STATE_HIDDEN, we use it to use
the _NET_WM_STATE protocol when de-iconifying windows (iconification is
unchanged, via XIconifyWindow). Additionally, we no longer interpret all
UnmapNotify events for our window as the result of iconification.

(Based on patch by Tomas Frydrych <tf@linux.intel.com>)

12 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Fri, 2 Mar 2012 19:31:46 +0000 (20:31 +0100)]
Updated POTFILES.in and POTFILES.skip

12 years agoAnnotate gdk_window_get_frame_extents
Paolo Borelli [Wed, 29 Feb 2012 18:40:41 +0000 (19:40 +0100)]
Annotate gdk_window_get_frame_extents

"rect" is an output parameter

12 years agoimage: handle PROP_STORAGE_TYPE in get_property()
Cosimo Cecchi [Fri, 2 Mar 2012 17:47:59 +0000 (12:47 -0500)]
image: handle PROP_STORAGE_TYPE in get_property()

Fallout from GtkIconHelper transition.

12 years agoGtkColorChooser: Correct the signal registration
Murray Cumming [Fri, 2 Mar 2012 17:29:33 +0000 (18:29 +0100)]
GtkColorChooser: Correct the signal registration

12 years agoxi2: add some debug output for smooth scroll events
Matthias Clasen [Fri, 2 Mar 2012 14:55:55 +0000 (09:55 -0500)]
xi2: add some debug output for smooth scroll events

12 years agogtk-demo: fix the colorsel example
Matthias Clasen [Fri, 2 Mar 2012 14:37:10 +0000 (09:37 -0500)]
gtk-demo: fix the colorsel example

It is necessary to hide the dialog on "response", else it won't
go away.

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 2 Mar 2012 13:19:25 +0000 (14:19 +0100)]
Updated Spanish translation

12 years agoRequire XInput2.h in X11 backend
Javier Jardón [Fri, 2 Mar 2012 12:52:12 +0000 (12:52 +0000)]
Require XInput2.h in X11 backend

Also remove support for XInput.h

12 years agoreftests: Add a rendering test for sibling matching
Benjamin Otte [Fri, 2 Mar 2012 01:16:30 +0000 (02:16 +0100)]
reftests: Add a rendering test for sibling matching

12 years agotests: Add parsing tests for sibling selectors
Benjamin Otte [Fri, 2 Mar 2012 01:05:26 +0000 (02:05 +0100)]
tests: Add parsing tests for sibling selectors

12 years agoselector: Add sibling seletors
Benjamin Otte [Fri, 2 Mar 2012 01:04:15 +0000 (02:04 +0100)]
selector: Add sibling seletors

"a + b" and "a ~ b" selectors now work, provided the widget supports
siblings.

12 years agoselector: Pass the sibling id around all the time
Benjamin Otte [Fri, 2 Mar 2012 00:27:11 +0000 (01:27 +0100)]
selector: Pass the sibling id around all the time

The reason for this will become apparent with the followup patches.

12 years agoselector: Redo from list to array
Benjamin Otte [Thu, 1 Mar 2012 17:33:33 +0000 (18:33 +0100)]
selector: Redo from list to array

Should save ~30% of memory

12 years agoselector: Introduce gtk_css_selector_previous()
Benjamin Otte [Thu, 1 Mar 2012 16:40:19 +0000 (17:40 +0100)]
selector: Introduce gtk_css_selector_previous()

12 years agotests: Add a test for using the same selector multiple times
Benjamin Otte [Thu, 1 Mar 2012 15:39:52 +0000 (16:39 +0100)]
tests: Add a test for using the same selector multiple times

12 years agocss: Rewrite selectors
Benjamin Otte [Thu, 16 Feb 2012 14:16:18 +0000 (15:16 +0100)]
css: Rewrite selectors

Previously we kept a Selector object for every "simple selector" (term
from CSS spec). Now we keep one for every match operation. So given the
selector
  ".a b:focus"
we will have 4 elements:
  - pseudoclass ":focus"
  - element "b"
  - match any desendant (the space)
  - class ".a"
Each of those is represented by a "selector class" which is basically
the collection of vfuncs for this selector.

12 years agoselector: Remove a misleading error message
Benjamin Otte [Wed, 15 Feb 2012 16:18:22 +0000 (17:18 +0100)]
selector: Remove a misleading error message

Duplicate selectors are indeed fine and shouldn't cause errors.
You want to use them to up specificity.

12 years agocss: Move selector parsing code into a custom function
Benjamin Otte [Wed, 15 Feb 2012 14:42:00 +0000 (15:42 +0100)]
css: Move selector parsing code into a custom function

12 years agoQuartz: Fix incompatible types in assignment
John Ralls [Fri, 2 Mar 2012 01:00:35 +0000 (17:00 -0800)]
Quartz: Fix incompatible types in assignment

NSEvent -scrollingDeltaX and -scrollingDeltaY aren't defined before
10.7, so objc assumes that they return a pointer. Trying to cast to a
float generates a compiler error.

12 years agoFix compile error from splitting bitmask code
John Ralls [Thu, 1 Mar 2012 20:08:57 +0000 (12:08 -0800)]
Fix compile error from splitting bitmask code

GtkBitMask was typedef'd twice.

12 years agoBug 655065 Build failure on OS X 10.7 Lion
John Ralls [Thu, 1 Mar 2012 20:04:25 +0000 (12:04 -0800)]
Bug 655065 Build failure on OS X 10.7 Lion

Remove LDDADS and setting each object file's LDDAD to it; just set a global LDDAD.

12 years agoUpdated Serbian translation
Мирослав Николић [Thu, 1 Mar 2012 21:53:57 +0000 (22:53 +0100)]
Updated Serbian translation

12 years agoFix build with XI2.x for x < 2
Matthias Clasen [Thu, 1 Mar 2012 21:45:23 +0000 (16:45 -0500)]
Fix build with XI2.x for x < 2

12 years agorange: Use the correct size for scaling
Matthias Clasen [Wed, 29 Feb 2012 04:02:01 +0000 (23:02 -0500)]
range: Use the correct size for scaling

When scaling the scroll delta, always use the 'large' dimension
of a range widget. When dx was 0, the code code accidentally
use the small dimension.

12 years agogdk,xi2: Ensure scroll valuators are reset on window/device switch
Carlos Garnacho [Thu, 23 Feb 2012 17:24:37 +0000 (18:24 +0100)]
gdk,xi2: Ensure scroll valuators are reset on window/device switch

This is in order to avoid scrolling glitches as the device causing
scrolling to happen or the Window receiving the events changes.

12 years agoscalebutton: Set GDK_SCROLL_MASK explicitly
Carlos Garnacho [Thu, 23 Feb 2012 13:47:13 +0000 (14:47 +0100)]
scalebutton: Set GDK_SCROLL_MASK explicitly

selecting for button press/release doesn't suffice anymore to
get scroll events.

12 years agospinbutton: Set GDK_SCROLL_MASK explicitly
Carlos Garnacho [Thu, 23 Feb 2012 13:46:47 +0000 (14:46 +0100)]
spinbutton: Set GDK_SCROLL_MASK explicitly

selecting for button press/release doesn't suffice anymore to
get scroll events.

12 years agocalendar: Set GDK_SCROLL_MASK explicitly
Carlos Garnacho [Thu, 23 Feb 2012 13:45:18 +0000 (14:45 +0100)]
calendar: Set GDK_SCROLL_MASK explicitly

selecting for button press/release doesn't suffice anymore to
get scroll events.

12 years agomenu: Handle smooth scrolling
Carlos Garnacho [Thu, 23 Feb 2012 13:14:33 +0000 (14:14 +0100)]
menu: Handle smooth scrolling

event->scroll.delta_y will be used to scroll the menu contents,
GDK_SMOOTH_SCROLL_MASK has been set as well

12 years agoviewport: set GDK_SMOOTH_SCROLL_MASK
Carlos Garnacho [Tue, 24 Jan 2012 11:18:45 +0000 (12:18 +0100)]
viewport: set GDK_SMOOTH_SCROLL_MASK

This is so smooth scroll events are send/handled by the
parent GtkScrolledWindow if any.

12 years agotreeview: set GDK_SMOOTH_SCROLL_MASK
Carlos Garnacho [Tue, 24 Jan 2012 11:18:27 +0000 (12:18 +0100)]
treeview: set GDK_SMOOTH_SCROLL_MASK

This is so smooth scroll events are send/handled by the
parent GtkScrolledWindow if any.

12 years agolayout: set GDK_SMOOTH_SCROLL_MASK
Carlos Garnacho [Tue, 24 Jan 2012 11:17:42 +0000 (12:17 +0100)]
layout: set GDK_SMOOTH_SCROLL_MASK

This is so smooth scroll events are send/handled by the
parent GtkScrolledWindow if any.

12 years agoiconview: set GDK_SMOOTH_SCROLL_MASK
Carlos Garnacho [Tue, 24 Jan 2012 11:16:08 +0000 (12:16 +0100)]
iconview: set GDK_SMOOTH_SCROLL_MASK

This is so smooth scroll events are send/handled by the
parent GtkScrolledWindow if any.

12 years agogtk: Implement smooth scrolling in scrolledwindow/range
Michael Natterer [Tue, 24 Jan 2012 11:12:34 +0000 (12:12 +0100)]
gtk: Implement smooth scrolling in scrolledwindow/range

If delta_x/y information is provided in scroll events, use it
to modify the underlying adjustment in steps proportional to
the deltas provided.

If the child widget of a scrolledwindow doesn't set
GDK_SMOOTH_SCROLL_MASK, regular scroll events will be dispatched,
and still handled by these 2 widgets.

12 years agodevicemanager,xi2: Implement smooth scrolling
Carlos Garnacho [Mon, 23 Jan 2012 23:49:52 +0000 (00:49 +0100)]
devicemanager,xi2: Implement smooth scrolling

XInput >= 2.1 allows for implementing smooth scrolling,
reporting the different scrolling axes as valuators.
Any change in those will be reported as GdkEventScroll
events with delta_x/y information.

the older kind of scroll events is still handled, and
emulated in devices able to provide smooth scrolling,
setting _gdk_event_set_pointer_emulated() in that case.

12 years agodevicemanager,x11: Initialize event->scroll.delta_x/y to 0 on core events
Carlos Garnacho [Mon, 23 Jan 2012 23:46:43 +0000 (00:46 +0100)]
devicemanager,x11: Initialize event->scroll.delta_x/y to 0 on core events

12 years agoquartz: Implement smooth scrolling
Michael Natterer [Mon, 23 Jan 2012 23:41:49 +0000 (00:41 +0100)]
quartz: Implement smooth scrolling

nsevent scrollingDeltaX/Y (available on OSX >= Lion) is used to
provide the smooth scrolling values. In any case, old fashioned
events are still sent, setting _gdk_event_set_pointer_emulated()
if the event contains both smooth and non-smooth values.

12 years agogdk: update csw event mask filter to handle smooth scroll
Carlos Garnacho [Mon, 23 Jan 2012 23:28:25 +0000 (00:28 +0100)]
gdk: update csw event mask filter to handle smooth scroll

Events of type GDK_SCROLL will be received if the client side window
event mask has either GDK_SCROLL_MASK or GDK_SMOOTH_SCROLL_MASK.

GDK_BUTTON_PRESS_MASK has been removed from type_masks[GDK_SCROLL]
as that bit is often set for other-than-scrolling purposes, and
yet have the window receive scroll events. In GTK+, this forces
non-smooth events bubbling, even if the widgets above want smooth
events, and legitimately set GDK_[SMOOTH_]SCROLL_MASK.

12 years agogdk: Filter out either smooth or non-smooth event depending on the evmask
Carlos Garnacho [Mon, 23 Jan 2012 23:09:40 +0000 (00:09 +0100)]
gdk: Filter out either smooth or non-smooth event depending on the evmask

If a device provides both smooth and non-smooth events, the latter will be
flagged with _gdk_event_set_pointer_emulated() so the client side window
receives one or the other. If a device is only able to deliver non-smooth
events, those will be sent, so both direction/deltas may need to be handled.

12 years agogdk: Add GDK_SMOOTH_SCROLL_MASK
Carlos Garnacho [Mon, 23 Jan 2012 23:05:39 +0000 (00:05 +0100)]
gdk: Add GDK_SMOOTH_SCROLL_MASK

By setting this event, a GdkWindow will receive scroll events
that provide delta values.

12 years agogdk: transfer event->scroll.delta_x/y through csw
Michael Natterer [Mon, 23 Jan 2012 23:01:39 +0000 (00:01 +0100)]
gdk: transfer event->scroll.delta_x/y through csw

12 years agogdk: deal with GDK_SMOOTH_SCROLL events as not having a direction
Carlos Garnacho [Mon, 23 Jan 2012 22:51:24 +0000 (23:51 +0100)]
gdk: deal with GDK_SMOOTH_SCROLL events as not having a direction

gdk_event_get_scroll_direction() will return FALSE on these, so
gdk_event_get_scroll_deltas() has to be used to retrieve dx/dy

12 years agogdk: Add delta_x/y to scroll events
Michael Natterer [Mon, 23 Jan 2012 22:37:44 +0000 (23:37 +0100)]
gdk: Add delta_x/y to scroll events

gdk_event_get_scroll_deltas() can be used to retrieve those
values on smooth scroll events.

12 years agogdk: Add GDK_SCROLL_SMOOTH to GdkScrollDirection
Carlos Garnacho [Mon, 23 Jan 2012 22:45:26 +0000 (23:45 +0100)]
gdk: Add GDK_SCROLL_SMOOTH to GdkScrollDirection

This value will be used for smooth scroll events, as they'll
express the scrolling direction in terms of dx/dy.

12 years agogdk: Get the right event window for pointer emulated events
Carlos Garnacho [Mon, 27 Feb 2012 12:09:59 +0000 (13:09 +0100)]
gdk: Get the right event window for pointer emulated events

get_event_window() just checked on GDK_TOUCH_MASK, including for emulated
pointer events, so at the very least those should also match evmasks with
no touch events whatsoever

12 years agogdk: Set correct GdkModifierType on pointer emulated events
Carlos Garnacho [Mon, 27 Feb 2012 12:08:38 +0000 (13:08 +0100)]
gdk: Set correct GdkModifierType on pointer emulated events

12 years agogdk: translate correctly from touch events into emulated pointer events
Carlos Garnacho [Mon, 27 Feb 2012 11:32:01 +0000 (12:32 +0100)]
gdk: translate correctly from touch events into emulated pointer events

12 years agogdk: Don't treat touch events as button events
Matthias Clasen [Sun, 26 Feb 2012 05:04:39 +0000 (00:04 -0500)]
gdk: Don't treat touch events as button events

One more place where we assumed that touch events have a button
field.