summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* assets: adjust gesture graphicwip/jimmac/cut-fingerJakub Steiner2020-09-122-23/+29
| | | | | | - quick, somebody on the internet is offended! Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3074
* Update Turkish translationEmin Tufan Çetin2020-09-121-217/+150
|
* Merge branch 'emblem-demo' into 'master'Matthias Clasen2020-09-129-14/+218
|\ | | | | | | | | Emblem demo See merge request GNOME/gtk!2563
| * gtk-demo: Add an emblem demoMatthias Clasen2020-09-113-0/+188
| | | | | | | | | | Add a simple demo for adding emblems to icons using GdkPaintable.
| * gtk-demo: Tweak the animated paintableMatthias Clasen2020-09-116-14/+28
| | | | | | | | | | | | | | | | Make it possible to have no background in the animated paintable. This will be used in a future demo. Update all users.
| * gtk-demo: Fix a few crashMatthias Clasen2020-09-112-0/+2
|/ | | | | The paintable demos were forgetting to clear their window variable.
* Merge branch 'text-layout-speedup' into 'master'Matthias Clasen2020-09-111-19/+40
|\ | | | | | | | | textlayout: Avoid some iter comparisons See merge request GNOME/gtk!2561
| * textlayout: Avoid some iter comparisonstext-layout-speedupMatthias Clasen2020-09-111-19/+40
| | | | | | | | | | | | | | We were doing more iter comparisons than necessary in the inner loop of gtk_text_layout_snapshot(), in the presence of a selection. Rewrite the code to compare line numbers instead, which is faster than full iter comparisons.
* | Merge branch 'wip/otte/for-master' into 'master'Matthias Clasen2020-09-111-1/+1
|\ \ | | | | | | | | | | | | | | | | | | contentserializer: Don't send the terminating \0 byte for strings Closes #3150 See merge request GNOME/gtk!2560
| * | contentserializer: Don't send the terminating \0 byte for stringsBenjamin Otte2020-09-111-1/+1
|/ / | | | | | | Fixes #3150
* | Merge branch 'wip/jimmac/new-colors' into 'master'Matthias Clasen2020-09-111-98/+26
|\ \ | |/ |/| | | | | | | | | Wip/jimmac/new colors Closes #3146 See merge request GNOME/gtk!2558
| * colorchooser: Don't parse color names needlesslyMatthias Clasen2020-09-111-32/+10
| | | | | | | | | | We have a fancy macro to initialize GdkRGBAs without any runtime work, lets use them.
| * colorchooser: Drop color namesMatthias Clasen2020-09-111-30/+3
| | | | | | | | These were not used anymore, after a11y stopped using them.
| * color chooser: Don't show too many custom colorsMatthias Clasen2020-09-111-6/+13
| | | | | | | | | | | | The code was hardcoding a fixed number of custom colors, but we really want to match the number of columns in the palette(s). Make it so.
| * colorChooser: updte color palettewip/jimmac/new-colorsJakub Steiner2020-09-111-68/+38
|/ | | | Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3146
* Updated Danish translation of gtk-propertiesAsk Hjorth Larsen2020-09-111-2317/+2139
|
* Updated Danish translation of gtkAsk Hjorth Larsen2020-09-111-1651/+1477
|
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-09-101-2/+6
|\ | | | | | | | | x11: Print all tested glx extensions See merge request GNOME/gtk!2556
| * x11: Print all tested glx extensionsMatthias Clasen2020-09-101-2/+6
|/ | | | | When initializing a glx context, print all the extensions we look for.
* Merge branch 'gdk-cleanups' into 'master'Matthias Clasen2020-09-1025-387/+388
|\ | | | | | | | | | | | | Gdk cleanups Closes #2790 See merge request GNOME/gtk!2553
| * gdk: Move GdkSurfaceEdge to the right headergdk-cleanupsMatthias Clasen2020-09-103-26/+26
| | | | | | | | This is only used in gdktoplevel.h, so move it there.
| * gdk: Rename GdkSurfaceState to GdkToplevelStateMatthias Clasen2020-09-1024-335/+335
| | | | | | | | | | | | That is what it is. Fixes: #2790
| * gdk: Move GdkSurfaceState to the right headerMatthias Clasen2020-09-103-49/+50
| | | | | | | | | | This is really a toplevel state, so move it to that header.
| * Move GdkFullscreenMode to the right headerMatthias Clasen2020-09-102-14/+14
| | | | | | | | | | This enum is just used for a GdkToplevel property now, so move the declaration to the gdktoplevel.h header.
* | Update Slovenian translationMatej Urbančič2020-09-101-121/+59
| |
* | Update Slovenian translationMatej Urbančič2020-09-101-105/+93
| |
* | Merge branch 'fix-vulkan-context-creation' into 'master'Matthias Clasen2020-09-102-4/+4
|\ \ | | | | | | | | | | | | | | | | | | Fix vulkan context creation Closes #3147 See merge request GNOME/gtk!2555
| * | gdk: Don't create surfaces of size 0x0Matthias Clasen2020-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Don't pass 0x0 as size when calling gdk_surface_new(). The Wayland backend takes us literally, and we end up with a surface that (temporarily) has these dimensions, confusing other APIs that we pass the size to, such as Vulkan.
| * | vulkan: Fix swapchain creationMatthias Clasen2020-09-101-3/+3
| |/ | | | | | | | | | | | | | | | | We end up with a surface that has size 0x0 at the time we create the Vulkan context, and that is a size that Vulkan doesn't like, so ensure we request at least 1x1. Fixes: #3147
* | Merge branch 'ebassi/for-master' into 'master'Matthias Clasen2020-09-101-0/+9
|\ \ | | | | | | | | | | | | docs: Add note on command line arguments See merge request GNOME/gtk!2554
| * | docs: Add note on command line argumentsEmmanuele Bassi2020-09-101-0/+9
|/ / | | | | | | | | We don't parse them any more, and developers should stop using them when migrating from GTK3 to GTK4.
* | Update Italian translationMilo Casagrande2020-09-101-1985/+1286
|/
* NEWS: UpdatesMatthias Clasen2020-09-091-0/+64
|
* search entry: Don't propagate handled eventsMatthias Clasen2020-09-091-2/+2
| | | | | | | | | | | When the text says it has handled the event, trust it. We don't want to emit ::search-started if the content hasn't changed, but we still should not propagate e.g. an Insert key press if it has already toggled overwrite mode in the text. Fixes: #2874
* Merge branch 'fix-gl-texture-cache' into 'master'Matthias Clasen2020-09-093-34/+82
|\ | | | | | | | | gsk: Fix the gl texture cache See merge request GNOME/gtk!2552
| * gsk: Fix the gl texture cacheMatthias Clasen2020-09-093-34/+82
| | | | | | | | | | | | | | | | | | | | We need to include both the scale and the filtering in the key for the texture cache, since those affect the texture. This fixes misrendering in the recorder in the inspector whenever transforms are involved. An example where this was showing up is testrevealer's swing transition.
* | Update German translationTim Sabsch2020-09-091-2241/+2949
|/
* Merge branch 'wip/otte/for-master' into 'master'Benjamin Otte2020-09-092-16/+60
|\ | | | | | | | | | | | | Wip/otte/for master Closes #3137 See merge request GNOME/gtk!2550
| * revealer: Remove arbitrary 100x scale limitBenjamin Otte2020-09-091-16/+12
| | | | | | | | | | This is no longer necessary because the bug it was rying to solve is now solved via the preference for min and nat size.
| * revealer: Prefer min and nat sizeBenjamin Otte2020-09-091-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assume that the fully expanded revealer will likely get an allocation that matches the child's minimum or natural allocation, so we special-case these two values. So when - due to the precision loss - multiple sizes would match the current allocation, we don't pick one at random, we prefer the min and nat size. The preference of nat size over min sie was decided after an IRC vote, we don't actually have an idea what's more likely to happen in the real world. Should we ever get better data, we might want to switch.
| * revealer: Use floor(), not ceil()Benjamin Otte2020-09-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | We use ceil() in measure(), so using it again will increase the child's size whenever there is even a tiny rounding error. This should also not make the size too small, because: min = ceil(child_min * scale) min / scale >= child_min floor (min / scale) >= floor (child_min) = child_min The last equality is because child_min is an integer. Fixes #3137
| * revealer: Refactor codeBenjamin Otte2020-09-091-2/+7
| | | | | | | | Assign the values in the same place.
| * widget: Add a critical when allocation is too small.Benjamin Otte2020-09-091-0/+22
|/
* Merge branch 'issue-3140' into 'master'Emmanuele Bassi2020-09-091-10/+17
|\ | | | | | | | | | | | | Make sure we don't call back into GtkEntryBuffer Closes #3140 See merge request GNOME/gtk!2549
| * Make sure we don't call back into GtkEntryBufferEmmanuele Bassi2020-09-091-10/+17
|/ | | | | | | | | | | After commit 7e77afe94c14365d538c958d23c1e3e074530415 moved the deletion of text into the signal handler, in order to make undo work, we need to override the GtkEntryBuffer::deleted-text class closure when subclassing GtkEntryBuffer, as well as overriding GtkEntryBufferClass.delete_text, otherwise the default class closure will be invoked, and will try to delete an empty buffer. Fixes: #3140
* Merge branch 'gtksecurememory-win32' into 'master'Emmanuele Bassi2020-09-092-0/+48
|\ | | | | | | | | Port gtksecurememory.c to Windows See merge request GNOME/gtk!2548
| * gtksecurememory.c: Port secure memory allocation to WindowsChun-wei Fan2020-09-092-0/+44
| | | | | | | | | | | | Use the Windows API CryptProtectMemory() to encrypt the data that we want to secure, and use CryptUnprotectMemory() to de-crypt the secured data that we want to access, since mmap() and mlock() are not available on Windows.
| * gtksecurememory.c: Don't include unistd.h unconditionallyChun-wei Fan2020-09-091-0/+4
|/ | | | It is not universally available on non-POSIX systems.
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-09-091-5/+15
|\ | | | | | | | | shadertoy demo: Cosmetic fixes See merge request GNOME/gtk!2547
| * shadertoy demo: Cosmetic fixesMatthias Clasen2020-09-081-5/+15
| |