summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* reftests: Add tests for label sizingwip/otte/center-center-centerBenjamin Otte2021-12-085-0/+80
|
* testsuite: Add a test for char wrappingBenjamin Otte2021-12-083-0/+45
|
* reftests: Add center-center reftests without GtkOverlayBenjamin Otte2021-12-0831-0/+440
|
* reftests: Rename a bunch of testsBenjamin Otte2021-12-0831-30/+30
| | | | They use a GtkOverlay, so reflect that in the name.
* picture: Return natural size 0 for size 0Ivan Molodetskikh2021-12-084-4/+5
| | | | | | | It was returning the full natural size (same as -1) due to default value handling in the code below. Tests have been updated to match this output.
* Merge branch 'wip/otte/viewport' into 'main'Benjamin Otte2021-12-071-74/+55
|\ | | | | | | | | viewport: Handle things differently See merge request GNOME/gtk!4220
| * viewport: Allocate properlyBenjamin Otte2021-12-081-62/+43
| | | | | | | | | | | | Instead of allocation width for height for width for height or whatever that code was doing, actually allocate the size we were given or the requested size, whatever is larger.
| * Revert "viewport: Actually report the size we're gonna allocate"Benjamin Otte2021-12-071-50/+50
|/ | | | This reverts commit b8468af4117974fd2af14e863865f494b021f29c.
* Merge branch 'wip/otte/viewport' into 'main'Benjamin Otte2021-12-071-83/+76
|\ | | | | | | | | viewport: Use array for member variables See merge request GNOME/gtk!4219
| * viewport: Actually report the size we're gonna allocateBenjamin Otte2021-12-071-50/+50
| | | | | | | | | | | | | | Don't just pass on measure() calls, but actually behave in the way we behave during size allocate. This should improve cases where GtkScrolledWindow is used with GTK_POLICY_NEVER.
| * viewport: Use array for member variablesBenjamin Otte2021-12-071-37/+30
| | | | | | | | That way we can index them by orientation in future commits.
* | Merge branch 'wip/otte/for-main' into 'main'Benjamin Otte2021-12-071-1/+1
|\ \ | |/ | | | | | | gtktypes: GTK_INVALID_LIST_POSITION should be an int See merge request GNOME/gtk!4218
| * gtktypes: GTK_INVALID_LIST_POSITION should be an intBenjamin Otte2021-12-071-1/+1
|/ | | | | | GListModel uses guint, so the macros we define for it should match that. Related: !3738
* Merge branch 'gi-const' into 'main'Emmanuele Bassi2021-12-071-1/+1
|\ | | | | | | | | gtk: fix GTK_INVALID_LIST_POSITION type See merge request GNOME/gtk!3738
| * gtk: fix GTK_INVALID_LIST_POSITION typeMarc-André Lureau2021-07-081-1/+1
| | | | | | | | | | | | Unless there is an explicit front cast, constants are generally int for g-i. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* | Update Portuguese translationHugo Carvalho2021-12-041-103/+104
| |
* | Update Ukrainian translationYuri Chornoivan2021-12-041-100/+106
| |
* | Merge branch 'check-for-unknown-duration' into 'main'Benjamin Otte2021-12-041-1/+3
|\ \ | | | | | | | | | | | | gstmediafile: Correctly report unknown duration See merge request GNOME/gtk!4217
| * | gstmediafile: Correctly report unknown durationIvan Molodetskikh2021-12-041-1/+3
| | | | | | | | | | | | | | | | | | When loading .mp3 files the duration is initially unknown. Before this change it was reported as a large integer (since GST_CLOCK_TIME_NONE is -1). Now it's correctly reported as 0.
* | | Update Swedish translationAnders Jonsson2021-12-041-221/+240
| | |
* | | Merge branch 'wip/carlosg/im-wayland-module-priority' into 'main'Matthias Clasen2021-12-031-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | gtkimcontextwayland: Set a higher IO extension priority Closes #4443 See merge request GNOME/gtk!4216
| * | | gtkimcontextwayland: Set a higher IO extension priorityCarlos Garnacho2021-12-041-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | We want this to take precedence in the wayland platform to other modules that might be loaded via the IO extension point. None of those is going to bode well in this platform. Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4443
* | | Merge branch 'wip/hadess/listbox-fixes' into 'main'Matthias Clasen2021-12-031-0/+3
|\ \ \ | | | | | | | | | | | | | | | | listbox: Explain behaviour of GtkListBoxCreateWidgetFunc See merge request GNOME/gtk!4194
| * | | listbox: Explain behaviour of GtkListBoxCreateWidgetFuncBastien Nocera2021-11-251-0/+3
| | | | | | | | | | | | | | | | | | | | It might be an interesting shortcut for applications to use, but it needs to be documented to be useful and agreed.
* | | | Merge branch 'wip/chergert/inspector-im-module' into 'main'Matthias Clasen2021-12-032-0/+66
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inspector: add im-module Closes #4512 See merge request GNOME/gtk!4214
| * | | | inspector: add im-moduleChristian Hergert2021-12-032-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new row to the Global/Information section which displays the GTK im-module that is likely to be in use unless changed by an application. It responds to updates of GtkSettings:gtk-im-module unless the GTK_IM_MODULE environment variable is set. Fixes #4512
* | | | | Merge branch 'textview-im-surrounding' into 'main'Matthias Clasen2021-12-032-8/+20
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | textview: Provide more context to input methods See merge request GNOME/gtk!4209
| * | | | | textview: Provide more context to input methodsMatthias Clasen2021-12-032-8/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When returning surrounding context to input methods, include at least 2 words before and after the insertion point. Update the affected input method tests.
* | | | | | Merge branch 'text-scroll-test' into 'main'Matthias Clasen2021-12-033-6/+200
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve scroll-to mark behavior Closes #4325 See merge request GNOME/gtk!4208
| * | | | | textview: Improve scroll-to-mark behaviorMatthias Clasen2021-12-011-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea of within-margin is to scroll as little as possible to bring the mark within the margins defined by the factor. The code was achieving that when scrolling down, but not when scrolling up. This change makes things symmetrical. Fixes: #4325
| * | | | | Add a testcase for scroll-to-markMatthias Clasen2021-12-012-0/+194
| |/ / / / | | | | | | | | | | | | | | | This should help for figuring out #4325.
* | | | | Merge branch 'text-anchor-replacement-char' into 'main'Matthias Clasen2021-12-037-19/+150
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | textchildanchor: allow to specify replacement character See merge request GNOME/gtk!4213
| * | | | | textchildanchor: allow to specify replacement characterGeorg Vienna2021-12-037-19/+150
|/ / / / /
* | | | | Merge branch 'better-tabs-demo' into 'main'Matthias Clasen2021-12-033-8/+14
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Beef up the tabs demo See merge request GNOME/gtk!4200
| * | | | | Beef up the tabs demoMatthias Clasen2021-12-031-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | Show various alignments, including numeric.
| * | | | | Bump pango reqMatthias Clasen2021-12-022-3/+3
| | |_|/ / | |/| | | | | | | | | | | | | Require pango 1.50.
* | | | | Merge branch 'gtk4-win32-egl' into 'main'Benjamin Otte2021-12-032-9/+22
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Fix running GTK4 under EGL on Windows See merge request GNOME/gtk!4188
| * | | | gskglcompiler.c: Force GLSL version 300 es as neededChun-wei Fan2021-12-031-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For libANGLE to work with our shaders, we must use "300 es" for the #version directive in our shaders, as well as using the non-legacy/ non-GLES codepath in the shaders. In order to check whether we are using the GLSL 300 es shaders, we check whether we are using a GLES 3.0+ context. As a result, make ->glsl_version a const char* and make sure the existing shader version macros are defined apprpriately, and add a new macro for the "300 es" shader version string. This will allow the gtk4 programs to run under Windows using EGL via libANGLE. Some of the GL demos won't work for now, but at least this makes things a lot better for using GL-accelerated graphics under Windows for those that want to or need to use libANGLE (such as those with graphics drivers that aren't capable of our Desktop (W)GL requirements in GTK.
| * | | | gdksurface-win32.c: Call gdk_surface_set_egl_native_window()Chun-wei Fan2021-12-031-0/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | .. when creating the surface (with the HWND associated with the newly-created surface) as well as destroying the surface (with NULL, since the HWND is going to be destroyed), so that we can tie the EGL calls to the HWND that we want to do the EGL stuff.
* | | | Merge branch 'issue-4376' into 'main'Matthias Clasen2021-12-021-47/+49
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update placeholder visibility when setting a buffer Closes #4376 See merge request GNOME/gtk!4211
| * | | | Update placeholder visibility when setting a bufferEmmanuele Bassi2021-12-021-47/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we set the placeholder text before setting a buffer, we end up with both the placeholder *and* the buffer's contents visible at the same time. Fixes: #4376
* | | | | Merge branch 'wip/carlosg/tablet-fixes' into 'main'Matthias Clasen2021-12-022-16/+9
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | Wayland tablet device modifier fixes Closes #4103 and #4102 See merge request GNOME/gtk!4210
| * | | | gesturestylus: Use GtkEventControllerEvent events to track changesCarlos Garnacho2021-12-021-14/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use gtk_gesture_get_last_event() underneath at places that need to work during ::proximity emission. Since GtkGesture only tracks events while there are button/touch presses involved, this is not going to bring the right result there. Use gtk_event_controller_get_current_event() consistently inside, which always pokes at the event being handled (which is the correct intent here).
| * | | | gdk/wayland: Unset GDK_BUTTON1_MASK on proximity_inCarlos Garnacho2021-12-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some circumstances (e.g. activating with a stylus something that closes a window), we can receive zwp_tablet_tool.proximity_out without receiving a zwp_tablet_tool.up beforehand. In those cases, we are not expecting neither .up nor .button, so reset the stylus device button modifiers on proximity_out. Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4103
| * | | | gdk/wayland: Use right modifiers for tablet button eventsCarlos Garnacho2021-12-021-2/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are looking up the seat logical pointer modifiers (i.e. the wl_pointer), not the ones for the tablet tool device. This breaks accounting further along in GTK leaving stuck implicit grabs. Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4102
* | | | Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2021-12-011-90/+95
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | textbuffer: Fix pasting text Closes #4357 See merge request GNOME/gtk!4205
| * | | | textbuffer: Try harder to fix pastingMatthias Clasen2021-11-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out we can't just use the size returned by the memory stream as-is, since it may contain unfilled garbage at the end, which utf8 validation will choke on. So, cut it off at the first '\0' we find.
| * | | | textbuffer: Fix pasting textMatthias Clasen2021-11-301-90/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The memory stolen from a memory outputstream isn't guaranteed to be 0-terminated, so don't make that assumption. Fixes: #4357
* | | | | Merge branch 'update_focus_indicators_in_popovers' into 'main'Matthias Clasen2021-12-013-7/+18
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | update focus indicators in popovers See merge request GNOME/gtk!4124
| * | | | | update focus indicators in popoversCaolán McNamara2021-11-053-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.gnome.org/GNOME/gtk/-/issues/4383