gtk4.git
3 years agoinspector: Use more compact list styles
Matthias Clasen [Wed, 5 Oct 2022 03:23:54 +0000 (23:23 -0400)]
inspector: Use more compact list styles

Use the same style classes throughout for
data lists that benefit from smaller fonts.

3 years agoMerge branch 'inspector-menus' into 'main'
Matthias Clasen [Wed, 5 Oct 2022 03:11:41 +0000 (03:11 +0000)]
Merge branch 'inspector-menus' into 'main'

Drop unused includes

See merge request GNOME/gtk!5082

3 years agoinspector: Stop using a treeview for menus
Matthias Clasen [Wed, 5 Oct 2022 02:46:53 +0000 (22:46 -0400)]
inspector: Stop using a treeview for menus

Replace this with a GtkColumnView.

3 years agoDrop unused includes
Matthias Clasen [Wed, 5 Oct 2022 01:36:21 +0000 (21:36 -0400)]
Drop unused includes

This gets rid of treeview includes in a number of places.

3 years agoMerge branch 'mountoperation-trees' into 'main'
Matthias Clasen [Wed, 5 Oct 2022 02:48:39 +0000 (02:48 +0000)]
Merge branch 'mountoperation-trees' into 'main'

mountoperation: Survive on Wayland

See merge request GNOME/gtk!5081

3 years agomountoperation: Don't use a treeview
Matthias Clasen [Wed, 5 Oct 2022 01:24:16 +0000 (21:24 -0400)]
mountoperation: Don't use a treeview

Port the process list from GtkTreeView
to GtkListView, and fix a number of broken
things along the way.

3 years agotestmountoperation: Test process dialog
Matthias Clasen [Wed, 5 Oct 2022 01:25:26 +0000 (21:25 -0400)]
testmountoperation: Test process dialog

Without this, it is hard to trigger the
dialog. Event with this, we have to force
GtkMountOperation to use its own dialog.

3 years agomountoperation: Survive on Wayland
Matthias Clasen [Wed, 5 Oct 2022 00:15:43 +0000 (20:15 -0400)]
mountoperation: Survive on Wayland

The code was assuming it is dealing with an
X11 display, and trigger assertions. Fix that
to make it work at least as well as it does
on Windows.

3 years agoMerge branch 'inspector-trees' into 'main'
Matthias Clasen [Tue, 4 Oct 2022 20:54:10 +0000 (20:54 +0000)]
Merge branch 'inspector-trees' into 'main'

inspector: Don't use treeviews in the recorder

See merge request GNOME/gtk!5080

3 years agoinspector: Don't use treeviews in the recorder
Matthias Clasen [Tue, 4 Oct 2022 19:57:34 +0000 (15:57 -0400)]
inspector: Don't use treeviews in the recorder

Replace the event and render node details views with
columnviews.

3 years agoUpdate Bulgarian translation
Alexander Shopov [Tue, 4 Oct 2022 18:07:20 +0000 (18:07 +0000)]
Update Bulgarian translation

(cherry picked from commit 2ca2a156376344105a0a6a55bf7d54682017367b)

3 years agoMerge branch 'inspector-fixes' into 'main'
Matthias Clasen [Tue, 4 Oct 2022 15:34:53 +0000 (15:34 +0000)]
Merge branch 'inspector-fixes' into 'main'

inspector: Fix some lifecycle issues

See merge request GNOME/gtk!5079

3 years agoUpdate POTFILES.in
Piotr Drąg [Tue, 4 Oct 2022 13:20:57 +0000 (15:20 +0200)]
Update POTFILES.in

3 years agoinspector: Fix some lifecycle issues
Matthias Clasen [Tue, 4 Oct 2022 11:08:25 +0000 (07:08 -0400)]
inspector: Fix some lifecycle issues

The template use in the inspector was not properly
disposing all widgets. gtk_widget_dispose_template
will only unparent widgets that have been named
as template children, so we need to make the toplevel
elements in the ui file named children, or manually
dispose them. This commit does the former.

3 years agoMerge branch 'deprecate-entry-completion' into 'main'
Matthias Clasen [Tue, 4 Oct 2022 03:35:26 +0000 (03:35 +0000)]
Merge branch 'deprecate-entry-completion' into 'main'

Deprecate GtkEntryCompletion

See merge request GNOME/gtk!5078

3 years agoMerge branch 'deprecate-app-choosers' into 'main'
Matthias Clasen [Tue, 4 Oct 2022 03:28:09 +0000 (03:28 +0000)]
Merge branch 'deprecate-app-choosers' into 'main'

Deprecate app choosers

See merge request GNOME/gtk!5077

3 years agoDeprecate GtkEntryCompletion
Matthias Clasen [Tue, 4 Oct 2022 02:45:52 +0000 (22:45 -0400)]
Deprecate GtkEntryCompletion

We want to drop cell renderers and tree models
in GTK 5. The functionality of GtkEntryCompletion
may be replaced by a new widget in GTK 5.

3 years agoDeprecate the app chooser widgets
Matthias Clasen [Tue, 4 Oct 2022 01:54:57 +0000 (21:54 -0400)]
Deprecate the app chooser widgets

These are a family of pretty specialized widgets, and
are very rarely used. Instead of porting them away
from GtkTreeView and GtkComboBox, deprecate them.

3 years agoRevert "gtk: Use gnome.mkenums_simple"
Matthias Clasen [Tue, 4 Oct 2022 02:08:49 +0000 (22:08 -0400)]
Revert "gtk: Use gnome.mkenums_simple"

This reverts commit 11829fe7d01b7ceff26d1b31cc03908585107e34.

The mkenums_simple function can't properly handle headers
in subdirectories currently, so go back to the template
version.

3 years agoMerge branch 'oh-no-my-docs' into 'main'
Benjamin Otte [Mon, 3 Oct 2022 22:21:48 +0000 (22:21 +0000)]
Merge branch 'oh-no-my-docs' into 'main'

Remove outdated docs

See merge request GNOME/gtk!5076

3 years agoRemove outdated docs
Benjamin Otte [Mon, 3 Oct 2022 21:12:42 +0000 (21:12 +0000)]
Remove outdated docs

There are a lot of automatic conversions in the blame log.

3 years agoMerge branch 'wip/jimmac/combobox-lists' into 'main'
Matthias Clasen [Mon, 3 Oct 2022 21:02:25 +0000 (21:02 +0000)]
Merge branch 'wip/jimmac/combobox-lists' into 'main'

stylesheet: sync combox with other popovers

Closes #5221

See merge request GNOME/gtk!5074

3 years agostylesheet: sync combox with other popovers
Jakub Steiner [Mon, 3 Oct 2022 13:37:42 +0000 (15:37 +0200)]
stylesheet: sync combox with other popovers

- use the same lists style as everything else (menus, sidebars ...)

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5221

3 years agoMerge branch 'evince_crash_popover_motion2' into 'main'
Carlos Garnacho [Mon, 3 Oct 2022 12:19:35 +0000 (12:19 +0000)]
Merge branch 'evince_crash_popover_motion2' into 'main'

fix crash in gtk_synthesize_crossing_events()

Closes #5190

See merge request GNOME/gtk!5052

3 years agoUpdate Friulian translation
Fabio Tomat [Mon, 3 Oct 2022 08:35:52 +0000 (08:35 +0000)]
Update Friulian translation

(cherry picked from commit 63878632564ec4a7ee9acc81233e9d9033cc1022)

3 years agoUpdate Croatian translation
Goran Vidović [Sun, 2 Oct 2022 14:05:29 +0000 (14:05 +0000)]
Update Croatian translation

3 years agoUpdate Russian translation
Aleksandr Melman [Sat, 1 Oct 2022 15:40:59 +0000 (15:40 +0000)]
Update Russian translation

3 years agoUpdate Turkish translation
Emin Tufan Çetin [Sat, 1 Oct 2022 14:57:10 +0000 (14:57 +0000)]
Update Turkish translation

3 years agoUpdate Georgian translation
Zurab Kargareteli [Sat, 1 Oct 2022 10:17:09 +0000 (10:17 +0000)]
Update Georgian translation

3 years agoUpdate Croatian translation
Goran Vidović [Fri, 30 Sep 2022 12:05:09 +0000 (12:05 +0000)]
Update Croatian translation

3 years agoMerge branch 'wip/handle-zero-bounds' into 'main'
Matthias Clasen [Fri, 30 Sep 2022 11:26:29 +0000 (11:26 +0000)]
Merge branch 'wip/handle-zero-bounds' into 'main'

Fix shrinking windows when suspending

See merge request GNOME/gtk!5069

3 years agotoplevel-size: Report zero bounds as infinite
Jonas Ådahl [Fri, 30 Sep 2022 07:26:55 +0000 (09:26 +0200)]
toplevel-size: Report zero bounds as infinite

Empty/zero bounds are sent by the Wayland compositor if there are no
valid bounds to report, e.g. if there are no connected monitors. Report
this to GTK, which uses this to clamp calculated sizes, as INT_MAX, so
that clamping isn't done until there are actual valid bounds to clamp
to.

This fixes clients sometimes shrinking to their minimum size during
hotplugs or after having suspended the session.

3 years agosurface/wayland: Handle no current monitor when calculating bounds
Jonas Ådahl [Fri, 30 Sep 2022 07:30:30 +0000 (09:30 +0200)]
surface/wayland: Handle no current monitor when calculating bounds

We shouldn't assume there is always a monitor to derive bounds from.
If there is no monitor, pass empty bounds, as this matches what
xdg_toplevel.configure_bounds do in this case.

3 years agoUpdate Basque translation
Asier Sarasua Garmendia [Thu, 29 Sep 2022 16:55:20 +0000 (16:55 +0000)]
Update Basque translation

3 years agoUpdate Hungarian translation
Balázs Úr [Thu, 29 Sep 2022 16:43:31 +0000 (16:43 +0000)]
Update Hungarian translation

3 years agoUpdate Abkhazian translation
Nart Tlisha [Thu, 29 Sep 2022 15:19:37 +0000 (15:19 +0000)]
Update Abkhazian translation

3 years agoUpdate Georgian translation
Zurab Kargareteli [Wed, 28 Sep 2022 18:33:41 +0000 (18:33 +0000)]
Update Georgian translation

3 years agoFix expected test output
Matthias Clasen [Wed, 28 Sep 2022 17:32:40 +0000 (13:32 -0400)]
Fix expected test output

The major.minor version number shows up in the expected
output of this test, so it needs to be adjusted at the
beginning of every cycle.

3 years agoAdd 4.10 version macros
Matthias Clasen [Wed, 28 Sep 2022 17:24:09 +0000 (13:24 -0400)]
Add 4.10 version macros

3 years agoPost-release version bump
Matthias Clasen [Wed, 28 Sep 2022 17:19:49 +0000 (13:19 -0400)]
Post-release version bump

This is an experiment to see if I can keep up with
doing post-release version bumps, so git snapshots
will always have a different version from released
tarballs.

This commit also marks the beginning of the 4.10
development cycle, as 4.8 has been branched.

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Wed, 28 Sep 2022 17:02:09 +0000 (17:02 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

Add more names to sources

See merge request GNOME/gtk!5064

3 years agoAdd more names to sources
Matthias Clasen [Wed, 28 Sep 2022 16:36:22 +0000 (12:36 -0400)]
Add more names to sources

This helps with identifying things in sysprof logs,
and while debugging.

3 years agoMerge branch 'post-install' into 'main'
Matthias Clasen [Wed, 28 Sep 2022 16:21:49 +0000 (16:21 +0000)]
Merge branch 'post-install' into 'main'

meson: Remove post-install script

See merge request GNOME/gtk!5063

3 years agomeson: Remove post-install script
Xavier Claessens [Wed, 28 Sep 2022 15:24:51 +0000 (11:24 -0400)]
meson: Remove post-install script

GTK depends on Meson >= 0.60 so it was never used.

3 years agoMerge branch 'wip/carlosg/shuffle-reset-take2' into 'main'
Matthias Clasen [Wed, 28 Sep 2022 01:39:49 +0000 (01:39 +0000)]
Merge branch 'wip/carlosg/shuffle-reset-take2' into 'main'

gtkimcontextwayland: Shuffle full resets after IM changes

Closes #5200

See merge request GNOME/gtk!5050

3 years agoMerge branch 'wroy-main-patch-32519' into 'main'
Matthias Clasen [Wed, 28 Sep 2022 01:39:15 +0000 (01:39 +0000)]
Merge branch 'wroy-main-patch-32519' into 'main'

Fix #5211: Preprocessor conformance with MSVC

Closes #5211

See merge request GNOME/gtk!5058

3 years agoMerge branch 'broadway-device-query-state-fix' into 'main'
Matthias Clasen [Wed, 28 Sep 2022 01:38:45 +0000 (01:38 +0000)]
Merge branch 'broadway-device-query-state-fix' into 'main'

GTK4 gdk/broadway: correct gdk_broadway_device_query_state() to return pointer coordinates relative to the upper left corner of surface

See merge request GNOME/gtk!5053

3 years agoMerge branch 'fix-scale-crashes' into 'main'
Matthias Clasen [Wed, 28 Sep 2022 01:22:49 +0000 (01:22 +0000)]
Merge branch 'fix-scale-crashes' into 'main'

scale: Fix a typo

See merge request GNOME/gtk!5061

3 years agoscale: Fix a typo
Matthias Clasen [Wed, 28 Sep 2022 01:03:56 +0000 (21:03 -0400)]
scale: Fix a typo

We want to update the label size request when
the adjustment changes, not when anything else
changes.

This may be the reason for crash reports like
https://retrace.fedoraproject.org/faf/problems/bthash/?bth=1e5cc1318358d5db298e5d6c2ec47361922cce74

3 years agoUpdated Lithuanian translation
Aurimas Černius [Tue, 27 Sep 2022 19:40:49 +0000 (22:40 +0300)]
Updated Lithuanian translation

3 years agoUpdate Portuguese translation
Hugo Carvalho [Tue, 27 Sep 2022 19:39:53 +0000 (19:39 +0000)]
Update Portuguese translation

3 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Tue, 27 Sep 2022 13:10:05 +0000 (13:10 +0000)]
Update Brazilian Portuguese translation

3 years agoApply 1 suggestion(s) to 1 file(s)
Matthias Clasen [Tue, 27 Sep 2022 11:31:55 +0000 (11:31 +0000)]
Apply 1 suggestion(s) to 1 file(s)

3 years agoUpdate Slovenian translation
Martin [Tue, 27 Sep 2022 08:03:24 +0000 (08:03 +0000)]
Update Slovenian translation

3 years agoUpdate Galician translation
Fran Dieguez [Tue, 27 Sep 2022 06:22:18 +0000 (06:22 +0000)]
Update Galician translation

3 years agoMerge branch 'wip/otte/for-main' into 'main'
Benjamin Otte [Tue, 27 Sep 2022 02:07:21 +0000 (02:07 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

drop target: Warn about broken signal handler returns

See merge request GNOME/gtk!5060

3 years agodrop target: Warn about broken signal handler returns
Benjamin Otte [Tue, 27 Sep 2022 01:44:41 +0000 (03:44 +0200)]
drop target: Warn about broken signal handler returns

Signal handlers ust return their preferred action and that one must be
unique.

Shout at them if they don't do that, before gdk_drop_status() does
tesame thing.

Related: gnome-build-meta#554
Related: gnome-builder#1799

3 years agoMerge branch 'left-right-typo' into 'main'
Emmanuele Bassi [Mon, 26 Sep 2022 22:23:29 +0000 (22:23 +0000)]
Merge branch 'left-right-typo' into 'main'

Fix GtkSettings docs typo

See merge request GNOME/gtk!5059

3 years agoFix GtkSettings docs typo
Mitchell Hentges [Mon, 26 Sep 2022 22:00:30 +0000 (00:00 +0200)]
Fix GtkSettings docs typo

"left of right" should be "left or right".
There's a small (subjective?) English nit in there as well: I believe
that buttons are placed (for example) "on the right" rather than "at the
right".

3 years agoFix preprocessor conformance with MSVC
William Roy [Mon, 26 Sep 2022 19:52:57 +0000 (19:52 +0000)]
Fix preprocessor conformance with MSVC

3 years agoUpdate Croatian translation
Goran Vidović [Mon, 26 Sep 2022 19:30:45 +0000 (19:30 +0000)]
Update Croatian translation

3 years agoUpdate Swedish translation
Anders Jonsson [Mon, 26 Sep 2022 18:28:19 +0000 (18:28 +0000)]
Update Swedish translation

3 years agoMerge branch 'kjellahl/gtkprintbackendlpr' into 'main'
Matthias Clasen [Mon, 26 Sep 2022 18:22:21 +0000 (18:22 +0000)]
Merge branch 'kjellahl/gtkprintbackendlpr' into 'main'

gtkprintbackendlpr.c: Add #include "gtkprivate.h"

See merge request GNOME/gtk!5057

3 years agogtkprintbackendlpr.c: Add #include "gtkprivate.h"
Kjell Ahlstedt [Mon, 26 Sep 2022 16:38:06 +0000 (18:38 +0200)]
gtkprintbackendlpr.c: Add #include "gtkprivate.h"

Necessary after GTK_NOTE was replaced by GTK_DEBUG.
GTK_DEBUG is defined in gtk/gtkprivate.h. GTK_NOTE was defined
in gtk/gtkdebug.h.

3 years agoUpdate Polish translation
Piotr Drąg [Mon, 26 Sep 2022 16:01:02 +0000 (18:01 +0200)]
Update Polish translation

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 26 Sep 2022 14:54:56 +0000 (14:54 +0000)]
Update Ukrainian translation

3 years agoMerge branch 'fix_4577' into 'main'
Matthias Clasen [Mon, 26 Sep 2022 14:41:29 +0000 (14:41 +0000)]
Merge branch 'fix_4577' into 'main'

Make the presentation of the stack sidebar listbox nicer for A11Y

Closes #4577

See merge request GNOME/gtk!4661

3 years agoMerge branch 'gdk-win32-fix-subclassing-gdk-win32-clipdrop' into 'main'
Luca Bacci [Mon, 26 Sep 2022 12:59:17 +0000 (12:59 +0000)]
Merge branch 'gdk-win32-fix-subclassing-gdk-win32-clipdrop' into 'main'

GdkWin32: Fix subclassing for GdkWin32Clipdrop

Closes #5207

See merge request GNOME/gtk!5055

3 years agoGdkWin32: Fix subclassing for GdkWin32Clipdrop
Luca Bacci [Mon, 26 Sep 2022 12:34:24 +0000 (14:34 +0200)]
GdkWin32: Fix subclassing for GdkWin32Clipdrop

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5207

3 years agoMerge branch 'bump-meson-req' into 'main'
Matthias Clasen [Sun, 25 Sep 2022 17:24:53 +0000 (17:24 +0000)]
Merge branch 'bump-meson-req' into 'main'

Bump the meson requirement

See merge request GNOME/gtk!5051

3 years agoUpdate POTFILES.in
Piotr Drąg [Sun, 25 Sep 2022 12:10:28 +0000 (14:10 +0200)]
Update POTFILES.in

3 years agofix crash in gtk_synthesize_crossing_events()
Nelson Benítez León [Sun, 25 Sep 2022 01:16:18 +0000 (21:16 -0400)]
fix crash in gtk_synthesize_crossing_events()

Update ancestor between GTK_CROSSING_OUT and
GTK_CROSSING_IN as it may have changed.

Fixes #5190

3 years agogtk: Use gnome.mkenums_simple
Matthias Clasen [Sun, 25 Sep 2022 01:22:26 +0000 (21:22 -0400)]
gtk: Use gnome.mkenums_simple

This lets us avoid template files, and works just as well.

3 years agogdk: Use gnome.mkenums_simple
Matthias Clasen [Sun, 25 Sep 2022 00:41:09 +0000 (20:41 -0400)]
gdk: Use gnome.mkenums_simple

This lets us avoid template files, and works just as well.

3 years agoBump the meson requirement
Matthias Clasen [Sun, 25 Sep 2022 00:07:03 +0000 (20:07 -0400)]
Bump the meson requirement

GLib requires meson 0.60 nowadays, and it does not
make much sense for us to support an older meson.

3 years agoMerge branch 'header-cleanup' into 'main'
Matthias Clasen [Sat, 24 Sep 2022 14:23:39 +0000 (14:23 +0000)]
Merge branch 'header-cleanup' into 'main'

Header cleanup

See merge request GNOME/gtk!5049

3 years agogdk: Rename gdkpixbuf-drawable.c
Matthias Clasen [Sat, 24 Sep 2022 13:23:18 +0000 (09:23 -0400)]
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.

3 years agogdk: Tweaks to keyname handling
Matthias Clasen [Sat, 24 Sep 2022 13:20:12 +0000 (09:20 -0400)]
gdk: Tweaks to keyname handling

Rename the private header to follow our naming
conventions, and drop the extra gdkkeys.c file.

3 years agoDrop gtkintl.h
Matthias Clasen [Sat, 24 Sep 2022 13:07:56 +0000 (09:07 -0400)]
Drop gtkintl.h

Include gtkprivate.h for I_() and glib-i18n.h for
gettext macros.

3 years agogtkimcontextwayland: Shuffle full resets after IM changes
Carlos Garnacho [Sat, 24 Sep 2022 09:45:18 +0000 (11:45 +0200)]
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)
3 years agoDrop gdkintl.h
Matthias Clasen [Sat, 24 Sep 2022 03:33:42 +0000 (23:33 -0400)]
Drop gdkintl.h

This header was merely including gi18n-lib.h.
Just do that directly.

3 years agoRename gdk-private.h to gdkprivate.h
Matthias Clasen [Sat, 24 Sep 2022 03:23:27 +0000 (23:23 -0400)]
Rename gdk-private.h to gdkprivate.h

The extra - does not add any value.

3 years agoRename gdkconstructor.h to gdkconstructorprivate.h
Matthias Clasen [Sat, 24 Sep 2022 03:14:08 +0000 (23:14 -0400)]
Rename gdkconstructor.h to gdkconstructorprivate.h

This is the naming convention for private headers.

3 years agoRename gdkdebug.h to gdkdebugprivate.h
Matthias Clasen [Sat, 24 Sep 2022 03:11:41 +0000 (23:11 -0400)]
Rename gdkdebug.h to gdkdebugprivate.h

This is the naming convention for private headers.

3 years agogtk: Dissolve gtk-autocleanup.h
Matthias Clasen [Sat, 24 Sep 2022 01:54:15 +0000 (21:54 -0400)]
gtk: Dissolve gtk-autocleanup.h

Move the autocleanup declarations into their
respective headers.

3 years agogsk: Dissolve gsk-autocleanup.h
Matthias Clasen [Fri, 23 Sep 2022 23:40:42 +0000 (19:40 -0400)]
gsk: Dissolve gsk-autocleanup.h

Move the autocleanup declarations into their
respective headers.

3 years agogdk: Dissolve gdk-autocleanup.h
Matthias Clasen [Fri, 23 Sep 2022 23:08:25 +0000 (19:08 -0400)]
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

3 years agoMerge branch 'debug-envvars-cleanup' into 'main'
Matthias Clasen [Fri, 23 Sep 2022 23:06:47 +0000 (23:06 +0000)]
Merge branch 'debug-envvars-cleanup' into 'main'

Clean up debug env vars

See merge request GNOME/gtk!5044

3 years agogtk: Remove old debug macros
Matthias Clasen [Fri, 23 Sep 2022 22:51:46 +0000 (18:51 -0400)]
gtk: Remove old debug macros

These are no longer used.

3 years agogtk: Use the new debug macros
Matthias Clasen [Fri, 23 Sep 2022 14:11:59 +0000 (10:11 -0400)]
gtk: Use the new debug macros

3 years agogtk: Introduce new debug macros
Matthias Clasen [Fri, 23 Sep 2022 14:10:51 +0000 (10:10 -0400)]
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().

3 years agotests: Rewrite the icontheme tests
Matthias Clasen [Fri, 23 Sep 2022 17:12:41 +0000 (13:12 -0400)]
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.

3 years agogsk: drop old debug macros
Matthias Clasen [Fri, 23 Sep 2022 01:45:39 +0000 (21:45 -0400)]
gsk: drop old debug macros

These are no longer used.

3 years agogsk: Use the new debug macros
Matthias Clasen [Fri, 23 Sep 2022 01:36:50 +0000 (21:36 -0400)]
gsk: Use the new debug macros

3 years agogsk: Introduce new debug macros
Matthias Clasen [Fri, 23 Sep 2022 01:35:24 +0000 (21:35 -0400)]
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().

3 years agogdk: Drop old debug macros
Matthias Clasen [Fri, 23 Sep 2022 14:32:07 +0000 (10:32 -0400)]
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.

3 years agomacos: Use the new debug macros
Matthias Clasen [Fri, 23 Sep 2022 01:32:54 +0000 (21:32 -0400)]
macos: Use the new debug macros

3 years agox11: Use the new debug macros
Matthias Clasen [Fri, 23 Sep 2022 01:34:04 +0000 (21:34 -0400)]
x11: Use the new debug macros

3 years agowayland: Use the new debug macros
Matthias Clasen [Fri, 23 Sep 2022 00:50:05 +0000 (20:50 -0400)]
wayland: Use the new debug macros

3 years agobroadway: Use the new debug macros
Matthias Clasen [Fri, 23 Sep 2022 00:49:16 +0000 (20:49 -0400)]
broadway: Use the new debug macros