summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* gdk: Remove propertiesBenjamin Otte2017-12-143-36/+0
| | | | | | They are not used anymore. Gone with them are PropertyNotify events.
* gesture: Fix gcc constness warningBenjamin Otte2017-12-141-1/+1
|
* x11: Make unsetting transient-for workBenjamin Otte2017-12-141-2/+1
| | | | | ... and just unset it from GtkWindow instead of fiddling with properties.
* gdk: Remove selection definesBenjamin Otte2017-12-141-6/+6
| | | | | | And with it, remove the selections section from the docs. So selections are gone for good now.
* gtk: Make gtk_get_current_event() return a referenceCarlos Garnacho2017-12-141-3/+3
| | | | | All callers in gtk seem to be ok with it, and it makes sense if we are dealing with events as "static after delivered".
* gtk: Avoid some event copiesCarlos Garnacho2017-12-142-2/+2
| | | | Those places can do with an extra reference.
* gtk: s/gdk_event_free/g_object_unref/Carlos Garnacho2017-12-1413-28/+28
|
* gtk: Remove CONSTRUCT_ONLY flag from GtkEventControllerScroll::flagsCarlos Garnacho2017-12-141-2/+1
| | | | | | | 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.
* gtk: Adapt marshallers to GdkEvent as GObjectCarlos Garnacho2017-12-143-73/+73
|
* gtk/a11y: Use allocated eventsCarlos Garnacho2017-12-141-11/+12
| | | | | Using stack allocated GdkEvent will not be ok when they become objects.
* gdk: Fold GdkEventPrivate fields into event structsCarlos Garnacho2017-12-141-1/+1
| | | | | | 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.
* gdk: Remove GdkEventType argument from GdkEvent unionCarlos Garnacho2017-12-142-45/+45
| | | | | | 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.
* gdk: Refurbish GdkEvent struct hierarchyCarlos Garnacho2017-12-144-13/+13
| | | | | Make all specific event structs contain a GdkEventAny, so the base struct can be extended without modifying structs all over the place.
* Redo drag source event handlingMatthias Clasen2017-12-131-32/+15
| | | | Let the gesture itself handle the events.
* gdk: Remove gdk_selection_convert()Benjamin Otte2017-12-147-724/+2
| | | | It's not used anymore.
* dnd: Only send DELETE request on X11Benjamin Otte2017-12-131-20/+1
| | | | This is Xdnd-specific and doesn't need to happen elsewhere.
* gdk: Remove ability to own a selectionBenjamin Otte2017-12-136-892/+0
| | | | | With this, the GDK_EVENT_SELECTION_REQUEST and GDK_EVENT_SELECTION_CLEAR and the associated GtkWidget signals are gone, too.
* xxx: don't claim dnd selectionBenjamin Otte2017-12-131-18/+0
|
* gdk: Remove gdk_selection_add_targets()Benjamin Otte2017-12-132-166/+0
| | | | | | | 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.
* x11: Move selection handling to GDKBenjamin Otte2017-12-131-18/+0
| | | | | Instead of claiming the selection in GTK, claim it in the X11 dnd code. Also handle SelectionRequest and SelectionClear X events there.
* dnd: Pass content to gdk_drag_begin()Benjamin Otte2017-12-131-1/+155
| | | | | | | | | | | | | | | | 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.
* A forgotten fileMatthias Clasen2017-12-121-4/+0
| | | | | These changes belong to the scale button autoscrollling commit.
* toolbar: Stop using legacy event signalsMatthias Clasen2017-12-121-9/+15
| | | | We can reuse the button gesture here.
* scalebutton: Add autoscrollingMatthias Clasen2017-12-121-71/+57
| | | | | Use the smooth autoscrolling that the scale can do, and at the same time stop using legacy event signals.
* button: Add private api to get at the gestureMatthias Clasen2017-12-122-0/+9
| | | | | | Attaching another gesture from the outside does not work currently, so let widgets share their button's gesture for now.
* range: Add private api to autoscrollMatthias Clasen2017-12-122-0/+19
| | | | This will be used to scroll the scale in scale buttons.
* path bar: Drop non-functional hold-to-scroll codeMatthias Clasen2017-12-122-186/+2
| | | | | | | | 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.
* a11y: drop the focus trackerMatthias Clasen2017-12-122-960/+2
| | | | | | 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.
* placesview: Make middle click workMatthias Clasen2017-12-121-1/+12
| | | | This does not cost us much, and improves consistency.
* Deprecate many legacy event signalsMatthias Clasen2017-12-121-17/+17
| | | | | | | | | | | | | | | 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.
* Install gtkeventcontrollermotion.hMatthias Clasen2017-12-121-0/+1
| | | | | Public headers need to be listed in gtk/meson.build. This was overlooked when I added the controller.
* paned: Stop using motion notifyMatthias Clasen2017-12-121-14/+15
| | | | | We can use the new motion event controller that was introduced for this purpose.
* about dialog: Stop using event-after as wellMatthias Clasen2017-12-122-24/+28
| | | | We can just use a multipress gesture for this purpose.
* about dialog: Stop using motion notifyMatthias Clasen2017-12-122-21/+28
| | | | We can use the new motion event controller for this.
* label: Use GtkEventControllerMotionMatthias Clasen2017-12-121-25/+27
| | | | This lets us avoid legacy event signals here.
* Add a simple motion eventcontrollerMatthias Clasen2017-12-124-0/+212
| | | | | This can serve as a replacement for the legacy event signals for enter/leave/motion notify.
* placessidebar: Don't use root coordinatesBenjamin Otte2017-12-121-11/+9
|
* dnd: Pass device, not eventBenjamin Otte2017-12-1212-70/+53
| | | | | You don't start a dnd operation with a device, you start it with an event.
* dnd: No longer allow passing -1Benjamin Otte2017-12-121-38/+12
| | | | Nobody ever does that and special cases are evil.
* dnd: Remove button argument from drag_begin()Benjamin Otte2017-12-1212-108/+8
| | | | It was unused.
* calendar: Stop using a legacy event handlerMatthias Clasen2017-12-101-27/+63
| | | | Replace the motion_notify handler by a drag gesture.
* Adwaita: Set an icon size for drag iconsMatthias Clasen2017-12-101-0/+4
| | | | | | This makes drag icons set from icon names come out at a size that it large enough to not disappear under the drag cursor.
* Set a style class for drag iconsMatthias Clasen2017-12-101-3/+1
| | | | | | This lets us use the new icon-size machinery to ensure we don't have tiny drag icons when using named icons.
* gdk: Remove gdk_drag_manage_dnd()Benjamin Otte2017-12-111-4/+2
| | | | | | | 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.
* dnd: No point in determining the keyboardBenjamin Otte2017-12-111-9/+2
| | | | We only use the pointer.
* dnd: Pass dx/dy instead of x_root/y_rootBenjamin Otte2017-12-111-9/+25
| | | | | This way, we don't need root coordinates when computing the dnd start position.
* dnd: Make gdk_drag_context_set_device() privateBenjamin Otte2017-12-111-2/+0
| | | | | There's no need to call it from GTK anymore, because we pass the device to gdk_drag_begin().
* calendar: Don't request drag data on every motion eventBenjamin Otte2017-12-111-1/+1
| | | | At least wait until we've received the previous one.
* gdk: Remove outdated gdk_drag_begin() alternativesBenjamin Otte2017-12-111-1/+1
| | | | | There's only one that's ever used, so delete the others and rename this one to gdk_drag_begin().
* link button: Set a drag iconMatthias Clasen2017-12-101-0/+1
| | | | It is a bit odd to drag nothing around, so set an icon.