Matthias Clasen
278bcf2680
filechooserentry: Simplify model construction
...
Don't pass a get_value callback when creating the
filesystem model. It isn't called anymore, and things
continue to work.
2022-10-20 22:34:40 -04:00
Matthias Clasen
c19d0dc9ea
filesystemmodel: Drop more unused api
...
Drop all apis that operate on tree iters.
We are no longer a tree model.
2022-10-20 22:34:40 -04:00
Matthias Clasen
edd5ed169e
filesystemmodel: Drop _gtk_file_system_model_get_value
...
This function is unused, so drop it, and its callback.
2022-10-20 22:34:40 -04:00
Matthias Clasen
8ec9c3fdc6
filechooser: Some work on popup menus
...
This is a start towards placing menus properly.
We once again center keyboard-triggered menus
on the file list.
2022-10-20 22:34:40 -04:00
Matthias Clasen
e95022040f
filechooser: Drop deprecated includes
...
We no longer use cell renderers and tree models
here. Yay.
2022-10-20 22:34:40 -04:00
Matthias Clasen
3a2ce620e2
filesystemmodel: Fix a possible problem
...
If the async query fails to reproduce a file info,
we still need to thaw the model, otherwise it ends
up frozen forever.
This was deduced by reading the code, I haven't
actually seen it happen.
2022-10-20 22:34:40 -04:00
Matthias Clasen
df49bf9eec
filechooserwidget: Use a string sorter for names
...
We can use the new collation property of GtkStringSorter,
and get the benefit of sort key caching. This commit
also fixes an accidental leak of all sorters, and
removes the sorter from the location column - we never
show that column when individual colummns are sortable.
2022-10-20 22:34:40 -04:00
Matthias Clasen
53327f3aea
filechooser: Drop unnecessary theme tracking
...
The widgets we are using handle theme changes
themselves, so there is no need for the filechooser
to do anything.
2022-10-20 22:34:40 -04:00
Matthias Clasen
c0c3d75062
filechooser: Bring back sorting
...
Add a sort model between the filter model and the
file system model, and set it up to sort according
to the circumstances.
2022-10-20 22:34:40 -04:00
Corey Berla
d0d0409f9d
filechooserwidget: Reimplement DnD Drop Target
...
This reverts commit 34752a15a71597d00a8d08befc545ac1c178b81b.
Leaving out the drag source portion as that needs a total
reimplementation. The GtkDropTarget only required minor
modifications.
2022-10-20 22:34:40 -04:00
Matthias Clasen
3a7d094542
filechooserwidget: Reinstate show_and_select_files
...
Now that we have information about visible and
filtered-out status of items, we can make this
function work again.
2022-10-20 22:34:40 -04:00
Matthias Clasen
280adcbb8c
filechooserwidget: Add a filter model
...
Put a filter model between the selection model and
the filesystem model, and make it filter on the
filechooser::visible attribute. This makes the filer
combo in the filterchooser and the 'show hidden files'
item work. But we need to prod the filter to trigger
a refiltering every now and then.
2022-10-20 22:34:40 -04:00
Matthias Clasen
83431a999c
filesystemmodel: Make filtering info available
...
Provide the filtered-out and visible bits as a file attributes
under the names filechooser::filtered-out and filechooser::visible,
so that we can filter on it.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
eeeee99aa8
filechooserwidget: Connect to the right model
...
When recreating the browse_files_model model, connect to that
model's item-changed signal, instead of connecting to the selection
model.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
0f503e0ba2
filechooserwidget: Connect to items-changed when changing model
...
Just like previous commit, we need to call list_items_changed()
even if we change from single selection to multi selection or
vice-versa.
2022-10-20 22:34:40 -04:00
Matthias Clasen
3e4ae62b44
filesystemmodel: Drop an unused include
2022-10-20 22:34:40 -04:00
Matthias Clasen
ec4f814bd4
filechooserwidget: Listen to items-changed too
...
To track changes of the selected items in a selection
model, we need to listen to both ::selection-changed
and ::items-changed.
This fixes the open button not turning sensitive
when initially loading a new folder.
2022-10-20 22:34:40 -04:00
Matthias Clasen
0141ba4e00
filechooser: Prevent recursion when activating items
...
When a list item is activated, we activate the default widget.
Unfortunately, due to some other bug, sometimes the open button
is not made sensitive, and then default.activate falls back
to activating the focus widget (which is the item we are just
coming from). Boom
2022-10-20 22:34:40 -04:00
Matthias Clasen
52ef16c21b
actionmuxer: Add debug spew for action activation
...
This helps tracking down whe activation goes wrong.
2022-10-20 22:34:40 -04:00
Matthias Clasen
6ca7104015
filesystemmodel: Drop the tree model implementation
...
This is no longer used.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
07d6166ab8
filechooserwidget: Use GListModel API for post-renaming selection
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
dc651c3dc3
filechooserentry: Use separate GtkTreeStore for completion
...
Soon GtkFileSystemModel will not be a GtkTreeModel implementation,
so preemptively remove any usage of this interface. Populate the
list store using the GListModel's 'items-changed' signal.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
f520801626
filesystemmodel: Retire GtkFileSystemItem
...
This has to be the shortest-living object in GTK history!
It helped us greatly during the transition to GtkColumnView, but
now we can remove it in favour of GFileInfo directly. Perhaps I
could have never introduced GtkFileSystemItem in the first place,
but we're 30 commits deep and it's too late to just redo the whole
thing that will get us exactly here anyway.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
4e3fbd0b0f
filesystemmodel: Always set standard::file attribute
...
This will help us greatly when porting GtkFileSystemModel to
GtkDirectoryList.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
8a24fdea38
filesystemmodel: Trivial cleanup
...
Use g_set_object() which does exactly what the code there does.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
b26222b6ba
filechooserutils: Add helper to get GFile from info
...
This will be used extensively starting from next commit!
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
c8d291ab86
filechooserentry: Trivial cleanups
...
Use g_clear_object() in a couple of places. No functional changes.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
0a87438432
searchenginemodel: Use GListModel API to filter
...
We now start a mini-series of commits that will ultimately remove
the GtkTreeModel implementation of GtkFileSystemModel.
As a first step, port GtkSearchEngineModel iter through the files
using GListModel API.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
ddf1cd6678
filechooserwidget: Remove treeview
...
Now that most of the treeview usage is gone, remove the remaining
code that uses it - mostly event handling code, which for now won't
work, but will be fixed by next commits - and drop the tree view
entirely.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
9c6d5e2ca5
filechooserwidget: Use GtkSelectionModel for selection
...
So far, GtkFileChooserWidget has relied on GtkTreeView's selection
management. This commit moves it away from GtkTreeView, and that's
a massive surgery - sorry :(
The most important aspect of this commit is that 'selection_model'
is now the main model we deal with. Changing between directories,
recent files, and search, all sets the selection_model's model.
Selections are entirely handled by GtkSelectionModel now.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
1f2561b08e
filesystemmodel: Add more GtkFileSystemItem getters
...
They'll help us further remove GtkTreeModel code.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
d5b31a30fd
filechooserwidget: Stop centering on selected files
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
39c678988d
filechooserwidget: Don't queue redraw / resize on tree view
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
9052c191cb
filechooserwidget: Compare focus against column view
...
This effectively doesn't work, but focus will be reworked at some
point, and this gets us a tiny bit closer to that.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
766f442636
gtkfilechooserwidget: Don't set size request
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
27a3d2d09e
filesystemmodel: Don't implement GtkTreeDragSource
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
3a3482e41e
filechooserwidget: Remove DnD code
...
Another case where we'll reimplement it later.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
44c37fa34a
filesystemmodel: Drop GtkTreeSortable interface
...
Stop implementing this interface. We'll be able to reimplement
sorting once we fully transition to GListModel.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
5c41dbfaa5
filechooserwidget: Remove sorting
...
This will be reimplemented later using list models. For now, let's
remove it so we can untangle all this code properly.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
c9d2ff7a0f
filechooserwidget: Stop autosizing treeview
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
174af596c5
filechooserwidget: Use column view scrolled window
...
One less hook to treeview widgetry.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
de2624faa7
filechooserwidget: Move tooltip text to column view
...
Use a closure binding to query the tooltip.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
cda784a5f4
filechooserwidget: Move folder navigation to column view
...
React to column view's 'activate' signal, instead of treeview's
'row-activated'. It doesn't handle file sensitivity yet, but that
will probably be dropped later.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
cc33dbef03
filechooserwidget: Move keynav handling to column view
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
ce36611c4e
filechooserwidget: Set rubberbanding on column view
...
And stop setting it on the tree view.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
038cb31d27
filesystemmodel: Don't expose cache
...
With this commit we start slowly cleaning up the sattelite code
surrounding GtkFileChooserWidget, so that we eventually drop it
all.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
3b53a6b0a9
filechooserwidget: Remove extra action bar
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
619ff2338e
filechooserwidget: Move date and time to column view
...
Because this is the last treeview column, some pending tasks
are marked as TODO. We're getting close to dropping the tree
view!
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
2bcd6949df
filechooserwidget: Move file type to column view
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
abd78ce5f5
filechooserwidget: Move size to column view
...
This was one of the easier ones. We merely delegate the hard work
to g_format_size(), like we already do for treeview.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
7899fc03c4
filechooserwidget: Move location to column view
...
Move the entire location column, which only contains the location
renderer, to the column view. The code to generate locations from
the current folder is essentially intact.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
9984f00781
filechooserwidget: Drop name column from treeview
...
It is now entirely handled by the column view.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
a0d3bdc911
filechooserwidget: Move file icon to column view
...
This commit moves the icon loading code into a new private
widget called GtkFileThumbnail, which is bound to the GFileInfo
of the model, and asynchronously loads the file icon from that.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
b96317b872
filechooserwidget: Move file name to column view
...
And remove it from the tree view. Next commits will look a lot like
this, until all columns are moved.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
6c84958b9f
filechooserwidget: Replace 'list' page with column view
...
Replace the 'list' page of the main stack with another page, this
one containing a GtkColumnView. This, again, is the very minimal
code to achieve a column view - and validate the GListModel code
introduced in the previous commit - but there's a long way until
this column view covers the full range of features of the file
chooser.
The tree view still lives in an unused 'list2' page. From now on,
commits will "cannibalize" the treeview, each commit porting any
particular feature - be it a column, an event controller, etc -
to the column view, and dropping the corresponding feature from
the treeview.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
f2559b1dbb
filesystemmodel: Implement GListModel
...
This is a trivial implementation of the GListModel interface. It
does not do anything fancy, like filtering out hidden files, nor
sorting.
The purpose of this minimal implementation is to bootstrap the
initial work to port GtkFileChooserWidget to GtkColumnView.
2022-10-20 22:34:40 -04:00
Georges Basile Stavracas Neto
ed2ade4801
filesystemmodel: Use g_clear_* on finalize
...
Trivial cleanup, no functional changes.
2022-10-20 22:34:40 -04:00
Matthias Clasen
4549172825
Merge branch 'matthiasc/for-main' into 'main'
...
inspector: Fix accessibility calls
See merge request GNOME/gtk!5154
2022-10-21 02:28:02 +00:00
Matthias Clasen
b877804eb6
Merge branch 'completion' into 'main'
...
entrycompletion: Fix inserted-text handler
See merge request GNOME/gtk!4892
2022-10-21 02:13:42 +00:00
Matthias Clasen
5310abbcf7
filechooserentry: Fix completions
...
Before we can drop them, lets make them work.
This was broken since 4.0, I assume :(
2022-10-20 21:41:18 -04:00
Matthias Clasen
490d4b0b9e
inspector: Fix accessibility calls
...
The argument list of gtk_accessible_update_property
is -1-terminated, not NULL-terminated.
2022-10-20 21:19:13 -04:00
Matthias Clasen
375432f0b6
Merge branch 'columnview-sorter-api' into 'main'
...
gtk-demo: Add more sort columns
Closes #5149
See merge request GNOME/gtk!5152
2022-10-20 19:18:26 +00:00
Matthias Clasen
4cd2e2a11f
Merge branch 'ebassi/tree-deprecation-docs' into 'main'
...
docs: Add deprecation messages to GtkTreeStore
See merge request GNOME/gtk!5115
2022-10-20 18:39:29 +00:00
Matthias Clasen
9ed1505073
columnviewtitle: Clean up interactions
...
Separate the apis we use for updating title,
menu and sort indicator.
2022-10-20 13:57:33 -04:00
Matthias Clasen
e040d3663e
columnviewsorter: Add public API
...
This API should be sufficient to serialize
a columnviews sort configuration.
Fixes : #5149
2022-10-20 13:06:45 -04:00
Matthias Clasen
6af69a7b7d
Make GtkColumnViewSorter public
...
API is yet to come.
2022-10-20 13:01:18 -04:00
Matthias Clasen
a116e0dd26
columnviewsorter: Cosmetics
2022-10-20 13:01:18 -04:00
Matthias Clasen
3e2b962a36
columnviewcolumn: Add an ID
...
This string can be used when storing columnview
configuration.
2022-10-20 13:01:18 -04:00
Matthias Clasen
abb60ec579
columnviewcolumn: Remove some unused code
2022-10-20 11:44:05 -04:00
Matthias Clasen
b738d4a6ac
columnviewcolumn: Cosmetics
2022-10-20 11:44:05 -04:00
Emmanuele Bassi
e05157437f
Add more messages to the deprecation warnings
...
Point to replacement types for the old GtkTree* API.
2022-10-20 15:39:07 +01:00
Emmanuele Bassi
e045e798a2
Mark GtkStyleContext type as deprecated
...
Add the Deprecated tag to the type docblock
2022-10-20 15:39:07 +01:00
Emmanuele Bassi
7908a72fa9
Mark GtkEntryCompletion type as deprecated
...
Add the Deprecated tag to the type docblock.
2022-10-20 15:39:07 +01:00
Emmanuele Bassi
593bf2bc6d
Mark GtkTreeView-related types as deprecated
...
Add the Deprecated annotation to the type docblock.
2022-10-20 15:39:07 +01:00
Jan Tojnar
cf701d5db4
imcontextsimple: Document that Compose file support is incomplete
...
And that `include "%L"` does something different as introduced in
3b4b1c6878
Note that user can still use `include "/.%L"` as a workaround.
2022-10-20 16:19:13 +02:00
Emmanuele Bassi
bf8d4c5418
Mark GtkAppChooser-related types as deprecated
...
The type docblock needs a Deprecated annotation.
2022-10-20 14:38:31 +01:00
Emmanuele Bassi
912145c81b
Mark GtkCellRenderer-related types as deprecated
...
The docblock for the type needs a Deprecated annotation, and we can use
it to point to the appropriate replacement.
2022-10-20 14:38:31 +01:00
Emmanuele Bassi
913127b553
Point at the replacement for GtkIconView
...
In the symbol annotations and in the docblocks.
2022-10-20 14:38:31 +01:00
Emmanuele Bassi
62f85e2f49
Point at the replacements for GtkTreeView
...
In the symbol annotations and in the docblocks.
2022-10-20 14:38:31 +01:00
Emmanuele Bassi
4b1212eb4a
Point to replacement for GtkComboBoxText
...
GtkDropDown and GtkStringList replace GtkComboBoxText with a simpler
API.
2022-10-20 14:38:31 +01:00
Jan Tojnar
94a096ec4c
composetable: Support non-FHS paths for Compose tables
...
On platforms like NixOS, the libX11 installation prefix may differ from /usr/share,
breaking the hardcoded placeholders. Let’s re-use the X11 path definition from imcontextsimple.
2022-10-20 12:59:17 +02:00
Emmanuele Bassi
404ee55ec4
Point to GtkDropDown as the GtkComboBox replacement
2022-10-20 11:10:57 +01:00
Emmanuele Bassi
5fbd52da49
docs: Add deprecation message for GtkListStore
...
Point to GListStore and list models instead.
2022-10-20 11:02:29 +01:00
Emmanuele Bassi
7bf094c117
docs: Add deprecation messages to GtkTreeStore
...
Point to GtkTreeListModel, and while we're at it, let's fix some of the
gtk-doc-isms that are still there.
2022-10-20 11:02:29 +01:00
Matthias Clasen
4bb79decf3
Merge branch 'label-selection-fix' into 'main'
...
label: Tweak selection behavior
Closes #2024
See merge request GNOME/gtk!5148
2022-10-19 21:37:08 +00:00
Matthias Clasen
60fb93e063
label: Tweak selection behavior
...
Arrange for double-click-followed-by-drag to do
select by words, not select-and-dnd. This matches
the behavior in GtkTextView better and feels
intuitive.
Fixes : #2024
2022-10-19 16:22:55 -04:00
Matthias Clasen
17819ad4f6
filechooser: Improve "Open in File Manager"
...
Just relying on GAppInfo leads to suboptimal
results. Instead, call either the OpenURI portal
or the org.freedesktop.FileManager1 interface
directly, and only fall back to GAppInfo.
The wrapper code for the OpenURI portal is taken
from gio, with small adjustments.
Fixes : #5260
2022-10-19 15:01:21 -04:00
Matthias Clasen
e037155a94
Merge branch 'text-overwrite-undo' into 'main'
...
testsuite: Fix tiff pixbuf tests
Closes #4411
See merge request GNOME/gtk!5138
2022-10-19 05:59:13 +00:00
Matthias Clasen
55cbb8a8d6
Merge branch 'clarify-gapplication-docs' into 'main'
...
docs: Clarify a point in GtkApplication docs
See merge request GNOME/gtk!5139
2022-10-19 03:54:36 +00:00
Matthias Clasen
1e5e0480fd
text: Make overwrite undo-friendly
...
In overwrite mode, every typed character gets
handled as a delete+insert, but we should not
record these as two individually undoable
steps.
This matches how we handle overwrite mode in
GtkTextView.
Fixes : #4411
2022-10-18 23:49:16 -04:00
Matthias Clasen
917aa7928d
docs: Clarify a point in GtkApplication docs
...
Clarify that loading of automatic resources uses
the resource base path that was set at construction
time.
Fixes : #4300
2022-10-18 23:47:48 -04:00
Matthias Clasen
55ccaf9df9
modelbutton: Set up tooltips
...
Use the text of iconic model buttons as tooltip.
Fixes : #5220
2022-10-18 22:35:28 -04:00
Matthias Clasen
d4d7d5eafd
fontchooser: Drop a few errant translations
...
No point in translating these properties, they
are not strings.
Fixes : #5146
2022-10-18 16:40:37 -04:00
Matthias Clasen
7be993b728
editablelabel: Defer changes on focus-out
...
We can get spurious focus-out/-in pairs when
the editable label is in a popover that gets
a Wayland keyboard enter event as a result of
clicking the editable label.
A timeout isn't a great solution, but nothing
better is available right now.
Fixes : #4864
2022-10-18 14:23:22 -04:00
Matthias Clasen
e1d78821f6
window: Keep a reference to move_focus_widget
...
If we don't take a reference, it can happen that
the pointer is no longer valid by the time we
dereference it in after_paint.
2022-10-18 14:23:11 -04:00
Matthias Clasen
94ac1af293
Merge branch 'fix-focus-changes' into 'main'
...
window: Fix focus updates
Closes #4903
See merge request GNOME/gtk!5127
2022-10-18 11:02:08 +00:00
Matthias Clasen
f5063c1435
window: Don't focus invisible widgets
...
Only clear a queued move_focus if the widget
we are focusing is actually visible.
This was happening in some cases when popovers
are dismissed by clicking outside, and it was
causing us to miss proper focus updates that
were already queued.
2022-10-18 06:42:17 -04:00
Bilal Elmoussaoui
0fbaeaabd0
g-i: Fix deprecated version of GtkTreeView
2022-10-18 11:27:39 +02:00
Luca Bacci
995f00d23f
Merge branch 'forward-port-mr-991-to-gtk4-2' into 'main'
...
Use native Windows API for converting keystrokes to characters
Closes #2944
See merge request GNOME/gtk!4986
2022-10-17 19:20:08 +00:00
Matthias Clasen
100605ef0c
window: Fix focus updates
...
This partially undoes changes from 3dbf5038fa
.
That commit did two things:
1) Move the focus update to after-paint time
2) Change from grabbing focus to the visible parent
to calling move_focus (TAB)
The second part did have the unintended consequence
of moving focus laterally.
Fixes : #4903
2022-10-17 15:10:41 -04:00
Benjamin Otte
f30e59fed9
dropdown: Handle ::selected and ::selected-item separately
...
GtkSingleSelection will only emit either of those signals if they
change. But it is possible that only one of those properties changes,
and in those cases we want to only notify for that property changing in
the dropdown, too.
2022-10-17 20:11:27 +02:00
Benjamin Otte
5e8b294faf
singleselection: Be more careful about notifies
...
We don't want to notify::selected or notify::selected-item if they
didn't change.
This will bring performance benefits on frequently changing lists.
In particular, if lists get filtered or reordered, but the selected item
stays in the list, not doing a notify::selected-item will avoid updates
in connected handlers like GtkDropdown (and its handlers), thereby
avoiding lots of unnecessary updates.
2022-10-17 20:11:27 +02:00
Philip Zander
c84c469b78
Use native Windows API for converting keystrokes to characters
2022-10-17 19:36:48 +02:00
Matthias Clasen
d775caff7f
Rename gtk_widget_get_style_color
...
This name wasn't everybody's favorite, so go with
the generic name gtk_widget_get_color() instead.
2022-10-16 21:41:43 -04:00
Benjamin Otte
ca2e14788d
Merge branch 'antoniof-main-patch-03677' into 'main'
...
columnview: Don't be focusable
See merge request GNOME/gtk!5022
2022-10-14 22:39:49 +00:00
Sebastian Dröge
294e5bb79f
Fix documentation for gtk_widget_get_style_color()
...
It was pointing at `gtk_widget_get_css_style()` instead.
2022-10-14 12:36:11 +03:00
Matthias Clasen
bde19f9b2a
Fix blank popovers
...
This was a typo in 2b00b64e8c
, making
us render the background on the wrong snapshot.
2022-10-13 16:38:41 -04:00
Matthias Clasen
3d605615ce
filechooser: Update the settings docs
...
Document the window-position setting as unused.
2022-10-12 22:47:51 -04:00
Matthias Clasen
fa3c8ed5f9
filechooser: Stop using entrycompletion api
...
The file chooser entry now has an api for this.
2022-10-12 21:59:35 -04:00
Matthias Clasen
8ac5f1983e
filechooserentry: Add a set_text api
...
This function prevents the completion popup
from coming up when setting the entry text.
2022-10-12 21:59:19 -04:00
Matthias Clasen
812a879ec2
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.
2022-10-12 15:35:00 -04:00
Matthias Clasen
5627542d7c
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.
2022-10-12 15:35:00 -04:00
Matthias Clasen
f42fe500c9
cssnode: Avoid style context api
...
Duplicate the print flags in gtkcssnodeprivate.h,
so we don't rely on gtkstylecontext.h here.
2022-10-12 15:35:00 -04:00
Matthias Clasen
ee8c2a235f
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].
2022-10-12 15:35:00 -04:00
Matthias Clasen
5f54ecdf2c
aboutdialog: Stop using gtk_style_context_save
2022-10-12 15:35:00 -04:00
Matthias Clasen
e09138ce45
textview: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
a71893f88b
text: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
01324ffaff
label: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
c354465ed8
scrolledwindow: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
50ab2386ec
printunixdialog: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
bf9f362597
popover: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
d03ee57cc5
flowbox: Stop using gtk_style_context_save_to_node
2022-10-12 15:35:00 -04:00
Matthias Clasen
616e0a0d32
textview: Stop using gtk_snapshot_render api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
ee76105119
text: Stop using gtk_snapshot_render api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
381f863a18
label: Stop using gtk_snapshot_render api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
57c63d9ce7
Use the new caret rendering api
...
Implement the deprecated gtk_snapshot_render api
for carets with the new one.
2022-10-12 15:35:00 -04:00
Matthias Clasen
0522dade9f
Add gtk_css_style_snapshot_caret
2022-10-12 15:35:00 -04:00
Matthias Clasen
484cff2182
glarea: Stop using gtk_snapshot_render api
...
The gtk_snapshot_render api is deprecated, stop using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
dd3c371c08
inscription: Stop using gtk_snapshot_render api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
3145bce6a1
render: Use the new layout render api
2022-10-12 15:35:00 -04:00
Matthias Clasen
73f991a7fd
Add gtk_css_style_snapshot_layout
...
This function renders a PangoLayout at a given
position, using text shadows and color from css.
2022-10-12 15:35:00 -04:00
Matthias Clasen
0205caa371
scrolledwindow: Port to the gtk_css_style_snapshot api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
c2c46a7036
printunixdialog: Port to the gtk_css_style_snapshot api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
2b00b64e8c
popover: Port to the gtk_css_style_snapshot api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
4e2522a080
iconview: Port to the gtk_css_style_snapshot api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
473065dfeb
flowbox: Port to the gtk_css_style_snapshot api
...
The gtk_snapshot_render api is deprecated, so avoid using it.
2022-10-12 15:35:00 -04:00
Matthias Clasen
60dafebd91
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.
2022-10-12 15:35:00 -04:00
Matthias Clasen
35370752d5
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.
2022-10-12 15:35:00 -04:00
Matthias Clasen
808d00906c
printunixdialog: Stop using gtk_render_ apis
...
These are getting deprecated.
2022-10-12 15:35:00 -04:00
Matthias Clasen
da5d5bd71f
popover: Stop using gtk_render_background
...
The gtk_render_ apis are getting deprecated.
2022-10-12 15:34:59 -04:00
Matthias Clasen
0c99e69423
flowbox: Stop using gtk_render_background
...
The gtk_render_ apis are getting deprecated.
2022-10-12 15:34:59 -04:00
Matthias Clasen
410813eb6b
Merge branch 'deprecate-all-the-cells' into 'main'
...
Deprecate treeviews and cell renderers
See merge request GNOME/gtk!5098
2022-10-12 19:28:04 +00:00
Luca Bacci
6cc44eb0fe
Merge branch 'for-master' into 'main'
...
For master
See merge request GNOME/gtk!5095
2022-10-12 13:56:51 +00:00
Matthias Clasen
11ee930b9d
Merge branch 'inspector_a11y' into 'main'
...
GtkInspector: make the inspector at least a little bit more accessible
See merge request GNOME/gtk!5109
2022-10-12 11:06:35 +00:00
Matthias Clasen
5e256590db
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
2022-10-11 17:18:21 -04:00
Matthias Clasen
79303d7cd3
inspector: Drop an unused file
2022-10-11 17:18:21 -04:00
Matthias Clasen
681a818af2
flowbox: Stop using gtk_render_background
...
The gtk_render_ apis are getting deprecated.
2022-10-11 17:18:21 -04:00
Matthias Clasen
c419b57754
stringsorter: Fix up a doc typo
...
gi-docgen links can be tricky to get right.
2022-10-11 15:32:05 -04:00
Matthias Clasen
05323869d7
stringsorter: Add more detail to the docs
...
Mention when a collation value of NONE might
be useful.
2022-10-11 14:09:21 -04:00
Matthias Clasen
2520148ebb
Apply 2 suggestion(s) to 2 file(s)
2022-10-11 17:53:26 +00:00