Matthias Clasen
cefb0a3eb8
Merge branch 'header-cleanup' into 'main'
...
Header cleanup
See merge request GNOME/gtk!5049
2022-09-24 14:23:39 +00:00
Matthias Clasen
bc661a8ed5
gdk: Rename gdkpixbuf-drawable.c
...
There is nothing particularly specific to drawables
in there (and we don't have that concept anymore),
so just name the source file to match the header.
Easier for everybody.
2022-09-24 10:03:37 -04:00
Matthias Clasen
9ff549799d
gdk: Tweaks to keyname handling
...
Rename the private header to follow our naming
conventions, and drop the extra gdkkeys.c file.
2022-09-24 10:03:37 -04:00
Matthias Clasen
e499a09759
Drop gtkintl.h
...
Include gtkprivate.h for I_() and glib-i18n.h for
gettext macros.
2022-09-24 10:03:37 -04:00
Carlos Garnacho
fb280e47d6
gtkimcontextwayland: Shuffle full resets after IM changes
...
Doing reset() on the text widgets after commit and delete_surrounding
is still too eager for some IMs (e.g. those that expect being able
to commit text while keeping a preedit buffer shown).
However, reset() is more of a "synchronize state" action on Wayland,
and it is still desirable to do that after changes that do come from
the IM (e.g. requesting the new surrounding text and cursor/anchor
positions). Notably here, the text_input protocol may still come up
with a preedit string after this state synchronization happens.
Shuffle the code so that the text widgets do not reset() the IM
context after text is deleted or committed, but the Wayland IM does
apply its practical effects after these actions happen. This keeps
the Wayland IM fully up-to-date wrt text widget state, while not
altering the ::commit and ::delete-surrounding-text behavior for
other IM context implementations.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5200
Fixes: 5b78fe2721
(gtktextview: Also reset IM context after IM...)
Fixes: 7c0a395ff9
(gtktext: Also reset IM context after IM...)
Fixes: 52ac71b972
(gtktextview: Shuffle the places doing IM reset)
Fixes: 9e29739e66
(gtktext: Shuffle the places doing IM reset)
2022-09-24 11:52:16 +02:00
Matthias Clasen
4aabc45685
Drop gdkintl.h
...
This header was merely including gi18n-lib.h.
Just do that directly.
2022-09-23 23:33:42 -04:00
Matthias Clasen
a8af7caae1
Rename gdk-private.h to gdkprivate.h
...
The extra - does not add any value.
2022-09-23 23:23:27 -04:00
Matthias Clasen
7d2c296357
Rename gdkconstructor.h to gdkconstructorprivate.h
...
This is the naming convention for private headers.
2022-09-23 23:14:08 -04:00
Matthias Clasen
c24a69549d
Rename gdkdebug.h to gdkdebugprivate.h
...
This is the naming convention for private headers.
2022-09-23 23:12:01 -04:00
Matthias Clasen
f141da6b55
gtk: Dissolve gtk-autocleanup.h
...
Move the autocleanup declarations into their
respective headers.
2022-09-23 23:07:43 -04:00
Matthias Clasen
3688ece655
gsk: Dissolve gsk-autocleanup.h
...
Move the autocleanup declarations into their
respective headers.
2022-09-23 19:50:09 -04:00
Matthias Clasen
61a51dea7b
gdk: Dissolve gdk-autocleanup.h
...
Move the autocleanup declarations into their
respective headers.
While we are at it, correct the autocleanup
declaration for GdkEvent to use gdk_event_unref,
not g_object_unref. Oops
2022-09-23 19:49:58 -04:00
Matthias Clasen
bccb4f87be
Merge branch 'debug-envvars-cleanup' into 'main'
...
Clean up debug env vars
See merge request GNOME/gtk!5044
2022-09-23 23:06:47 +00:00
Matthias Clasen
52b6dbf2b4
gtk: Remove old debug macros
...
These are no longer used.
2022-09-23 18:51:46 -04:00
Matthias Clasen
f33f55bcbb
gtk: Use the new debug macros
2022-09-23 18:12:39 -04:00
Matthias Clasen
f4d3f45c16
gtk: Introduce new debug macros
...
Introduce GTK_DISPLAY_DEBUG() and GTK_DEBUG(), which
mirror the new macros in gdk. They use the same helper
function gdk_debug_message().
2022-09-23 18:12:39 -04:00
Matthias Clasen
1e65d6640f
tests: Rewrite the icontheme tests
...
The lookup order tests were relying on out
debug spew using g_log, so they can redirect
the output by setting a log writer function.
Rewrite this to use g_test_subprocess() and
parse stderr.
2022-09-23 18:12:39 -04:00
Matthias Clasen
8a4fd30797
gsk: drop old debug macros
...
These are no longer used.
2022-09-23 18:11:48 -04:00
Matthias Clasen
9818ec4ad9
gsk: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
4d08eb264d
gsk: Introduce new debug macros
...
Introduce GSK_RENDERER_DEBUG() and GSK_DEBUG(), which
mirror the new macros in gdk. They use the same helper
function gdk_debug_message().
2022-09-23 18:11:48 -04:00
Matthias Clasen
bc159207bd
gdk: Drop old debug macros
...
Drop the old GDK_NOTE() and GDK_DISPLAY_NOTE()
macros from gdkdebug.h. Reintroduce them in the
win32 backend, where they are still used.
2022-09-23 18:11:48 -04:00
Matthias Clasen
1f166ae071
macos: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
ce4c2154f4
x11: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
71fedee85d
wayland: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
90c2b548e5
broadway: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
1d48f96fc5
gdk: Use the new debug macros
2022-09-23 18:11:48 -04:00
Matthias Clasen
10255eee72
Introduce new debug macros
...
Introduce GDK_DISPLAY_DEBUG() and GDK_DEBUG() and
the helper function gdk_debug_message(). This is
meant to clean up the mess of our current debug
statements which wildly mix g_message, g_print
and g_printerr.
2022-09-23 18:11:48 -04:00
Matthias Clasen
5b2568e9e4
Merge branch 'wip/jimmac/backdrop-titles' into 'main'
...
theme: tone down unfocused title labels
Closes #4468
See merge request GNOME/gtk!5047
2022-09-23 17:27:08 +00:00
Jakub Steiner
be6413b0e7
theme: tone down unfocused title labels
...
- mimic libadwaita in toning down unfocused titles. Cargo culting the
filter instead of using normal opacity property.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4468
2022-09-23 17:01:24 +02:00
Matthias Clasen
15d1c86b2c
Merge branch 'wip/carlosg/touchpad-gestures-matching-fingers' into 'main'
...
gtkgesture: Do not update gestures with mismatching n-points on touchpad
See merge request GNOME/gtk!5046
2022-09-23 14:37:58 +00:00
Marek Černocký
dd47e3bcab
Updated Czech translation
2022-09-23 16:22:41 +02:00
Carlos Garnacho
872534e763
gtkgesture: Do not update gestures with mismatching n-points on touchpad
...
Check that the touchpad gesture event has a matching number of fingers before
updating the GtkGesture point tracking, instead of afterwards. Avoids pointless
tracking of these touchpad events when we know beforehand that the gesture
will never be activated by the touchpad events.
Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/5199
2022-09-23 16:04:32 +02:00
Marek Černocký
d351cbbcea
Updated Czech translation
2022-09-23 15:57:50 +02:00
Matthias Clasen
6c95547c3f
docs: Some updates
...
Make the section about environment variables match
current code.
Add a warning about env vars not being stable and
only for debugging.
2022-09-21 21:59:33 -04:00
Matthias Clasen
c7a7e550dc
Only print supported debug flags
...
It is a bit disorienting to print a lot of unavailable
debug flags, with some working ones mixed in. Just show
the ones that work.
2022-09-21 21:51:58 -04:00
Matthias Clasen
ee1a634c25
Mark the invert-text-dir flag as always there
...
This flag works in non-debug builds too.
2022-09-21 21:47:06 -04:00
Matthias Clasen
55ab99cb98
Make GL flavor flags always available
...
No need to restrict this to debug builds.
2022-09-21 21:29:34 -04:00
Matthias Clasen
f50b0a0bcb
Make the gl-debug debug flag always available
...
No need to restrict this to debug builds.
2022-09-21 21:17:16 -04:00
Matthias Clasen
01054c9c79
Make the gl-gles debug flag always available
...
No need to restrict this to debug builds.
2022-09-21 21:12:22 -04:00
Matthias Clasen
8bd3ec2ba1
Make the gl-legacy debug flag always available
...
No need to restrict this to debug builds.
2022-09-21 21:09:08 -04:00
Matthias Clasen
e08a9ea9ad
Drop the gl-texture-rect debug flag
...
This was not doing anything.
2022-09-21 21:05:25 -04:00
Matthias Clasen
1987398ec5
Drop the software-gl debug flag
...
This was not doing anything.
2022-09-21 21:03:40 -04:00
Matthias Clasen
fa0fc9acb8
Make the gl-disable flag always available
...
No need to restrict this to debug builds.
2022-09-21 20:57:22 -04:00
Matthias Clasen
fa1c461c13
Make the portals debug flag always available
...
No need to restrict this to debug builds.
2022-09-21 20:55:46 -04:00
Matthias Clasen
a99b05525d
Make the nograbs flag always available
...
No need to restrict this to debug builds.
2022-09-21 20:53:46 -04:00
Matthias Clasen
a337b21a4f
Make vulkan-disable always available
...
There is no need to restrict this to debug builds.
2022-09-21 20:51:35 -04:00
Matthias Clasen
1b96828667
Make vulkan-validate always available
...
There is no need to restrict this debug builds.
2022-09-21 20:49:53 -04:00
Matthias Clasen
7785c18c56
Fix high-depth handling
...
We mark this flag as always available, but we
were only checking it in debug builds.
2022-09-21 20:47:26 -04:00
Matthias Clasen
183709c522
Fix default-settings handling
...
This is meant to be always available, but we
were checking for debug in one place.
2022-09-21 20:45:43 -04:00
Emmanuele Bassi
458bf674ad
Merge branch 'windows-build-instructions-link' into 'main'
...
Update GTK on Windows link: use gtk.org, not wiki
See merge request GNOME/gtk!5043
2022-09-21 21:06:23 +00:00