| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
- quick, somebody on the internet is offended!
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3074
|
| |
|
|\
| |
| |
| |
| | |
Emblem demo
See merge request GNOME/gtk!2563
|
| |
| |
| |
| |
| | |
Add a simple demo for adding emblems to icons
using GdkPaintable.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Make it possible to have no background in
the animated paintable. This will be used
in a future demo.
Update all users.
|
|/
|
|
|
| |
The paintable demos were forgetting to clear
their window variable.
|
|\
| |
| |
| |
| | |
textlayout: Avoid some iter comparisons
See merge request GNOME/gtk!2561
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
contentserializer: Don't send the terminating \0 byte for strings
Closes #3150
See merge request GNOME/gtk!2560
|
|/ /
| |
| |
| | |
Fixes #3150
|
|\ \
| |/
|/|
| |
| |
| |
| | |
Wip/jimmac/new colors
Closes #3146
See merge request GNOME/gtk!2558
|
| |
| |
| |
| |
| | |
We have a fancy macro to initialize GdkRGBAs without
any runtime work, lets use them.
|
| |
| |
| |
| | |
These were not used anymore, after a11y stopped using them.
|
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3146
|
| |
|
| |
|
|\
| |
| |
| |
| | |
x11: Print all tested glx extensions
See merge request GNOME/gtk!2556
|
|/
|
|
|
| |
When initializing a glx context, print all the extensions
we look for.
|
|\
| |
| |
| |
| |
| |
| | |
Gdk cleanups
Closes #2790
See merge request GNOME/gtk!2553
|
| |
| |
| |
| | |
This is only used in gdktoplevel.h, so move it there.
|
| |
| |
| |
| |
| |
| | |
That is what it is.
Fixes: #2790
|
| |
| |
| |
| |
| | |
This is really a toplevel state, so move it
to that header.
|
| |
| |
| |
| |
| | |
This enum is just used for a GdkToplevel property now,
so move the declaration to the gdktoplevel.h header.
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Fix vulkan context creation
Closes #3147
See merge request GNOME/gtk!2555
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| | |
| | |
| | |
| | | |
docs: Add note on command line arguments
See merge request GNOME/gtk!2554
|
|/ /
| |
| |
| |
| | |
We don't parse them any more, and developers should stop using them when
migrating from GTK3 to GTK4.
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
gsk: Fix the gl texture cache
See merge request GNOME/gtk!2552
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
Wip/otte/for master
Closes #3137
See merge request GNOME/gtk!2550
|
| |
| |
| |
| |
| | |
This is no longer necessary because the bug it was rying to solve is now
solved via the preference for min and nat size.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
Assign the values in the same place.
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
Make sure we don't call back into GtkEntryBuffer
Closes #3140
See merge request GNOME/gtk!2549
|
|/
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
Port gtksecurememory.c to Windows
See merge request GNOME/gtk!2548
|
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
It is not universally available on non-POSIX systems.
|
|\
| |
| |
| |
| | |
shadertoy demo: Cosmetic fixes
See merge request GNOME/gtk!2547
|
| | |
|