summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Update POTFILES.inPiotr Drąg2017-12-122-0/+6
|
* Add GtkEventControllMotion to the docsMatthias Clasen2017-12-123-0/+20
|
* 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.
* Try to make a composite entryMatthias Clasen2017-12-121-1/+50
| | | | | | 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.
* 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-1113-174/+85
| | | | | | | 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-118-23/+48
| | | | | This way, we don't need root coordinates when computing the dnd start position.
* dnd: Make gdk_drag_context_set_device() privateBenjamin Otte2017-12-113-5/+2
| | | | | 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-114-69/+6
| | | | | 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.
* docs: Don't mention css for setting cursorsMatthias Clasen2017-12-091-3/+2
| | | | | We don't have a plan to make this work, so lets not talk about it in the docs.
* entry: Allocate the progress bar only what it needsMatthias Clasen2017-12-091-2/+8
| | | | | | | We were allocating the progress bar to the full size of the entry. This made entry icons loose their cursors, since they were 'covered' by the progress bar, even though it doesn't draw anything there.
* Fix updating the widget accessible description when using its tooltipColomban Wendling2017-12-091-0/+3
| | | | | | | | We need to notify ATK the description changed when the tooltip text associated with the widget changes and gtk_widget_accessible_get_description() would use it as the description. https://bugzilla.gnome.org/show_bug.cgi?id=779009
* Fix irregular gdk_frame_clock_get_frame_timeDaniel van Vugt2017-12-091-1/+30
| | | | | | | | | | | | | | | | | | | | | | | This fixes stuttering in animations that rely on the regularity of gdk_frame_clock_get_frame_time. https://bugzilla.gnome.org/show_bug.cgi?id=787665 BEFORE gdkgears: 58 FPS and visibly stuttering gnome-maps on a 59.95Hz monitor: "paint" g_get_monotonic_time +17278μs, gdk_frame_clock_get_frame_time +17278μs "paint" g_get_monotonic_time +17449μs, gdk_frame_clock_get_frame_time +17426μs "paint" g_get_monotonic_time +17620μs, gdk_frame_clock_get_frame_time +17600μs AFTER gdkgears: 60 FPS and smoother gnome-maps on a 59.95Hz monitor: "paint" g_get_monotonic_time +18228μs, gdk_frame_clock_get_frame_time +16680μs "paint" g_get_monotonic_time +15010μs, gdk_frame_clock_get_frame_time +16680μs "paint" g_get_monotonic_time +17134μs, gdk_frame_clock_get_frame_time +16680μs
* dnd: Remove "delete" argument from gtk_drag_finish()Benjamin Otte2017-12-1012-43/+25
| | | | | | | The argument is ignored by anything but X11. It's treated like suggested_action == MOVE. So do that in gtk_drag_finish(), too.
* dnd: Introduce gdk_drop_read_async() and use itBenjamin Otte2017-12-108-21/+447
| | | | | | | | | | This is the replacement for selection usage. Backend implementations for X11 (missing support for backwards compat formats like COMPOUND_TEXT) and Wayland are included. GTK code should be adapted to use gdk_drop_read_*() functions instead of gtk_drag_get_data().
* gdk: Fix wrong usage of g_task_propagate_pointer()Benjamin Otte2017-12-102-32/+8
| | | | The return value is transfer full, not transfer none.
* clipboard: Add the useful stuff from reverted commitBenjamin Otte2017-12-103-22/+7
| | | | | | This is the parts of dc50e0637ffa8bc7a369d00a5d8e7656d03c3781 that should have been committed but were reverted in b5c62cf86fe37e05ce2a0ae050df2a229457676b to unbreak the build.
* dnd: Add gdk_drag_context_get_display()Benjamin Otte2017-12-108-25/+103
| | | | | | Also turn it into a readable, construct-only property. Every GDK object should have this. (Apart from GdkDisplay, obviously.)
* gdk: Include gio.h in gdktypes.hBenjamin Otte2017-12-107-7/+2
| | | | | | It's where we include all our external dependencies. This way, we don't have to include it in all headers again and again.
* gtkwindow: Allow edge resizing from corners if constraints forbid either sideCarlos Garnacho2017-12-091-12/+54
| | | | | | | | The fix is twofold. First, when checking that a corner is resizable, we must check the constraints on both edges. Second, when checking either edge we must include both perpendicular sides in order to allow those to be resizable when the constraint does not allow resizing the edge being checked.
* gtkwindow: Use shadow border when calculating resize areas positionsCarlos Garnacho2017-12-091-1/+1
| | | | | This way resize areas are correctly positioned right outside the visible window edge on all sides.
* gtkwindow: Do not account handle size when checking content areaCarlos Garnacho2017-12-091-4/+4
| | | | | This is necessary to bring back the L-shaped resize corners. On all edges (not corners) the handle width is determined by the border size.
* Fix some parameter name mismatches to make g-ir-scanner happierRico Tzschichholz2017-12-092-3/+3
|
* Switch the order for cursor lookupMatthias Clasen2017-12-091-1/+1
| | | | | | | | | When looking for the cursor to apply, start from the innermost widget and go up. This is the right behavior for cases like entry icons. The top-down order we were using so far is the right behavior for cases like global wait cursors. Since we have entry icons in gtk, but not global wait cursors, lets pick the other order for now.
* treeview: Don't draw background twiceTimm Bäder2017-12-091-4/+0
| | | | This is done unconditionally for all widgets these days.
* recorder: Show rounded clip node corner size infoTimm Bäder2017-12-091-0/+16
|
* snapshot: Don't create blur nodes with radius 0Timm Bäder2017-12-091-1/+7
|
* snapshot: Collapse color matrix nodesTimm Bäder2017-12-091-5/+36
| | | | | | Color matrix nodes as the child of other color matrix nodes can happen quite frequently as a result of CSS. To ease the renderer implementations, collapse chains of color matrix nodes into one.
* Fix a few overlooked castsTimm Bäder2017-12-092-5/+5
| | | | glib warns about these now.
* paned: Grab during the dragMatthias Clasen2017-12-081-2/+4
| | | | This is necessary to ensure we get the right cursor.
* cssshadowvalue: don't apply the y_scale offset twice to the shadowMarco Trevisan (Treviño)2017-12-081-1/+1
| | | | | | | As per commit 942e904 this changed causing a regression that seems to be visible only when scale > 2. https://bugzilla.gnome.org/show_bug.cgi?id=791363
* Fix fallout from g_object_ref changeMatthias Clasen2017-12-0813-15/+16
| | | | | | g_object_ref now returns the type of the object that was passed. Introduce cast as necessary to avoid warnings due to this.
* css node tests: Update expected outputTimm Bäder2017-12-081-2/+2
|
* Fix fallout from the show-close-button renameMatthias Clasen2017-12-0813-18/+18
| | | | | I had overlooked ui files. We should really validate those during build.
* mir: Fix potential use of NULL GDBusConnectionPhilip Withnall2017-12-081-1/+10
| | | | | | | | | If we fail to connect to the session bus, it would be a bit silly to immediately try and use that NULL connection. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=668590
* Rename GtkHeaderBar::show-close-buttonMatthias Clasen2017-12-0713-48/+55
| | | | | | It is about all window buttons, so rename it to ::show-title-buttons. https://bugzilla.gnome.org/show_bug.cgi?id=779862