Debarshi Ray
60cee7339f
GtkBuilder: Enforce "class" as a mandatory attribute for <object>
...
https://bugzilla.gnome.org/show_bug.cgi?id=786931
2017-09-25 15:26:34 +02:00
Daniel Boles
00f8a11aec
Label: Replace allow-none with nullable/optional
2017-09-24 19:32:19 +01:00
Timm Bäder
da701ede91
emojichooser: Plug a memory leak
2017-09-24 18:15:41 +02:00
Matthias Clasen
88664f7ccb
Fix a typo
2017-09-21 22:53:49 -04:00
Daniel Boles
c0fdf522dd
ToolItem: Fix nullable annotation put on wrong arg
...
D’oh
2017-09-20 23:55:15 +01:00
Daniel Boles
761194dad7
Overlay: Document style classes added per position
2017-09-20 19:19:25 +01:00
Carlos Garnacho
e0a3c9d2de
gtkmain: Ensure to emit real GDK_LEAVE_NOTIFY events.
...
If we got a GDK_LEAVE_NOTIFY event from GDK, we would reset the
GtkPointerFocus, but the event would be silently consumed.
2017-09-19 18:40:51 +02:00
Carlos Garnacho
44cb3ccfa1
gdk: Remove motion hints
...
Motion hints are now literally a thing of the past. Everything should be
using the full motion event stream.
2017-09-19 18:40:51 +02:00
Carlos Garnacho
a9988e18b0
gtk: Remove 2BUTTON and 3BUTTON events and event types
...
Those should be interpreted by widget-local gestures, not guessed at a
high level with no notions of the specific context. Users will want
GtkGestureMultiPress to replace these events.
2017-09-19 18:40:50 +02:00
Carlos Garnacho
1f91ca0cec
gtklistbox: Remove enter/leave/motion event handlers
...
Those worked similarly to those in GtkFlowBox, but would additionally
handle "active" state for child rows. Simplify this to just enabling/
disabling active state on gesture press/release, we don't get the
nice state updates when hovering around with a mouse button pressed,
but the rationale from flowbox applies here, and makes a nice cleanup.
2017-09-19 18:40:50 +02:00
Carlos Garnacho
7d196db4c0
gtkcolorswatch: Remove enter/leave event handlers
...
Those just maintained prelight state, which is already managed internally.
2017-09-19 18:40:50 +02:00
Carlos Garnacho
9d5c04012e
gtkbutton: Remove enter/leave event handlers
...
They just maintain priv->in_button and widget state up-to-date, this
basically matters during user interaction, and is already maintained
in the gesture ::update handler. This seems to be sufficient.
2017-09-19 18:40:50 +02:00
Carlos Garnacho
c4d57f85f4
gtkflowbox: Drop crossing/motion event handlers
...
Those basically controlled priv->active_child_active, which would
1) trigger a redraw when the pointer enters/leaves it, and 2) ensure
that press/release happen on the same child for it to be activated.
The former is not necessary, and the latter can be simplified by
just checking again the child on the coordinates given by the
::release gesture handler. This makes all enter/leave/motion_notify
event handlers unneeded.
2017-09-19 18:40:50 +02:00
Carlos Garnacho
27a391bad8
gtkspinbutton: Remove motion notify handler
...
It does nothing nowadays.
2017-09-19 18:40:50 +02:00
Carlos Garnacho
b31029457b
gtkcalendar: Use scroll event controller
2017-09-19 18:40:50 +02:00
Carlos Garnacho
cf6ecc9095
gtkscrolledwindow: Use scroll event controller
...
All kinetic scrolling initial velocity calculations are now
taken from the scroll controller. The handling of timeouts
to snap back when overshooting has been also made to just
apply on devices that can't emit ::scroll-begin/end.
2017-09-19 18:40:50 +02:00
Carlos Garnacho
ad05caedd3
gtkspinbutton: Use scroll event controller
2017-09-19 18:40:50 +02:00
Carlos Garnacho
9a204921ae
gtkscalebutton: Use scroll event controller
2017-09-19 18:40:50 +02:00
Carlos Garnacho
861916fd0b
gtkrange: Use scroll event controller
2017-09-19 18:40:49 +02:00
Carlos Garnacho
f3474645c4
gtkpathbar: Use scroll event controller
2017-09-19 18:40:49 +02:00
Carlos Garnacho
d0e27ba760
gtkmenu: Use scroll event controller
2017-09-19 18:40:49 +02:00
Carlos Garnacho
215c4ed419
gtkcombobox: Use scroll event controller
2017-09-19 18:40:49 +02:00
Carlos Garnacho
c3fbd58916
gtk: Add GtkEventControllerScroll
...
This is a GtkEventController implementation to handle mouse
scrolling. It handles both smooth and discrete events and
offers a way for callers to tell their preference too, so
smooth events shall be accumulated and coalesced on request.
On capable devices, it can also emit ::scroll-begin and
::scroll-end enclosing all ::scroll events for a scroll
operation.
It also has builtin kinetic scrolling capabilities, reporting
the initial velocity for both axes after ::scroll-end if
requested.
2017-09-19 18:39:03 +02:00
Carlos Garnacho
f2ded6a685
gtk: Change gtk_propagate_event() to propagate both ways.
...
This change is made for consistency, it doesn't make sense to expose
one-way propagation, as it can only break expectations from GTK+. This
function might be made entirely private in the future, but it still
makes sense to do this in one go for our internal usecases.
2017-09-19 18:39:03 +02:00
Carlos Garnacho
c02d0f3c0a
eventcontroller: Drop event_mask API
...
This is unchecked, we can remove it entirely as well.
2017-09-19 18:39:03 +02:00
Carlos Garnacho
5b9287ed77
gtkwidget: Drop pointer emulation out of touch events
...
Users of touch events are required to either use a GtkGesture, or handle
touch events themselves.
2017-09-19 18:39:03 +02:00
Carlos Garnacho
8c350459ae
gtk: Run GtkWidgetClass event signals inside a GtkEventController
...
This will allow further cleanups and optimizations in capture/target/bubble
event delivery. For simplicity, ATM every widget will receive its own
GtkEventControllerLegacy, it could be desirable to add finer control over
this in the future, so widgets that fully use event controllers for input
management can do away without this legacy piece.
2017-09-19 18:39:03 +02:00
Matthias Clasen
880d44aa48
widget: Give up on GdkEvent api for now
2017-09-19 18:39:03 +02:00
Matthias Clasen
0ab20b6253
treeview: Give up on GdkEvent api for now
...
There's multiple places where events are manually generated
here, this needs more thought.
2017-09-19 18:39:03 +02:00
Matthias Clasen
d0c92fba69
entry accessible: Give up on GdkEvent api for now
...
Just include gdkeventsprivate.h here for now. This may be
resolved by just dropping icon support from GtkEntry down
the road.
2017-09-19 18:39:03 +02:00
Matthias Clasen
0554f6372b
a11y: Stop listening for configure events
...
This needs to be done differently.
2017-09-19 18:39:03 +02:00
Matthias Clasen
208a85c3fe
treev view column: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
56189fdb74
clipboard: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
efd287feb3
a11y: Use GdkEvent API in some places
...
More work needed.
2017-09-19 18:39:03 +02:00
Matthias Clasen
853602bf63
tooltip: Use GdkEvent API
...
And at the same time, reshuffle things slightly to avoid
creating synthetic events.
2017-09-19 18:39:03 +02:00
Matthias Clasen
96daf93821
text view: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
9c477951cb
text handle: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
aeaa42121f
selection: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
f43849901d
search bar: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
c7225bc8c1
scrolled window: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
7793e8f071
places view: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
5d5ae459c4
place sidebar: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
3b266de66c
path bar: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
75b16ac855
pad controller: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
ebc66eefa8
menu shell: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
d7ccf36d71
menu item: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
b99c3d33ec
im context simple: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
67489349a5
header bar: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
50701abcc3
gesture zoom: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
5430751644
gesture swipe: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
1a8f0686ca
gesture single: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
17832f9617
gesture rotate: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
b5b84e6abe
gesture drag: Use GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
7d6a2a832c
gesture: Use GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
9794dc5628
window accessible: Use GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
16781c8598
widget accessible: Use GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
c68c754f3e
settings: Convert to GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
7cbd35dd86
gesture rotate: Partially convert to GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
d20efc15a9
gesture: Partially convert to GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
6b4dfcadaf
flowbox: Convert to GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
c586a6486f
file chooser widget: Covert to GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
2246387d21
expander: Convert to GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
7ed6add550
entry: Convert to GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
067e209582
dnd: Convert to GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
c12a54a3ed
cell renderer accel: Convert to GdkEvent API
2017-09-19 18:39:02 +02:00
Matthias Clasen
01b993d1fb
bindings: Convert to use GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
63eecd3dfa
bindings: Partially update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
e5a3e95b8c
a11y: Partially update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
261fdad7ca
inspector: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
177f3ef655
gtkwindow: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
14a28224e4
treeview: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
b4f88e1544
tooltip: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
9f32f5f994
textview: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
35301530bb
texthandle: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
e2eb20208b
spinbutton: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
0a55573ca3
scrolledwindow: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
627a73cf57
scalebutton: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
e41844f751
recentchoooser: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
c0b77a2941
range: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
5785db64ce
popover: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
8803886319
placesview: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
2abfc602ca
placessidebar: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
e6349c940e
paned: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
b9db1a5410
notebook: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
46336aaebe
mountoperation: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
e023367a8a
menu: Update to using GdkEvent API
...
To some extent, plenty of root coordinate calculations left...
2017-09-19 18:39:02 +02:00
Carlos Garnacho
1b6ff9df76
listbox: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
dee14dda8d
imcontext: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
3d7ad2af4f
iconview: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
7545b908de
gesture: Update to using GdkEvent API
...
To some extent, pad and touchpad gesture events need extra API.
2017-09-19 18:39:02 +02:00
Carlos Garnacho
67239f112e
fontchooser: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
e67090df91
flowbox: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
c48a196d77
filechooser: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
75d8175715
entrycompletion: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
e46a1d32f0
entry: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
92be6488c4
combobox: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
df4b0340a6
colorswatch: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
510554f679
colorplane: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
a46173980e
coloreditor: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
75492e3cef
cellrendererspin: Update to using GdkEvent API
2017-09-19 18:39:02 +02:00