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
Matthias Clasen
3016edbe72
Merge branch 'font-chooser-docs' into 'main'
...
fontchooser: Add some details to the docs
See merge request GNOME/gtk!5041
2022-09-21 18:57:58 +00:00
Mitchell Hentges
fa554a8e85
Update GTK on Windows link: use gtk.org, not wiki
...
The old wiki page has a couple issues:
* It's out-of-date, not having any notes for GTK4 specifically,
and it doesn't link to `gvsbuild`, which (I believe) is
the current official (and best) way to build GTK with MSVC.
* It's "locked", so it's harder for contributors to update. This
is OK, except for one spicy detail:
* It's not clear how to contribute/report issues on the locked wiki
pages, so out-of-date information falls off the radar.
Regardless :) the gtk.org GTK for Windows docs are a much better
springboard, in my opinion.
2022-09-21 20:12:21 +02:00
Matthias Clasen
5b03f5c531
fontchooser: Add some details to the docs
2022-09-21 09:39:06 -04:00
Matthias Clasen
a012f5bddb
Merge branch 'cross-gi-docgen-detection' into 'main'
...
build: fix gi-docgen detection in cross builds
See merge request GNOME/gtk!5039
2022-09-20 10:58:45 +00:00
Michal Vasilek
98796d4513
build: fix gi-docgen detection in cross builds
...
gi-docgen is supposed to be ran natively on the build machine, without
native: true dependency() searches for gi-docgen on the host system.
When it doesn't find it, it falls back to a subproject even if gi-docgen
is available on the build machine.
also make gtk_doc require introspection
2022-09-20 01:27:26 +02:00