Matthias Clasen [Sat, 8 Oct 2022 13:22:26 +0000 (09:22 -0400)]
Deprecate gtk_snapshot_render apis
Move the implementations from gtksnapshot.c to
gtk/deprecated/gtkrender.c and deprecated these
functions. We want to get rid of them.
These functions are still used in some of our widgetry,
so use G_GNUC_BEGIN/END_IGNORE_DEPRECATIONS around
them.
Matthias Clasen [Sat, 8 Oct 2022 03:35:07 +0000 (23:35 -0400)]
Deprecate gtk_render apis
These take a GtkStyleContext as argument, and we
want to get rid of GtkStyleContext eventually.
The proper drawing api these days is gtk_snapshot.
Matthias Clasen [Sat, 8 Oct 2022 12:56:15 +0000 (08:56 -0400)]
printunixdialog: Stop using gtk_render_ apis
These are getting deprecated.
Matthias Clasen [Sat, 8 Oct 2022 12:38:10 +0000 (08:38 -0400)]
popover: Stop using gtk_render_background
The gtk_render_ apis are getting deprecated.
Matthias Clasen [Sat, 8 Oct 2022 12:28:46 +0000 (08:28 -0400)]
flowbox: Stop using gtk_render_background
The gtk_render_ apis are getting deprecated.
Matthias Clasen [Wed, 12 Oct 2022 19:28:04 +0000 (19:28 +0000)]
Merge branch 'deprecate-all-the-cells' into 'main'
Deprecate treeviews and cell renderers
See merge request GNOME/gtk!5098
Luca Bacci [Wed, 12 Oct 2022 13:56:51 +0000 (13:56 +0000)]
Merge branch 'for-master' into 'main'
For master
See merge request GNOME/gtk!5095
Matthias Clasen [Wed, 12 Oct 2022 11:06:35 +0000 (11:06 +0000)]
Merge branch 'inspector_a11y' into 'main'
GtkInspector: make the inspector at least a little bit more accessible
See merge request GNOME/gtk!5109
Matthias Clasen [Sat, 8 Oct 2022 00:59:10 +0000 (20:59 -0400)]
tests: Ignore deprecations
Eventually, most of these tests should be dropped.
Matthias Clasen [Sat, 8 Oct 2022 01:15:03 +0000 (21:15 -0400)]
testsuite: Ignore deprecations
For now, just ignore deprecations. Eventually,
we will have to go through, drop demos that are
for wholly deprecated widgets, and update others.
Matthias Clasen [Sat, 8 Oct 2022 01:36:13 +0000 (21:36 -0400)]
tools: Ignore deprecations
For now, just ignore deprecations. Eventually,
we will have to go through and drop code that is
dealing with widgets that are going away.
Matthias Clasen [Sat, 8 Oct 2022 01:12:37 +0000 (21:12 -0400)]
demos and examples: Ignore deprecations
For now, just ignore deprecations. Eventually,
we will have to go through, drop demos that are
for wholly deprecated widgets, and update others.
Matthias Clasen [Fri, 7 Oct 2022 21:47:28 +0000 (17:47 -0400)]
Deprecate treeviews and cell renderers
This includes
GtkCellArea
GtkCellAreaBox
GtkCellAreaContext
GtkCellEditable
GtkCellRenderer
GtkCellRendererAccel
GtkCellRendererCombo
GtkCellRendererPixbuf
GtkCellRendererProgress
GtkCellRendererSpin
GtkCellRendererSpinner
GtkCellRendererText
GtkCellRendererToggle
GtkCellView
GtkComboBox
GtkComboBoxText
GtkIconView
GtkListStore
GtkTreeModel
GtkTreeModelFilter
GtkTreeModelSort
GtkTreeStore
GtkTreeView
GtkTreeViewColumn
GtkTreeSelection
Matthias Clasen [Sat, 8 Oct 2022 00:48:02 +0000 (20:48 -0400)]
inspector: Drop an unused file
Matthias Clasen [Sat, 8 Oct 2022 12:28:46 +0000 (08:28 -0400)]
flowbox: Stop using gtk_render_background
The gtk_render_ apis are getting deprecated.
Matthias Clasen [Tue, 11 Oct 2022 20:59:08 +0000 (20:59 +0000)]
Merge branch 'filename-sorter' into 'main'
stringsorter: Add a collate-mode property
See merge request GNOME/gtk!5111
Matthias Clasen [Tue, 11 Oct 2022 19:32:05 +0000 (15:32 -0400)]
stringsorter: Fix up a doc typo
gi-docgen links can be tricky to get right.
Matthias Clasen [Tue, 11 Oct 2022 18:03:57 +0000 (14:03 -0400)]
stringsorter: Add more detail to the docs
Mention when a collation value of NONE might
be useful.
Matthias Clasen [Tue, 11 Oct 2022 17:53:26 +0000 (17:53 +0000)]
Apply 2 suggestion(s) to 2 file(s)
Matthias Clasen [Tue, 11 Oct 2022 17:43:36 +0000 (13:43 -0400)]
ci: Allow macos builds to fail
The runner seems busted, so allow builds to fail
for now.
Matthias Clasen [Tue, 11 Oct 2022 16:57:09 +0000 (12:57 -0400)]
stringsorter: Add a collation property
The new property lets us choose between
Unicode collation, filename collation, and
plain strcmp.
This will be used in the filechooser.
Lukáš Tyrychtr [Tue, 11 Oct 2022 11:34:21 +0000 (13:34 +0200)]
GtkInspector: make the inspector at least a little bit more accessible
Namely, it adds accessible name to the property value editors and to a few labels in the a11y panel.
Matthias Clasen [Mon, 10 Oct 2022 21:13:28 +0000 (21:13 +0000)]
Merge branch 'wip/corey/file-clipboard' into 'main'
gdkcontentserializer: Use newlines for file separators
Closes #5240
See merge request GNOME/gtk!5107
Corey Berla [Mon, 10 Oct 2022 16:35:00 +0000 (09:35 -0700)]
gdkcontentserializer: Use newlines for file separators
Use newlines rather than spaces to separate file paths (or uri's)
when serializing text/plain files. There isn't a matching
deserializer, so we can do this in isolation. Newlines
seem to make more sense when pasting into a text editor etc.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5240
Matthias Clasen [Mon, 10 Oct 2022 03:29:41 +0000 (03:29 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Matthiasc/for main
See merge request GNOME/gtk!5106
Matthias Clasen [Mon, 10 Oct 2022 03:08:55 +0000 (23:08 -0400)]
emojicompletion: Drop an unused include
Matthias Clasen [Mon, 10 Oct 2022 02:25:36 +0000 (22:25 -0400)]
emojichooser: Drop an unused include
Matthias Clasen [Mon, 10 Oct 2022 02:23:09 +0000 (22:23 -0400)]
searchentry: Drop an unused include
Matthias Clasen [Sun, 9 Oct 2022 14:26:58 +0000 (14:26 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gtk-demo: Modernize accordion demo
See merge request GNOME/gtk!5105
Benjamin Otte [Sat, 8 Feb 2020 02:59:55 +0000 (03:59 +0100)]
testgtk: Use global css provider
Benjamin Otte [Sat, 8 Feb 2020 02:32:21 +0000 (03:32 +0100)]
tests: Use per-screen CSS providers
Benjamin Otte [Sun, 9 Oct 2022 14:09:59 +0000 (10:09 -0400)]
gtk-demo: Modernize accordion demo
Matthias Clasen [Sun, 9 Oct 2022 13:53:54 +0000 (13:53 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
inspector: Fix some criticals
See merge request GNOME/gtk!5104
Benjamin Otte [Sun, 9 Oct 2022 13:08:55 +0000 (09:08 -0400)]
fontbutton: Use attributes for custom font
Don't try to use CSS.
Matthias Clasen [Sun, 9 Oct 2022 13:08:24 +0000 (09:08 -0400)]
inspector: Fix some criticals
This is fallout from the recent porting to GtkColumnView.
Matthias Clasen [Sun, 9 Oct 2022 13:10:24 +0000 (13:10 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
widget: Changing the scale does no longer require a redraw
See merge request GNOME/gtk!5103
Benjamin Otte [Fri, 7 Feb 2020 22:22:05 +0000 (23:22 +0100)]
widget: Changing the scale does no longer require a redraw
It doesn't require one generally anyway, because only the root can
change scale and when that happens the root will queue a redraw.
But even if the root doesn't queue a redraw, render nodes (the only
thing discarded by queue_draw()) are scale-independant.
Matthias Clasen [Sun, 9 Oct 2022 12:49:42 +0000 (12:49 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
glarea: Drop an unused include
See merge request GNOME/gtk!5102
Matthias Clasen [Sun, 9 Oct 2022 12:22:08 +0000 (12:22 +0000)]
Merge branch 'main' into 'main'
GtkPaned: Fix symbol names in code example
See merge request GNOME/gtk!5101
Matthias Clasen [Sat, 8 Oct 2022 12:32:55 +0000 (08:32 -0400)]
glarea: Drop an unused include
We are not using gtk_render apis here.
Tilo Villwock [Sat, 8 Oct 2022 11:49:10 +0000 (13:49 +0200)]
GtkPaned: Fix symbol names in code example
Matthias Clasen [Sat, 8 Oct 2022 03:01:24 +0000 (03:01 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
paperdialog: Drop an unused function
See merge request GNOME/gtk!5099
Matthias Clasen [Sat, 8 Oct 2022 02:22:36 +0000 (22:22 -0400)]
placesview: Stop using GtkEntryCompletion
We want to get rid of tree models and cell renderers,
and that includes GtkEntryCompletion. The functionality
here is really not that essential.
Matthias Clasen [Sat, 8 Oct 2022 02:00:23 +0000 (22:00 -0400)]
paperdialog: Drop an unused function
This gets rid of a GtkListStore use.
Matthias Clasen [Fri, 7 Oct 2022 21:55:10 +0000 (21:55 +0000)]
Merge branch 'inspector-trees' into 'main'
inspector: Stop using GtkTreeView for css nodes
See merge request GNOME/gtk!5097
Matthias Clasen [Fri, 7 Oct 2022 21:21:04 +0000 (17:21 -0400)]
cssnode: Drop the node-added/-removed signals
These are no longer used, and the children-observer
listmodel is a better approach for monitoring the
children.
Matthias Clasen [Fri, 7 Oct 2022 21:17:41 +0000 (17:17 -0400)]
inspector: Drop the css node tree model
This is not used anymore.
Matthias Clasen [Fri, 7 Oct 2022 19:50:48 +0000 (15:50 -0400)]
inspector: Stop using GtkTreeView for css nodes
Replace the css node tree with a GtkColumnView, using
the new gtk_css_node_observe_children api.
Matthias Clasen [Fri, 7 Oct 2022 19:51:02 +0000 (15:51 -0400)]
Add gtk_css_node_observe_children
Luca Bacci [Fri, 7 Oct 2022 17:06:09 +0000 (19:06 +0200)]
GtkFileChooserNativeWin32: Add some option flags
Avoid changing the current directory.
Also avoid creating a sample file to test if the target file
can be created.
References:
* "Why does the common file dialog change the current directory?"
-> https://devblogs.microsoft.com/oldnewthing/
20101112-00/?p=12293
* "Why does the common file save dialog create a temporary file and then delete it?"
-> https://devblogs.microsoft.com/oldnewthing/
20140429-00/?p=1123
Luca Bacci [Thu, 6 Oct 2022 09:26:50 +0000 (11:26 +0200)]
GdkWin32: Return TRUE when processing WM_XBUTTONDOWN/UP messages
As documented on MSDN:
> Unlike the WM_LBUTTONUP, WM_MBUTTONUP, and WM_RBUTTONUP messages, an
> application should return TRUE from this message if it processes it.
Luca Bacci [Thu, 6 Oct 2022 08:57:12 +0000 (10:57 +0200)]
GdkWin32: Use gdk_pixbuf_read_pixels () where applicable
This is an optimization in case of reading unmodifiable GdkPixbufs.
Also replace uses of GLib integral types with <stdlib.h> integral
types.
Matthias Clasen [Fri, 7 Oct 2022 16:00:36 +0000 (16:00 +0000)]
Merge branch 'wroy-main-patch-03767' into 'main'
Add subproject/libjpeg-turbo.wrap
Closes #5237
See merge request GNOME/gtk!5094
William Roy [Fri, 7 Oct 2022 14:48:49 +0000 (14:48 +0000)]
Add subproject/libjpeg-turbo.wrap
Matthias Clasen [Fri, 7 Oct 2022 05:57:02 +0000 (05:57 +0000)]
Merge branch 'inspector-trees' into 'main'
inspector: Stop using GtkTreeView for statistics
See merge request GNOME/gtk!5093
Matthias Clasen [Fri, 7 Oct 2022 03:03:15 +0000 (23:03 -0400)]
inspector: Stop using GtkTreeView for statistics
GtkTreeView is heading towards deprecation; use
a GtkColumnView instead.
Matthias Clasen [Fri, 7 Oct 2022 04:04:28 +0000 (00:04 -0400)]
inspector: Fixup
We were overlooking a transfer full here.
Jürgen Benvenuti [Thu, 6 Oct 2022 20:48:31 +0000 (20:48 +0000)]
Update German translation
(cherry picked from commit
52dd917c6a97738afa8ac90100e5ebec6f1a3537)
Matthias Clasen [Thu, 6 Oct 2022 10:41:56 +0000 (10:41 +0000)]
Merge branch 'main' into 'main'
Treat XKB_MOD_NAME_LOGO as super key
Closes #4913
See merge request GNOME/gtk!5088
Po Lu [Mon, 19 Sep 2022 07:57:58 +0000 (15:57 +0800)]
Treat XKB_MOD_NAME_LOGO as super key
Matthias Clasen [Thu, 6 Oct 2022 03:48:36 +0000 (03:48 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gdk: Cosmetics
See merge request GNOME/gtk!5087
Matthias Clasen [Thu, 6 Oct 2022 02:59:51 +0000 (22:59 -0400)]
gtk: Rename some private headers
Improve the consistency of our private header
naming, by add 'private' to a bunch of them.
Matthias Clasen [Thu, 6 Oct 2022 02:37:19 +0000 (22:37 -0400)]
gdk: Cosmetics
Add a define for each renderer.
Matthias Clasen [Thu, 6 Oct 2022 02:52:12 +0000 (02:52 +0000)]
Merge branch 'inspector-trees' into 'main'
inspector: Stop using a treeview for css properties
See merge request GNOME/gtk!5086
Matthias Clasen [Thu, 6 Oct 2022 02:15:16 +0000 (02:15 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
mountoperation: Add a mnemonic to a button
See merge request GNOME/gtk!5085
Matthias Clasen [Thu, 6 Oct 2022 00:58:49 +0000 (20:58 -0400)]
inspector: Stop using a treeview for css properties
Treeviews are heading towards deprecation.
Matthias Clasen [Thu, 6 Oct 2022 00:59:06 +0000 (20:59 -0400)]
inspector: Cosmetics
Matthias Clasen [Thu, 6 Oct 2022 00:14:09 +0000 (20:14 -0400)]
mountoperation: Add a mnemonic to a button
This is a good practice, even if this is a rarely
used dialog.
Matthias Clasen [Wed, 5 Oct 2022 11:33:56 +0000 (11:33 +0000)]
Merge branch 'accessible_range_interface' into 'main'
Introduce GtkAccessibleRange
See merge request GNOME/gtk!5066
Matthias Clasen [Wed, 5 Oct 2022 11:13:21 +0000 (11:13 +0000)]
Review fixes
Matthias Clasen [Wed, 5 Oct 2022 10:14:04 +0000 (10:14 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
inspector: Use more compact list styles
See merge request GNOME/gtk!5083
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.
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
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.
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.
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
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.
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.
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.
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
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.
Alexander Shopov [Tue, 4 Oct 2022 18:07:20 +0000 (18:07 +0000)]
Update Bulgarian translation
(cherry picked from commit
2ca2a156376344105a0a6a55bf7d54682017367b)
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
Piotr Drąg [Tue, 4 Oct 2022 13:20:57 +0000 (15:20 +0200)]
Update POTFILES.in
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.
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
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
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.
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.
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.
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
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.
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
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
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
Fabio Tomat [Mon, 3 Oct 2022 08:35:52 +0000 (08:35 +0000)]
Update Friulian translation
(cherry picked from commit
63878632564ec4a7ee9acc81233e9d9033cc1022)
Goran Vidović [Sun, 2 Oct 2022 14:05:29 +0000 (14:05 +0000)]
Update Croatian translation
Aleksandr Melman [Sat, 1 Oct 2022 15:40:59 +0000 (15:40 +0000)]
Update Russian translation
Emin Tufan Çetin [Sat, 1 Oct 2022 14:57:10 +0000 (14:57 +0000)]
Update Turkish translation
Zurab Kargareteli [Sat, 1 Oct 2022 10:17:09 +0000 (10:17 +0000)]
Update Georgian translation