summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* label: Allow picking a baseline rowlabel-baseline-rowMatthias Clasen2023-04-292-5/+105
| | | | | Add a property that specifies which line in a multi-line label to align to the baseline.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2023-04-292-8/+21
|\ | | | | | | | | entry: Ignore the baseline when centering See merge request GNOME/gtk!5889
| * widget: Don't set baselines when unusedMatthias Clasen2023-04-291-8/+18
| | | | | | | | | | | | | | When we are not doing baseline alignment, don't pass a baseline to the allocated widget. This helps because a number of widgets (GtkLabel, GtkEntry, etc) always position their text on the given baseline.
| * entry: Ignore the baseline when centeringMatthias Clasen2023-04-291-0/+3
|/ | | | | GtkEntry was always placing its text on the baseline, even when the valign said something else.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2023-04-292-2/+4
|\ | | | | | | | | theme: Reinstate switch labels in hc See merge request GNOME/gtk!5888
| * testbaseline2: Don't set height-requestsMatthias Clasen2023-04-291-1/+1
| | | | | | | | | | Widget with height requests have their baselines ignored. Oops.
| * theme: Reinstate switch labels in hcMatthias Clasen2023-04-291-1/+3
|/ | | | | | | Since we show them in GNOME shell, show them here too. The comment that says "only show these in the a11y theme" was still there, but we were always hiding them.
* Update Friulian translationFabio Tomat2023-04-291-476/+615
|
* Merge branch 'wip/otte/for-main' into 'main'Benjamin Otte2023-04-293-4/+104
|\ | | | | | | | | wayland: Use wl_surface_damage_buffer() in Cairo See merge request GNOME/gtk!5886
| * rendernode: Add diffing for affine transformsBenjamin Otte2023-04-291-1/+32
| | | | | | | | | | This will be needed most importantly for inverted textures, like in GLArea.
| * wayland: Use wl_surface_damage_buffer() in CairoBenjamin Otte2023-04-292-3/+72
| | | | | | | | | | | | | | ... when it is available. Also introduce the new function gdk_rectangle_transform_affine(), which looks like overkill for this purpose, but I'm about to use it elsewhere.
* | Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2023-04-291-3/+2
|\ \ | | | | | | | | | | | | shortcutswindow: Avoid criticals See merge request GNOME/gtk!5885
| * | shortcutswindow: Avoid criticalsMatthias Clasen2023-04-281-3/+2
|/ / | | | | | | | | No point in resetting accessible relations when we are in finalize.
* | Merge branch 'clarify-swapped-default-object-signal' into 'main'Matthias Clasen2023-04-281-3/+4
|\ \ | | | | | | | | | | | | builder: Clarify default "swapped" value when "object" is set for signals See merge request GNOME/gtk!4514
| * | builder: Clarify default "swapped" value when "object" is set for signalsvanadiae2022-02-241-3/+4
| | | | | | | | | | | | | | | | | | | | | I encountered this issue where I casted user_data to my self type, but it showed me they were actually swapped when I set the "object" signal attribute. After checking the source code which confirms this, it is a good idea to properly document that convenient behaviour.
* | | Merge branch 'gtkshortcutswindow_a11y' into 'main'Matthias Clasen2023-04-282-1/+32
|\ \ \ | | | | | | | | | | | | | | | | GtkShortcutsWindow: Allow a screen reader user to browse the available shortcuts See merge request GNOME/gtk!5042
| * | | GtkShortcutsWindow: Allow a screen reader user to browse the available shortcutsLukáš Tyrychtr2022-09-212-1/+32
| | | | | | | | | | | | | | | | | | | | That required making the shortcuts focusable and with a meaningful accessibility labels.
* | | | Merge branch 'harmonize-would_drop' into 'main'Matthias Clasen2023-04-282-1/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Harmonize would_drop() replacement for g_log_writer_default_would_drop() See merge request GNOME/gtk!4935
| * | | | Harmonize would_drop() replacement for g_log_writer_default_would_drop()Hannes Müller2022-08-082-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reuse a better to read would_drop() from ./testsuite/reftests/gtk-reftest.c in ./tools/gtk-builder-tool.c Fixed wrong indentation in ./testsuite/reftests/gtk-reftest.c
* | | | | Merge branch 'deprecate-get-allocation' into 'main'Matthias Clasen2023-04-2815-49/+81
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Deprecate get allocation See merge request GNOME/gtk!5882
| * | | | | Deprecate gtk_widget_get_allocated_baselineMatthias Clasen2023-04-282-1/+3
| | | | | |
| * | | | | Stop using gtk_widget_get_allocated_baselineMatthias Clasen2023-04-287-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | Use gtk_widget_get_baseline instead.
| * | | | | Add gtk_widget_get_baselineMatthias Clasen2023-04-282-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is just a renaming of gtk_widget_get_allocated_baseline that fits better with gtk_widget_get_width/height.
| * | | | | Deprecate gtk_widget_get_allocationMatthias Clasen2023-04-282-1/+3
| | | | | |
| * | | | | flowbox: Use deprecation guards around get_allocationMatthias Clasen2023-04-281-0/+10
| | | | | |
| * | | | | inspector: Show bounds instead of allocationMatthias Clasen2023-04-282-14/+16
| | | | | |
| * | | | | scrolledwindow: Stop using gtk_widget_get_allocationMatthias Clasen2023-04-281-10/+8
| | | | | |
| * | | | | textutil: Stop using gtk_widget_get_allocationMatthias Clasen2023-04-281-3/+1
| | | | | |
| * | | | | tetview: Stop using gtk_widget_get_allocationMatthias Clasen2023-04-281-6/+2
| | | | | |
| * | | | | text: Stop using gtk_widget_get_allocationMatthias Clasen2023-04-281-5/+7
| | | | | |
* | | | | | README: UpdatesMatthias Clasen2023-04-281-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop the section that talked about main and how to update local checkouts - its been 2 years, people should have gotten around to it by now. Add some general git hints instead.
* | | | | | Merge branch 'wip/otte/for-main' into 'main'Benjamin Otte2023-04-283-19/+16
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix hangs on Wayland Closes #5761 See merge request GNOME/gtk!5884
| * | | | | wayland: Set EGL swap interval to 0.Benjamin Otte2023-04-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's no need for EGL to do any timing, we do it in GTK already. This fixes hangs in Mesa when we hide a surface after a SwapBuffers() but before the frame callback arrives. If we then reshow the surface and immediately render to it, Mesa would still have a frame callback from before the hiding and forever poll() waiting for the compositor to send the callback. Fixes #5761
| * | | | | wayland: Disconnect the frame callback when hidingBenjamin Otte2023-04-282-19/+13
| |/ / / / | | | | | | | | | | | | | | | | | | | | Do not leave spurious frame callbacks around wen hiding surfaces. Instead, store the callback and remove it.
* | | | | migrating-3to4: Don't mention removed Box method &Daniel Boles2023-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | donʼt mention its renamed successor either, as that has its own section later. We could have another sentence paragraph like ‘In the case of GtkBox, the pack methods have been renamed to X and lost the trailing arguments Y’, but that wonʼt help people prepare still on GTK3, which is the point in the affected section… so just remove the misleading relic.
* | | | | Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2023-04-281-2/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Cosmetics See merge request GNOME/gtk!5883
| * | | | | CosmeticsMatthias Clasen2023-04-281-2/+4
| |/ / / /
* | | | | UpdatesMatthias Clasen2023-04-281-0/+68
| | | | |
* | | | | Update Chinese (China) translationBoyuan Yang2023-04-281-466/+584
|/ / / /
* | | | Merge branch 'wip/otte/texturebuilder' into 'main'Benjamin Otte2023-04-2817-67/+1009
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Add GdkGLTextureBuilder See merge request GNOME/gtk!5862
| * | | | gldriver: Add a sync when creating texturesMatthias Clasen2023-04-281-0/+6
| | | | |
| * | | | gstreamer: Defer the syncMatthias Clasen2023-04-281-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't sync right when we receive the buffer, pass it along with the texture to be executed later in the renderer.
| * | | | glarea: SynchronizeMatthias Clasen2023-04-281-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a fence object and pass it along when creating the GL texture, so that the GL renderer can wait for the texture to be ready.
| * | | | gsk: Synchronize when using texturesMatthias Clasen2023-04-274-15/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass the GLsync object from texture into our command queue, and when executing the queue, wait on the sync object the first time we use its associated texture.
| * | | | gltexture: Synchronize when downloadingMatthias Clasen2023-04-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | If the GL texture has a sync object, wait on it before downloading the data.
| * | | | gltexture: Optionally take a sync objectMatthias Clasen2023-04-274-4/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new function to TextureBuilder that takes a GLsync that requires internal code to wait on before using the texture. Somewhat sneakily, we don't take the sync if syncs are not supported by the current GL context. As public API has no code to query the sync for the destroy notify, this is fine and it means we don't have to do the check every time we want to call gdk_texture_get_sync() internally.
| * | | | glcontext: Add a way to check for GLsyncMatthias Clasen2023-04-272-2/+19
| | | | |
| * | | | gltexture: Deprecate gdk_gl_texture_new()Benjamin Otte2023-04-272-1/+4
| | | | | | | | | | | | | | | | | | | | Use GdkGLTextureBuilder instead.
| * | | | glrenderer: Port to GdkGLTextureBuilderBenjamin Otte2023-04-271-13/+23
| | | | |
| * | | | media-gstreamer: Port to GdkGLTextureBuilderBenjamin Otte2023-04-271-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | This is a rudimentary port that does not take advantage of all the cool new formats that we could support now.