gtk4.git
8 years agogdk: Drop GdkEventWindowState
Matthias Clasen [Fri, 15 Dec 2017 03:23:01 +0000 (22:23 -0500)]
gdk: Drop GdkEventWindowState

No longer generate this event. Instead, emit change
notification for GdkWindow::state.

8 years agowidget: Remove the ::window-state-event signal
Matthias Clasen [Fri, 15 Dec 2017 03:21:21 +0000 (22:21 -0500)]
widget: Remove the ::window-state-event signal

We no longer use this signal, so remove it.

8 years agogtk: Stop handling GdkEventWindowState
Matthias Clasen [Fri, 15 Dec 2017 03:20:38 +0000 (22:20 -0500)]
gtk: Stop handling GdkEventWindowState

These events have been superseded by GdkWindow::state.

8 years agomenu: Stop using GdkEventWindowState
Matthias Clasen [Fri, 15 Dec 2017 03:19:53 +0000 (22:19 -0500)]
menu: Stop using GdkEventWindowState

These events are going away.

8 years agoa11y: Stop using GdkEventWindowState
Matthias Clasen [Fri, 15 Dec 2017 03:11:50 +0000 (22:11 -0500)]
a11y: Stop using GdkEventWindowState

These events are going way.

8 years agoheaderbar: Stop using GdkEventWindowState
Matthias Clasen [Fri, 15 Dec 2017 03:11:14 +0000 (22:11 -0500)]
headerbar: Stop using GdkEventWindowState

Use GdkWindow::state instead - the event is going away.

8 years agogtk-demo: Stop using GdkEventWindowState
Matthias Clasen [Fri, 15 Dec 2017 03:10:44 +0000 (22:10 -0500)]
gtk-demo: Stop using GdkEventWindowState

Use GdkWindow::state instead - the event is going away.

8 years agotestgtk: Stop using GdkEventWindowState
Matthias Clasen [Fri, 15 Dec 2017 03:09:13 +0000 (22:09 -0500)]
testgtk: Stop using GdkEventWindowState

Use GdkWindow::state instead - the event is going away.

8 years agogtk: Stop using GdkEventWindowState
Matthias Clasen [Fri, 15 Dec 2017 02:07:39 +0000 (21:07 -0500)]
gtk: Stop using GdkEventWindowState

We can instead use the new GdkWindow::state property
change notification. The event is going away.

8 years agogdk: Add a GdkWindow::state property
Matthias Clasen [Thu, 14 Dec 2017 23:51:38 +0000 (18:51 -0500)]
gdk: Add a GdkWindow::state property

This will eventually replace the window state event.

8 years agoFileChooser: Update set_local_only() doc’s default
Daniel Boles [Mon, 4 Dec 2017 15:09:53 +0000 (15:09 +0000)]
FileChooser: Update set_local_only() doc’s default

The property now defaults to FALSE, but the setter doc didn’t reflect it

While here, add a missing apostrophe too.

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

8 years agox11: Remove GdkAtom usage from dnd code
Benjamin Otte [Thu, 14 Dec 2017 12:46:37 +0000 (13:46 +0100)]
x11: Remove GdkAtom usage from dnd code

Use strings instead.

8 years agodisplay: Remove leftover old clipboard APIs
Benjamin Otte [Thu, 14 Dec 2017 12:34:40 +0000 (13:34 +0100)]
display: Remove leftover old clipboard APIs

8 years agox11: Fix erroneous & to be &&
Krzesimir Nowak [Thu, 14 Dec 2017 12:34:06 +0000 (13:34 +0100)]
x11: Fix erroneous & to be &&

8 years agox11: Get rid of default Atom converters
Benjamin Otte [Thu, 14 Dec 2017 12:02:50 +0000 (13:02 +0100)]
x11: Get rid of default Atom converters

No, using the default Wayland display is not okay to query Atoms.

8 years agodevice: Make axis label a regular string
Benjamin Otte [Thu, 14 Dec 2017 11:51:22 +0000 (12:51 +0100)]
device: Make axis label a regular string

Atoms are about to die.

8 years agoUpdate Russian translation
Stas Solovey [Thu, 14 Dec 2017 09:58:07 +0000 (09:58 +0000)]
Update Russian translation

(cherry picked from commit d69f998c260b677cda7060183649091b080c203e)

8 years agoDrop atom apis from the docs
Matthias Clasen [Thu, 14 Dec 2017 04:47:51 +0000 (23:47 -0500)]
Drop atom apis from the docs

These no longer exist.

8 years agoDrop atom-related cast macros
Matthias Clasen [Thu, 14 Dec 2017 04:47:02 +0000 (23:47 -0500)]
Drop atom-related cast macros

These don't really add anything, just drop them.

8 years agoDrop gdk_atom_intern
Matthias Clasen [Thu, 14 Dec 2017 04:39:03 +0000 (23:39 -0500)]
Drop gdk_atom_intern

Atoms are just interned strings now, so we can just
use g_intern_string.

8 years agoDrop gdk_atom_name
Matthias Clasen [Thu, 14 Dec 2017 04:26:23 +0000 (23:26 -0500)]
Drop gdk_atom_name

Since atoms are just interned strings now, we can just
cast them to const char * where needed.

8 years agoRemove no-longer-used signals
Matthias Clasen [Thu, 14 Dec 2017 03:52:50 +0000 (22:52 -0500)]
Remove no-longer-used signals

GtkWidget::selection-get and ::selection-received are no
longer used, so get rid of them.

8 years agodnd: Remove gdk_drag_get_selection()
Benjamin Otte [Thu, 14 Dec 2017 03:34:33 +0000 (04:34 +0100)]
dnd: Remove gdk_drag_get_selection()

Without selections, drags can't have them either.

Also included is removing the selection from GtkSelectionData.

Includes a bunch of crude cleanups to Wayland code that no longer has to
care about selection atoms.

8 years agogdk: Remove ability to request selection notifications
Benjamin Otte [Thu, 14 Dec 2017 03:20:48 +0000 (04:20 +0100)]
gdk: Remove ability to request selection notifications

Without selections, that's kinda pointless.

8 years agogdk: Remove properties
Benjamin Otte [Thu, 14 Dec 2017 02:01:59 +0000 (03:01 +0100)]
gdk: Remove properties

They are not used anymore.

Gone with them are PropertyNotify events.

8 years agobroadway: Make compile after GdkEvent objectification
Benjamin Otte [Thu, 14 Dec 2017 02:01:32 +0000 (03:01 +0100)]
broadway: Make compile after GdkEvent objectification

8 years agogesture: Fix gcc constness warning
Benjamin Otte [Thu, 14 Dec 2017 02:01:00 +0000 (03:01 +0100)]
gesture: Fix gcc constness warning

8 years agox11: Make unsetting transient-for work
Benjamin Otte [Thu, 14 Dec 2017 01:59:58 +0000 (02:59 +0100)]
x11: Make unsetting transient-for work

... and just unset it from GtkWindow instead of fiddling with
properties.

8 years agogdk: Remove selection defines
Benjamin Otte [Thu, 14 Dec 2017 00:03:00 +0000 (01:03 +0100)]
gdk: Remove selection defines

And with it, remove the selections section from the docs.

So selections are gone for good now.

8 years agovulkan: Destroy buffer before releasing associate memory
Georges Basile Stavracas Neto [Thu, 14 Dec 2017 01:14:58 +0000 (23:14 -0200)]
vulkan: Destroy buffer before releasing associate memory

Exact same issue as the previous commit.

8 years agovulkan: Destroy image before releasing associate memory
Georges Basile Stavracas Neto [Thu, 14 Dec 2017 00:43:50 +0000 (22:43 -0200)]
vulkan: Destroy image before releasing associate memory

VkImage contains a reference to the VkDeviceMemory and, because
the current code frees the VkDeviceMemory before destroying the
VkImage that references it, a warning is triggered by the validation
layers.

This is not critical, since we release both resources at the same
place. But the warning triggered by the validation layers sums up
adding 1 MB per second of extra debug logging, making the debugging
process much more painful.

This commit simply swaps the destruction order, and destroys the
VkImage first, then the now unused VkDeviceMemory.

8 years agoUpdate POTFILES.in
Piotr Drąg [Thu, 14 Dec 2017 00:15:17 +0000 (01:15 +0100)]
Update POTFILES.in

8 years agogdk: Make gdk_display_peek_event() Return a reference to the event
Carlos Garnacho [Tue, 31 Oct 2017 14:40:16 +0000 (15:40 +0100)]
gdk: Make gdk_display_peek_event() Return a reference to the event

No need to copy it.

8 years agogtk: Make gtk_get_current_event() return a reference
Carlos Garnacho [Tue, 31 Oct 2017 13:03:35 +0000 (14:03 +0100)]
gtk: Make gtk_get_current_event() return a reference

All callers in gtk seem to be ok with it, and it makes sense if
we are dealing with events as "static after delivered".

8 years agogtk: Avoid some event copies
Carlos Garnacho [Tue, 31 Oct 2017 12:55:33 +0000 (13:55 +0100)]
gtk: Avoid some event copies

Those places can do with an extra reference.

8 years agogtk: s/gdk_event_free/g_object_unref/
Carlos Garnacho [Tue, 31 Oct 2017 12:45:41 +0000 (13:45 +0100)]
gtk: s/gdk_event_free/g_object_unref/

8 years agogdk/wayland: s/gdk_event_free/g_object_unref/
Carlos Garnacho [Tue, 31 Oct 2017 12:36:31 +0000 (13:36 +0100)]
gdk/wayland: s/gdk_event_free/g_object_unref/

8 years agogdk/x11: s/gdk_event_free/g_object_unref/
Carlos Garnacho [Tue, 31 Oct 2017 12:35:11 +0000 (13:35 +0100)]
gdk/x11: s/gdk_event_free/g_object_unref/

8 years agogdk: Remove gdk_window_[gs]et_event_compression()
Carlos Garnacho [Tue, 31 Oct 2017 12:18:49 +0000 (13:18 +0100)]
gdk: Remove gdk_window_[gs]et_event_compression()

Motion compression is now the unmodifiable default, callers may
call gdk_event_get_motion_history() to check the uncoalesced
motion history.

8 years agogtk: Remove CONSTRUCT_ONLY flag from GtkEventControllerScroll::flags
Carlos Garnacho [Tue, 31 Oct 2017 11:45:37 +0000 (12:45 +0100)]
gtk: Remove CONSTRUCT_ONLY flag from GtkEventControllerScroll::flags

There is a gtk_event_controller_scroll_set_flags() call that's meant
to be called after construction (eg. due to scrolledwindow relayouts
hiding/showing scrollbars). The property shouldn't be construct-only
for consistence.

8 years agogdk: Implement motion history as motion event data
Carlos Garnacho [Tue, 31 Oct 2017 11:37:50 +0000 (12:37 +0100)]
gdk: Implement motion history as motion event data

In the motion compression phase the coalesced events will be saved
as a GdkTimeCoord on the motion event that shall be delivered.

For simplicity (and because history doesn't make much sense otherwise)
event history is only recorded while there are buttons pressed, this
also tidily ensures that those coalesced events would have the same
target widget on the gtk side than the delivered one, because of
implicit grabs.

8 years agogdk: Keep reference on tools from motion/button events.
Carlos Garnacho [Tue, 31 Oct 2017 11:21:29 +0000 (12:21 +0100)]
gdk: Keep reference on tools from motion/button events.

8 years agogdk: Move additional code in gdk_event_new() to GdkEvent::constructed
Carlos Garnacho [Wed, 25 Oct 2017 13:49:19 +0000 (15:49 +0200)]
gdk: Move additional code in gdk_event_new() to GdkEvent::constructed

Now that the type is a construct only property, we can initialize the
event fields properly here.

8 years agogdk: Make GdkEvent type a construct only property
Carlos Garnacho [Wed, 25 Oct 2017 13:46:47 +0000 (15:46 +0200)]
gdk: Make GdkEvent type a construct only property

So it must be set at the time of doing g_object_new().

8 years agogdk: Remove gdk_event_is_allocated()
Carlos Garnacho [Wed, 25 Oct 2017 12:21:38 +0000 (14:21 +0200)]
gdk: Remove gdk_event_is_allocated()

All events are allocated now.

8 years agogtk: Adapt marshallers to GdkEvent as GObject
Carlos Garnacho [Wed, 25 Oct 2017 11:40:28 +0000 (13:40 +0200)]
gtk: Adapt marshallers to GdkEvent as GObject

8 years agogdk: Turn GdkEvent into a GObject
Carlos Garnacho [Wed, 25 Oct 2017 11:23:41 +0000 (13:23 +0200)]
gdk: Turn GdkEvent into a GObject

Two warts remain. gdk_event_copy() should be unnecessary as
events should be considered static after delivery, so g_object_ref()
should be just as good. There's a few exceptional cases that the event
is copied and then modifier for later processing, those cases should be
reconsidered individually.

And gdk_event_free() could be likewise turned into g_object_unref(),
many callers remain though.

8 years agogdk: Remove GdkDisplay from GdkEventPrivate
Carlos Garnacho [Wed, 25 Oct 2017 12:06:20 +0000 (14:06 +0200)]
gdk: Remove GdkDisplay from GdkEventPrivate

And add it to GdkEventAny.

8 years agogdk: Figure out the GdkSeat of an event from the GdkDevice
Carlos Garnacho [Wed, 25 Oct 2017 11:50:55 +0000 (13:50 +0200)]
gdk: Figure out the GdkSeat of an event from the GdkDevice

Removes the need for gdk_event_set_seat() and the GdkSeat field from
GdkEventPrivate.

8 years agogdk: Use allocated events
Carlos Garnacho [Wed, 25 Oct 2017 10:29:43 +0000 (12:29 +0200)]
gdk: Use allocated events

Stack allocated GdkEvent structs will not be ok when events become
objects.

8 years agogtk/a11y: Use allocated events
Carlos Garnacho [Wed, 25 Oct 2017 10:26:32 +0000 (12:26 +0200)]
gtk/a11y: Use allocated events

Using stack allocated GdkEvent will not be ok when they become
objects.

8 years agogdk: Fold GdkEventPrivate fields into event structs
Carlos Garnacho [Wed, 11 Oct 2017 06:42:41 +0000 (08:42 +0200)]
gdk: Fold GdkEventPrivate fields into event structs

Now all events structs are private, it doesn't make as much sense
having GdkEventPrivate wrapping allocating events. This is a first
step towards removing it.

8 years agogdk: Remove GdkEventType argument from GdkEvent union
Carlos Garnacho [Wed, 11 Oct 2017 13:55:19 +0000 (15:55 +0200)]
gdk: Remove GdkEventType argument from GdkEvent union

It won't stand true anymore that the GdkEventType argument is the
first field of the GdkEvent* structs. All callers have been updated
to use event->any.type instead.

8 years agogdk: Refurbish GdkEvent struct hierarchy
Carlos Garnacho [Wed, 11 Oct 2017 13:35:29 +0000 (15:35 +0200)]
gdk: Refurbish GdkEvent struct hierarchy

Make all specific event structs contain a GdkEventAny, so the base
struct can be extended without modifying structs all over the place.

8 years agoRedo drag source event handling
Matthias Clasen [Wed, 13 Dec 2017 04:22:32 +0000 (23:22 -0500)]
Redo drag source event handling

Let the gesture itself handle the events.

8 years agogdk: Remove gdk_selection_convert()
Benjamin Otte [Wed, 13 Dec 2017 23:43:19 +0000 (00:43 +0100)]
gdk: Remove gdk_selection_convert()

It's not used anymore.

8 years agodnd: Only send DELETE request on X11
Benjamin Otte [Wed, 13 Dec 2017 22:52:55 +0000 (23:52 +0100)]
dnd: Only send DELETE request on X11

This is Xdnd-specific and doesn't need to happen elsewhere.

8 years agogdk: Remove ability to own a selection
Benjamin Otte [Wed, 13 Dec 2017 22:39:02 +0000 (23:39 +0100)]
gdk: Remove ability to own a selection

With this, the GDK_EVENT_SELECTION_REQUEST and GDK_EVENT_SELECTION_CLEAR
and the associated GtkWidget signals are gone, too.

8 years agotests: Remove testselection
Benjamin Otte [Wed, 13 Dec 2017 18:40:24 +0000 (19:40 +0100)]
tests: Remove testselection

With selections goig away, this test is not very useful anymore.

8 years agoxxx: don't claim dnd selection
Benjamin Otte [Wed, 13 Dec 2017 18:37:11 +0000 (19:37 +0100)]
xxx: don't claim dnd selection

8 years agogdk: Remove gdk_selection_add_targets()
Benjamin Otte [Wed, 13 Dec 2017 18:27:51 +0000 (19:27 +0100)]
gdk: Remove gdk_selection_add_targets()

It's not needed anymore, now that we can look at the content provider's
formats.

Alose remove all the API in GTK that was used to set it.

8 years agox11: Move selection handling to GDK
Benjamin Otte [Wed, 13 Dec 2017 17:22:21 +0000 (18:22 +0100)]
x11: Move selection handling to GDK

Instead of claiming the selection in GTK, claim it in the X11 dnd code.
Also handle SelectionRequest and SelectionClear X events there.

8 years agodnd: Pass content to gdk_drag_begin()
Benjamin Otte [Wed, 13 Dec 2017 14:03:53 +0000 (15:03 +0100)]
dnd: Pass content to gdk_drag_begin()

Instead of just passing the GdkContentFormats, we are now passing the
GdkContentProvider to gdk_drag_begin().
This means that GDK itself can now query the data from the provider
directly instead of having to send selection events.

Use this to provide the private API gdk_drag_context_write() that allows
backends to pass an output stream that this data will be written to.
Implement this as the mechanism for providing drag data on Wayland.

And to make this all work, implement a content provider named
GtkDragContent that is implemented by reverting to the old DND
drag-data-get machinery inside GTK, so for widgets everything works just
like before.

8 years agoA forgotten file
Matthias Clasen [Wed, 13 Dec 2017 04:23:17 +0000 (23:23 -0500)]
A forgotten file

These changes belong to the scale button autoscrollling
commit.

8 years agoMake sure events have displays
Matthias Clasen [Wed, 13 Dec 2017 04:21:26 +0000 (23:21 -0500)]
Make sure events have displays

This seems to be necessary if you want to call
gdk_display_put_event on them.

8 years agotoolbar: Stop using legacy event signals
Matthias Clasen [Wed, 13 Dec 2017 03:55:48 +0000 (22:55 -0500)]
toolbar: Stop using legacy event signals

We can reuse the button gesture here.

8 years agoscalebutton: Add autoscrolling
Matthias Clasen [Wed, 13 Dec 2017 03:21:43 +0000 (22:21 -0500)]
scalebutton: Add autoscrolling

Use the smooth autoscrolling that the scale can do,
and at the same time stop using legacy event signals.

8 years agobutton: Add private api to get at the gesture
Matthias Clasen [Wed, 13 Dec 2017 03:18:19 +0000 (22:18 -0500)]
button: Add private api to get at the gesture

Attaching another gesture from the outside does not
work currently, so let widgets share their button's
gesture for now.

8 years agorange: Add private api to autoscroll
Matthias Clasen [Wed, 13 Dec 2017 03:17:49 +0000 (22:17 -0500)]
range: Add private api to autoscroll

This will be used to scroll the scale in scale buttons.

8 years agopath bar: Drop non-functional hold-to-scroll code
Matthias Clasen [Wed, 13 Dec 2017 01:49:31 +0000 (20:49 -0500)]
path bar: Drop non-functional hold-to-scroll code

Scrolling a path bar is of marginal usefulness - you need to
find a really deep place in your filesystem hierarchy in order
to scroll one or two places at best. And the code we had for
this was not working. And it was using legacy event handlers.
Instead of fixing it, remove it.

8 years agox11: Refactor xevent filtering some more
Benjamin Otte [Wed, 13 Dec 2017 00:53:17 +0000 (01:53 +0100)]
x11: Refactor xevent filtering some more

We now have a GdkX11Display::xevent signal that gets emitted for every
XEvent and allows you to interrupt processing via TRUE/FALSE return
values.
These return values to correspond to GDK_FILTER_REMOVE and
GDK_FILTER_CONTINUE respectively.

The GDK_FILTER_TRANSLATE case from gdk_window_add_filter() is now meant
to be handled via gdk_display_put_event().

8 years agowidget-factory: Avoid a legacy event handler
Matthias Clasen [Wed, 13 Dec 2017 00:13:52 +0000 (19:13 -0500)]
widget-factory: Avoid a legacy event handler

We can use a gesture instead, here.

8 years agox11: Use GdkX11Display::translate-event more
Benjamin Otte [Wed, 13 Dec 2017 00:09:32 +0000 (01:09 +0100)]
x11: Use GdkX11Display::translate-event more

8 years agox11: Make clipboard use translate-event signal
Benjamin Otte [Tue, 12 Dec 2017 23:56:05 +0000 (00:56 +0100)]
x11: Make clipboard use translate-event signal

8 years agogdk: Clean up marshalers
Benjamin Otte [Tue, 12 Dec 2017 23:47:07 +0000 (00:47 +0100)]
gdk: Clean up marshalers

Don't generate marshallers that are not needed.

Use the default ones if they exist.

8 years agox11: Add GdkX11Display:translate-event signal
Benjamin Otte [Tue, 12 Dec 2017 23:43:30 +0000 (00:43 +0100)]
x11: Add GdkX11Display:translate-event signal

This is supposed to replace gdk_window_add_filter() in the long run.

8 years agox11: Constify XEvent usage
Benjamin Otte [Tue, 12 Dec 2017 23:39:32 +0000 (00:39 +0100)]
x11: Constify XEvent usage

8 years agogdk: Remove gdk_event_put(), peek() etc
Benjamin Otte [Tue, 12 Dec 2017 23:35:16 +0000 (00:35 +0100)]
gdk: Remove gdk_event_put(), peek() etc

We don't want to treat events like they don't belong to displays. So
instead, people should use gdk_display_put/peek/get_event().

8 years agox11: Refactor code
Benjamin Otte [Tue, 12 Dec 2017 14:25:34 +0000 (15:25 +0100)]
x11: Refactor code

This is in preparation for DND.

It moves a lot of code from gdkclipboard-x11.c to
gdkselectionoutputstream-x11.c to untangle it from GdkX11Clipboard
usage.

8 years agogdk: Remove unused function
Benjamin Otte [Tue, 12 Dec 2017 02:00:03 +0000 (03:00 +0100)]
gdk: Remove unused function

Fun fact: This function was never used.

8 years agoa11y: drop the focus tracker
Matthias Clasen [Tue, 12 Dec 2017 19:49:44 +0000 (14:49 -0500)]
a11y: drop the focus tracker

This code was doing horrible things, and the atk documentation
for the focus tracking feature says that this is deprecated and
not used anymore. So lets not do it.

8 years agoplacesview: Make middle click work
Matthias Clasen [Tue, 12 Dec 2017 18:56:15 +0000 (13:56 -0500)]
placesview: Make middle click work

This does not cost us much, and improves consistency.

8 years agoDeprecate many legacy event signals
Matthias Clasen [Tue, 12 Dec 2017 16:04:49 +0000 (11:04 -0500)]
Deprecate many legacy event signals

Mark the following signals as deprecated:
event, event-after, button-press-event, button-release-event,
touch-event, scroll-event, motion-notify-event, enter-notify-event,
leave-notify-event, property-notify-event, selection-clear-event,
selection-request-event, selection-notify-event, selection-received,
selection-get, proximity-in-event, proximity-out-event. Most
of these have suitable replacements in event controllers and
gestures already. The selection-related signals will soon be
irrelevant when selection handling moves to GDK.

Set G_ENABLE_DIAGNOSTIC=1 to see deprecation
warnings for uses of these signals.

8 years agoInstall gtkeventcontrollermotion.h
Matthias Clasen [Tue, 12 Dec 2017 15:38:11 +0000 (10:38 -0500)]
Install gtkeventcontrollermotion.h

Public headers need to be listed in gtk/meson.build.
This was overlooked when I added the controller.

8 years agoUpdate POTFILES.in
Piotr Drąg [Tue, 12 Dec 2017 15:33:22 +0000 (16:33 +0100)]
Update POTFILES.in

8 years agoAdd GtkEventControllMotion to the docs
Matthias Clasen [Tue, 12 Dec 2017 15:23:48 +0000 (10:23 -0500)]
Add GtkEventControllMotion to the docs

8 years agopaned: Stop using motion notify
Matthias Clasen [Tue, 12 Dec 2017 00:27:35 +0000 (19:27 -0500)]
paned: Stop using motion notify

We can use the new motion event controller that
was introduced for this purpose.

8 years agoabout dialog: Stop using event-after as well
Matthias Clasen [Tue, 12 Dec 2017 00:00:24 +0000 (19:00 -0500)]
about dialog: Stop using event-after as well

We can just use a multipress gesture for this purpose.

8 years agoabout dialog: Stop using motion notify
Matthias Clasen [Mon, 11 Dec 2017 23:46:47 +0000 (18:46 -0500)]
about dialog: Stop using motion notify

We can use the new motion event controller for this.

8 years agolabel: Use GtkEventControllerMotion
Matthias Clasen [Mon, 11 Dec 2017 23:30:22 +0000 (18:30 -0500)]
label: Use GtkEventControllerMotion

This lets us avoid legacy event signals here.

8 years agoAdd a simple motion eventcontroller
Matthias Clasen [Mon, 11 Dec 2017 23:29:33 +0000 (18:29 -0500)]
Add a simple motion eventcontroller

This can serve as a replacement for the legacy
event signals for enter/leave/motion notify.

8 years agoTry to make a composite entry
Matthias Clasen [Mon, 11 Dec 2017 05:02:21 +0000 (00:02 -0500)]
Try to make a composite entry

This is an attempt to see how much work is needed to
reproduce entry icons by just putting an entry and images
in a box, with some css glue.

8 years agoplacessidebar: Don't use root coordinates
Benjamin Otte [Mon, 11 Dec 2017 21:58:33 +0000 (22:58 +0100)]
placessidebar: Don't use root coordinates

8 years agodnd: Pass device, not event
Benjamin Otte [Mon, 11 Dec 2017 21:55:54 +0000 (22:55 +0100)]
dnd: Pass device, not event

You don't start a dnd operation with a device, you start it with an
event.

8 years agodnd: No longer allow passing -1
Benjamin Otte [Mon, 11 Dec 2017 21:34:13 +0000 (22:34 +0100)]
dnd: No longer allow passing -1

Nobody ever does that and special cases are evil.

8 years agodnd: Remove button argument from drag_begin()
Benjamin Otte [Mon, 11 Dec 2017 21:26:26 +0000 (22:26 +0100)]
dnd: Remove button argument from drag_begin()

It was unused.

8 years agocalendar: Stop using a legacy event handler
Matthias Clasen [Mon, 11 Dec 2017 03:15:12 +0000 (22:15 -0500)]
calendar: Stop using a legacy event handler

Replace the motion_notify handler by a drag gesture.

8 years agoAdwaita: Set an icon size for drag icons
Matthias Clasen [Mon, 11 Dec 2017 02:17:13 +0000 (21:17 -0500)]
Adwaita: Set an icon size for drag icons

This makes drag icons set from icon names come out
at a size that it large enough to not disappear under
the drag cursor.

8 years agoSet a style class for drag icons
Matthias Clasen [Mon, 11 Dec 2017 02:16:31 +0000 (21:16 -0500)]
Set a style class for drag icons

This lets us use the new icon-size machinery to
ensure we don't have tiny drag icons when using
named icons.

8 years agogdk: Remove gdk_drag_manage_dnd()
Benjamin Otte [Mon, 11 Dec 2017 00:45:31 +0000 (01:45 +0100)]
gdk: Remove gdk_drag_manage_dnd()

Instead, pass the actions as part of gdk_drag_begin() and insist DND is
always managed.

A new side effect is that gdk_drag_begin() can now return %NULL.