Matthias Clasen [Thu, 13 Oct 2022 02:43:48 +0000 (02:43 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
docs: Add a cross-reference
See merge request GNOME/gtk!5117
Matthias Clasen [Thu, 13 Oct 2022 02:25:35 +0000 (22:25 -0400)]
docs: Add a cross-reference
Note that GtkTreeView is deprecated and link to the
list view introduction from 'Tree and List Widget Overview'.
Matthias Clasen [Thu, 13 Oct 2022 02:25:19 +0000 (02:25 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
filechooserentry: Add a set_text api
See merge request GNOME/gtk!5116
Matthias Clasen [Wed, 12 Oct 2022 04:06:21 +0000 (00:06 -0400)]
filechooser: Stop using entrycompletion api
The file chooser entry now has an api for this.
Matthias Clasen [Wed, 12 Oct 2022 04:05:44 +0000 (00:05 -0400)]
filechooserentry: Add a set_text api
This function prevents the completion popup
from coming up when setting the entry text.
Matthias Clasen [Wed, 12 Oct 2022 21:02:56 +0000 (21:02 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Start a migration guide for GTK 5
See merge request GNOME/gtk!5114
Matthias Clasen [Wed, 12 Oct 2022 20:38:18 +0000 (16:38 -0400)]
Start a migration guide for GTK 5
No need to panic, GTK 5 is still years away!
But it is good to write this material down while
it is fresh in mind.
Matthias Clasen [Wed, 12 Oct 2022 20:38:19 +0000 (20:38 +0000)]
Merge branch 'deprecate-render' into 'main'
wip: Deprecate gtk_render apis
See merge request GNOME/gtk!5100
Matthias Clasen [Wed, 12 Oct 2022 18:52:57 +0000 (14:52 -0400)]
inspector: Use gtk_widget_get_style_color
The graph renderer in the statistics page needs
the CSS foreground color to draw the graph. Use
the just introduced api for it.
Matthias Clasen [Wed, 12 Oct 2022 18:51:22 +0000 (14:51 -0400)]
Add gtk_widget_get_style_color
There is a widespread need to access the CSS foreground
color for custom drawing in snapshot functions, so make
it available after gtk_style_context_get_color was
deprecated with a new widget api.
Matthias Clasen [Wed, 12 Oct 2022 13:47:33 +0000 (09:47 -0400)]
cssnode: Avoid style context api
Duplicate the print flags in gtkcssnodeprivate.h,
so we don't rely on gtkstylecontext.h here.
Matthias Clasen [Mon, 10 Oct 2022 12:55:50 +0000 (08:55 -0400)]
tests: Ignore deprecations
Some of our tests use deprecated style context api.
Most of them should be ported to use global style
providers eventually. For now, ignore deprecations.
Matthias Clasen [Mon, 10 Oct 2022 12:55:10 +0000 (08:55 -0400)]
testsuite: Ignore deprecations
Some of our tests use deprecated style context
apis. Ignore the deprecations for now.
Matthias Clasen [Mon, 10 Oct 2022 12:40:27 +0000 (08:40 -0400)]
demos: Ignore deprecations
Most of these demos should be ported to use
global style providers eventually. For now,
just ignore the deprecations.
Matthias Clasen [Mon, 10 Oct 2022 03:30:06 +0000 (23:30 -0400)]
stylecontext: Deprecate most apis
The notable exception here are the global provider apis,
which are needed in some form and don't have a replacement
yet. Move them to gtkstyleprovider.[hc], so we can wholly
deprecated gtkstylecontext.[hc].
Matthias Clasen [Sun, 9 Oct 2022 12:05:28 +0000 (08:05 -0400)]
tests: Ignore deprecations for render api
Matthias Clasen [Sun, 9 Oct 2022 04:14:20 +0000 (00:14 -0400)]
aboutdialog: Stop using gtk_style_context_save
Matthias Clasen [Sun, 9 Oct 2022 03:44:01 +0000 (23:44 -0400)]
textview: Stop using gtk_style_context_save_to_node
Matthias Clasen [Sun, 9 Oct 2022 03:36:59 +0000 (23:36 -0400)]
text: Stop using gtk_style_context_save_to_node
Matthias Clasen [Sun, 9 Oct 2022 03:33:21 +0000 (23:33 -0400)]
label: Stop using gtk_style_context_save_to_node
Matthias Clasen [Sun, 9 Oct 2022 03:29:43 +0000 (23:29 -0400)]
scrolledwindow: Stop using gtk_style_context_save_to_node
Matthias Clasen [Sun, 9 Oct 2022 03:25:39 +0000 (23:25 -0400)]
printunixdialog: Stop using gtk_style_context_save_to_node
Matthias Clasen [Sun, 9 Oct 2022 03:13:01 +0000 (23:13 -0400)]
popover: Stop using gtk_style_context_save_to_node
Matthias Clasen [Sun, 9 Oct 2022 03:09:48 +0000 (23:09 -0400)]
flowbox: Stop using gtk_style_context_save_to_node
Matthias Clasen [Sun, 9 Oct 2022 02:54:48 +0000 (22:54 -0400)]
demos: Ignore deprecations for render apis
Eventually, this demo should probably be removed.
Matthias Clasen [Sat, 8 Oct 2022 20:57:23 +0000 (16:57 -0400)]
textview: Stop using gtk_snapshot_render api
The gtk_snapshot_render api is deprecated, so avoid using it.
Matthias Clasen [Sat, 8 Oct 2022 20:54:13 +0000 (16:54 -0400)]
text: Stop using gtk_snapshot_render api
The gtk_snapshot_render api is deprecated, so avoid using it.
Matthias Clasen [Sat, 8 Oct 2022 19:30:29 +0000 (15:30 -0400)]
label: Stop using gtk_snapshot_render api
The gtk_snapshot_render api is deprecated, so avoid using it.
Matthias Clasen [Sat, 8 Oct 2022 20:36:20 +0000 (16:36 -0400)]
Use the new caret rendering api
Implement the deprecated gtk_snapshot_render api
for carets with the new one.
Matthias Clasen [Sat, 8 Oct 2022 20:32:13 +0000 (16:32 -0400)]
Add gtk_css_style_snapshot_caret
Matthias Clasen [Sat, 8 Oct 2022 18:28:41 +0000 (14:28 -0400)]
glarea: Stop using gtk_snapshot_render api
The gtk_snapshot_render api is deprecated, stop using it.
Matthias Clasen [Sat, 8 Oct 2022 18:10:34 +0000 (14:10 -0400)]
inscription: Stop using gtk_snapshot_render api
The gtk_snapshot_render api is deprecated, so avoid using it.
Matthias Clasen [Sat, 8 Oct 2022 19:17:27 +0000 (15:17 -0400)]
render: Use the new layout render api
Matthias Clasen [Sat, 8 Oct 2022 19:02:33 +0000 (15:02 -0400)]
Add gtk_css_style_snapshot_layout
This function renders a PangoLayout at a given
position, using text shadows and color from css.
Matthias Clasen [Sat, 8 Oct 2022 17:59:37 +0000 (13:59 -0400)]
scrolledwindow: Port to the gtk_css_style_snapshot api
The gtk_snapshot_render api is deprecated, so avoid using it.
Matthias Clasen [Sat, 8 Oct 2022 17:48:19 +0000 (13:48 -0400)]
printunixdialog: Port to the gtk_css_style_snapshot api
The gtk_snapshot_render api is deprecated, so avoid using it.
Matthias Clasen [Sat, 8 Oct 2022 17:45:25 +0000 (13:45 -0400)]
popover: Port to the gtk_css_style_snapshot api
The gtk_snapshot_render api is deprecated, so avoid using it.
Matthias Clasen [Sat, 8 Oct 2022 17:40:41 +0000 (13:40 -0400)]
iconview: Port to the gtk_css_style_snapshot api
The gtk_snapshot_render api is deprecated, so avoid using it.
Matthias Clasen [Sat, 8 Oct 2022 17:32:38 +0000 (13:32 -0400)]
flowbox: Port to the gtk_css_style_snapshot api
The gtk_snapshot_render api is deprecated, so avoid using it.
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