Carlos Garnacho
e3b0d57ce7
imcontextwayland: Implement activate_osk() vmethod
...
This method does explicitly what the builtin GtkClickGesture in
the IM context is doing implicitly. The gesture will be dropped
after porting is done.
2022-11-28 15:46:41 +01:00
Carlos Garnacho
6d0f7a2d31
immulticontext: Implement activate_osk() vmethod
...
The multicontext lets this call go through to the active
underlying GtkIMContext.
2022-11-28 15:46:41 +01:00
Carlos Garnacho
459583ba9e
imcontext: Add private activate_osk() vmethod
...
This method is so far private for both external GtkIMContext
implementations and external GtkIMContext users, and is meant
to activate the OSK in the environments where this may happen.
2022-11-28 15:46:41 +01:00
Carlos Garnacho
59af80ab8b
Revert "gtktext: Claim gesture more selectively"
...
This reverts commit ae54374a51
.
2022-11-28 15:46:41 +01:00
Bilal Elmoussaoui
0919320086
g-i: Add missing since annotations
2022-11-28 07:54:48 +00:00
Corey Berla
72bc97fff5
treeexpander: Minor formatting changes
2022-11-27 19:39:20 -08:00
Corey Berla
648b38761c
treeexpander: Add indent-for-depth property
...
When set to TRUE, indent-for-depth indents each level of
depth with an additional indent
2022-11-27 19:36:20 -08:00
Corey Berla
2b578a24e4
treeexpander: Add hide-expander property
...
When set to TRUE hide-expander hides the expander icon in a
GtkTreeListRow.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4969
2022-11-27 19:36:11 -08:00
Matthias Clasen
90c986e493
Merge branch 'wip/corey/spi-logging' into 'main'
...
atspicontext: Log failure to connect to a11y
See merge request GNOME/gtk!5270
2022-11-28 01:29:10 +00:00
Corey Berla
16fd72e606
atspicontext: Log failure to connect to a11y
...
GTK depends on the a11y infrastructure to be in place unless GTK_A11Y is
set to none. It appears that despite that, users attempt to
get around the a11y requirement without setting GTK_A11Y.
This can cause, amongst other issues, performance problems
with gtk applications. Log failure to connect to the a11y
bus.
2022-11-27 14:13:13 -08:00
Cam Cook
b876b4f568
| domain | current | suggestion |
...
|--------|---------|------------|
| [GtkListBox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklistbox.c#L1469 )| (attributes org.gtk.Metthod.get_property=activate-on-single-click) | (attributes org.gtk.Method.get_property=activate-on-single-click) |
2022-11-27 07:42:12 -05:00
Cam Cook
dd780b3ce0
| domain | current | suggestion |
...
|--------|---------|------------|
| [GtkHeaderBar](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkheaderbar.c#L780 ) | "specifies a icon" | "specifies an icon" |
2022-11-27 06:49:40 -05:00
Cam Cook
0663758566
| domain | current | suggestion |
...
|--------|---------|------------|
| [GtkGridView](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkgridview.c#L1241 ) | "Sets the imodel to use." | "Sets the model to use." |
2022-11-27 06:30:30 -05:00
Cam Cook
47bbc7e944
| domain | current | suggestion |
...
|--------|---------|------------|
| (GtkLevel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklevelbar.c#L1139 ) | "between [property@Gtk.LevelBar:min-value[" | "between [property@Gtk.LevelBar:min-value]"|
2022-11-26 14:51:34 -05:00
Cam Cook
c89cdb680d
| domain | current | suggestion |
...
|--------|---------|------------|
| [GtkLevel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklevelbar.c#L1104 ) | "Returns the \`min-value of the \`GtkLevelBar\`." | "Returns the \`min-value\' of the \`GtkLevelBar\`."|
2022-11-26 14:35:40 -05:00
Cam Cook
d19426d399
| domain | current | suggestion |
...
|--------|---------|------------|
| [GtkLabel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.c#L3142 ) | "the [property@Gtk.Label:use-underline property]" | "the [property@Gtk.Label:use-underline] property" |
2022-11-26 13:32:27 -05:00
Emmanuele Bassi
cc546d7af1
build: Add a check argument to run_command()
...
Silence a Meson warning.
2022-11-26 15:18:42 +00:00
Cam Cook
cb303895aa
Various spelling mistakes (and one use of the wrong verb) across a few domains that show up in documentation.
...
| domain | current | suggestion |
|--------|---------|------------|
| [GtkBitset](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkbitset.c#L363 ) | "Value to add" | "Value to remove" |
| [GtkEntry](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkentry.c#L3626 ) | "\`GtkEntry" | "\`GtkEntry\`" |
| [GtkEntry](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkentry.c#L3566 ) | "will be applies" | "will be applied" |
| [GtkEntry](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkentry.c#L2232 ) | "is is in" | "is in" |
| [GtkInfoBar](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/deprecated/gtkinfobar.c#L772 ) | "in the info bars’s action area" | "in the info bar’s action area |
| [GtkLabel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.c#L3210 ) | "Gets the labels attribute list." | "Gets the label's attribute list."
2022-11-26 06:54:47 -05:00
Bilal Elmoussaoui
5ede8dd1eb
g-i: Add missing since annotation
2022-11-25 10:16:37 +00:00
Matthias Clasen
e73f0f6974
file dialog: Handle Escape better
...
Closing the dialog by hitting Escape should
have the same effect as clicking the cancel
button. Make it so.
2022-11-24 10:29:43 -05:00
Matthias Clasen
ff14c51950
color dialog: Handle Escape better
...
Closing the dialog by hitting Escape should
have the same effect as clicking the cancel
button. Make it so.
2022-11-24 10:29:03 -05:00
Matthias Clasen
942f8d4b4b
Deprecate GtkInfoBar
...
This widget has a dialog-like API, which is something
we want to get rid of in GTK 5, and libadwaita has
a replacement with AdwBanner incoming.
2022-11-23 13:00:09 -05:00
Florian "sp1rit"
6dd939f13e
improved docs of Gtk.GestureStylus
2022-11-23 09:09:50 +01:00
Florian "sp1rit"
c85fbcea55
adjusted stylus-only code to fit gtk code conventions
2022-11-23 08:59:29 +01:00
Florian "sp1rit"
789778105d
gtk: gtkgesturestylus: implemented stylus-only
property
...
this allows setting a Gtk.GestureStylus to a state, where it can be
used to handle non-stylus devices (e.g. mice).
This might be useful for applications that handle stylus input, but
want to allow falling back to a mice, if the user is unable to provide
stylus input.
2022-11-22 09:13:35 +01:00
Matthias Clasen
d34ac99916
filefilter: Add properties for the criteria
...
Add construct-only properties for patterns,
suffixes and mime-types. This provides an
alternative way to specify these in ui files.
Related: #5350
2022-11-21 22:44:03 -05:00
Matthias Clasen
205b718fe5
colorpicker: Always try the portal first
...
It does not hurt., and going forward, we want to
prefer portals.
2022-11-21 14:26:29 -05:00
Matthias Clasen
01ae136a4c
Merge branch 'bilelmoussaoui/g-i' into 'main'
...
g-i: add missing array annotation to AlertDialog.set_buttons
See merge request GNOME/gtk!5234
2022-11-21 10:49:05 +00:00
Matthias Clasen
83839cb219
Merge branch 'drop-buildable-get-id' into 'main'
...
builder: Stop using GtkBuildable.get_id
See merge request GNOME/gtk!5239
2022-11-21 10:35:16 +00:00
Matthias Clasen
e357ff6055
Drop gtk_widget_buildable_parser_finished
...
No need to have this no-op implementation.
This was the only implementation of this vfunc
in GTK.
2022-11-20 14:36:35 -05:00
Matthias Clasen
92edd4c476
builder: Stop using GtkBuildable.get_id
...
Drop the only implementation of this vfunc,
and stop using it. It isn't needed, and the
only implementation did the same thing GtkBuilder
does anyway.
2022-11-20 14:35:36 -05:00
Matthias Clasen
f0aefe2f7f
stringlist: Add a construct-only strings property
...
This enables creating string lists in ui files
without using custom markup.
Related: #5350
2022-11-20 14:07:45 -05:00
Matthias Clasen
8dc89ba3d8
centerbox: Add properties for child widgets
...
This provides and alternative to add children
in ui files.
Related: #5350
2022-11-20 12:54:31 -05:00
Bilal Elmoussaoui
97d76417fa
g-i: add missing array annotation to AlertDialog.(s|g)et_buttons
2022-11-19 14:33:19 +01:00
Matthias Clasen
ab530b9e5a
Merge branch 'builder-parse-attributes' into 'main'
...
builder: Parse PangoAttrList values
See merge request GNOME/gtk!5228
2022-11-19 02:49:23 +00:00
Matthias Clasen
21a69e7107
Merge branch 'wip/carlosg/osk-activation' into 'main'
...
gtktext: Claim gesture more selectively
Closes #5351
See merge request GNOME/gtk!5230
2022-11-18 19:33:55 +00:00
Matthias Clasen
d45155364e
Merge branch 'kjellahl/menubar' into 'main'
...
gtk_popover_menu_bar_set_menu_model(): Accept model == NULL
See merge request GNOME/gtk!5232
2022-11-18 19:33:37 +00:00
Kjell Ahlstedt
8911015549
gtkpopovermenubar: Make model nullable
...
The description of gtk_popover_menu_bar_new_from_model() and
gtk_popover_menu_bar_set_menu_model() says that model is nullable.
Make it so.
2022-11-18 18:09:42 +01:00
Carlos Garnacho
ae54374a51
gtktext: Claim gesture more selectively
...
Even though button 1 (or touch down) presses do most often have
an effect in one way or another (starting drag, moving focus,
starting selection, ...), there is one situation that they do
immediately nothing: When clicking on the entry does not move
the text caret around. Dragging might start a selection, but
the entry did not do anything just yet, and an immediate
button/touch release should remain at "did nothing".
And that is precisely the hint that the Wayland IM context's click
gesture takes, clicks that do not scroll nor move the caret around,
having the GtkText not claim the gesture in that situation makes
the IM gesture able to do its thing without in-fighting.
This is typically not a problem when the GtkText is embedded in
another GtkEditable implementation (e.g. GtkEntry), since the
IM gesture is inactive and capturing from the parent widget, so
gets a pass that it otherwise doesn't get when both gestures are
in the same widget. This makes it work regardless of GtkText not
being a child of a composite widget, like NautilusQueryEditor
and AdwRowEntry.
Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5351
2022-11-18 17:56:14 +01:00
Matthias Clasen
1f97714293
immodule: Accept 'simple' and 'none'
...
Everybody (including myself) gets this wrong,
so accept 'simple' and 'none' as shorthands
for the official IDs 'gtk-im-context-simple'
and 'gtk-im-context-none'.
2022-11-18 11:18:48 -05:00
Matthias Clasen
9af8c6fb25
immmodule: Warn if GTK_IM_MODULE is bad
...
If we don't find an immodule matching the
ids in the GTK_IM_MODULE envvar, print a
warning.
2022-11-18 11:18:48 -05:00
Matthias Clasen
9682085e09
builder: Parse PangoAttrList values
...
Allow specifying PangoAttrList properties in the
serialized format supported by pango_attr_list_to_string().
Test included.
2022-11-18 10:42:50 -05:00
Matthias Clasen
9cbfbbdf39
stringsorter: Fix one case of collation handling
...
When not ignoring case, and not collating, we were
returning sort keys that were already freed. Oops.
Pointed out by clang.
2022-11-18 00:04:23 -05:00
Matthias Clasen
95fc5109bb
composetable: Fix a memory leak
...
Pointed out by clang.
2022-11-18 00:04:23 -05:00
Matthias Clasen
60aaf38f39
gdk: Clean up gdkprivate.h
...
Move apis to more specific headers.
2022-11-17 22:49:56 -05:00
Matthias Clasen
b12d31d189
Fix spelling errors
...
These were pointed out by codespell.
2022-11-17 22:49:45 -05:00
Matthias Clasen
0d2161ee40
Merge branch 'file-dialog-portals' into 'main'
...
file dialog: Use portals
See merge request GNOME/gtk!5221
2022-11-18 03:49:30 +00:00
Matthias Clasen
b0148972fd
filedialog: Use portals
...
We want this new API to be portal-first.
Make it so.
2022-11-17 15:52:53 -05:00
Cam Cook
2a14753739
Merge branch 'main' into ccook/doc-spelling-fixes
2022-11-16 23:23:42 -05:00
Cam Cook
4ccc3b53eb
doc/spelling changes: gtkselectionmodel.c, 'call this when the* selection changes'
2022-11-16 23:20:50 -05:00
Matthias Clasen
793954055e
Merge branch 'radioactiveman-main-patch-52462' into 'main'
...
label: Fix markup doc example
See merge request GNOME/gtk!5201
2022-11-17 03:46:43 +00:00
Thomas Lange
7adf720f08
label: Fix markup doc example
2022-11-17 03:46:01 +00:00
Matthias Clasen
501577196a
Merge branch 'matthiasc/for-main' into 'main'
...
Inspector: Add a missing event type
See merge request GNOME/gtk!5218
2022-11-16 19:24:54 +00:00
robxnano
adc0264dac
filechooser: Fix gtk_file_chooser_set_choice again
...
If the choice was in the form of a GtkDropDown, the code failed to
find the widget and so the choice never got set. Fixes #5346 .
2022-11-16 18:07:20 +00:00
Matthias Clasen
4eb017904b
Alertdialog: Cosmetics
2022-11-15 10:36:32 +00:00
Matthias Clasen
c9df9978d2
Inspector: Add a missing event type
...
We did not have a name for the new touchpad hold
events.
To prevent this from happening again in the future,
add a static assertion.
2022-11-15 07:18:41 +01:00
Cam Cook
d1bb927286
Documentation fix: Various spelling mistakes (and one use of the wrong verb) across a few domains that show up in documentation.
...
| domain | current | suggestion |
|--------|---------|------------|
| [GtkButton](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkbutton.c#L691 ) | "Buttons can has a flat appearance" | "Buttons can have a flat appearance" |
| [GtkCenterBox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkcenterbox.c#L275 ) | "pas %NULL" | "pass %NULL" |
| [GtkEditable](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkeditable.c#L466 ) | "the text to append" | "the text to insert" |
| [GtkFlowbox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkflowbox.c#L4921 ) | "the are equal" | "they are equal" |
| [GtkSelectionModel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkselectionmodel.c#L550 ) | "Call this when a the selection changes" | "Call this when a selection changes" |
| [GtkWIndow](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkwindow.c#L5321 ) | "(e.g. the user or the window manager" | "(e.g. the user or the window manager)" |
2022-11-13 11:55:05 -05:00
Matthias Clasen
2daea9e459
Merge branch 'focus-no-parent' into 'main'
...
focus: fall back to old behaviour if we didn't focus anything
See merge request GNOME/gtk!5189
2022-11-11 10:29:00 +00:00
Matthias Clasen
d1bdc36331
window: fixups
2022-11-09 16:28:30 +01:00
Matthias Clasen
f9982a61e6
window: Use gdk_toplevel_export_handle
2022-11-09 16:28:29 +01:00
Matthias Clasen
9e28a407df
Merge branch 'ebassi/since-for-main' into 'main'
...
docs: Add deprecation notices for properties
See merge request GNOME/gtk!5204
2022-11-08 16:01:11 +00:00
Matthias Clasen
a5780beba7
Merge branch 'ccook/gtk_aspect_frame_doc_fix' into 'main'
...
doc/comment fix: @self misspelled as self@
See merge request GNOME/gtk!5200
2022-11-08 15:28:08 +00:00
Emmanuele Bassi
5a51cbe673
docs: Add deprecation notices for properties
2022-11-08 10:45:09 +00:00
Matthias Clasen
e00b96053b
colordialogbutton: Actually accept NULL
...
As pointed out in #5321 , my previous fix was not
good enough.
Fixes : #5321
2022-11-07 15:24:13 +01:00
Cam Cook
ed16946685
doc/comment fix: the ref to @self was misspelled as self@ for gtkaspectframe.h/gtk_aspect_frame_get_child
...
Noticed this while reviewing the gi-docgen docs for GtkAspectFrame while developing some java bindings.
It's my understanding that @self was intended; as it would cause gi-docgen to interpret it as a reference to
the the GtkAspectFrame pointer named 'self'.
2022-11-06 17:59:23 -05:00
Matthias Clasen
466db31aac
color/fontdialogbutton: Fix constructors
...
The arguments were meant to be nullable.
Make it so!
Fixes : #5321
2022-11-06 14:12:02 +01:00
Adam Williamson
e07f8ef506
focus: fall back to old behaviour if we didn't focus anything
...
8455b9ac74
seems to have introduced a problem where we can wind
up focusing no widget at all if the `while (parent)` loop doesn't
find a widget it can successfully move the focus to. This 'fixes'
that by falling back to doing the previous thing if we make it
all the way through that loop without moving the focus. Thanks to
@coreyberla for a hint to improve the implementation.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-11-02 09:32:32 -07:00
Matthias Clasen
030e8c0bf9
Be consistent in preconditions for async API
...
Do the same checks in all our finish functions.
2022-10-31 16:40:54 -04:00
Emmanuele Bassi
d665b0e042
docs: Add missing Deprecated annotations
2022-10-30 20:08:39 +00:00
Emmanuele Bassi
37fadb20a9
docs: Add missing Since annotations
2022-10-30 20:08:21 +00:00
Matthias Clasen
a36bf22134
alertdialog: Small refactoring
...
Move the deprecated code out into its own function.
2022-10-30 08:52:02 -04:00
Matthias Clasen
9948053cd7
Deprecate GtkDialog
...
GtkDialog is too flexible in terms of UI (headerbars vs action bar,
etc), and has archaic APIs. It is time to retire it.
2022-10-29 15:27:53 -04:00
Matthias Clasen
f54ab91ff3
Deprecate GtkFileChooser and implementations
...
These are being replaced by GtkFileDialog.
This commit only moves the headers for GtkFileChooserWidget and
GtkFileChooserDialog to deprecated/, and keeps the implementations
in gtk/, since they will eventually be salvaged into a private
GtkFileChooserWindow.
2022-10-29 13:31:41 -04:00
Matthias Clasen
66b062a976
Deprecate GtkMessageDialog
...
It is getting replaced by GtkAlertDialog
This commit only moves the header to deprecated/,
and keeps the implementation in gtk/, since it will
eventually be salvaged into a private, dialog-free
widget.
2022-10-29 13:31:41 -04:00
Matthias Clasen
15572b0183
Deprecate GtkFontChooser and implementations
...
These are being replaced by GtkFontDialog
and GtkFontDialogButton
This commit only moves the headers for GtkFontChooserWidget and
GtkFontChooserDialog to deprecated/, and keeps the implementations
in gtk/, since they will eventually be salvaged into a private
GtkFontChooserWindow.
2022-10-29 13:31:41 -04:00
Matthias Clasen
a51a6a3ee2
Deprecate GtkColorChooser and implementations
...
These are being replaced by GtkColorDialog
and GtkColorDialogButton.
This commit only moves the headers for GtkColorChooserWidget
and GtkColorChooserDialog to deprecated/, and keeps the
implementations in gtk/, since they will eventually be
salvaged into a private GtkColorChooserWindow.
2022-10-29 13:31:41 -04:00
Matthias Clasen
9839aca0bd
inspector: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
9ab732ce2d
gtk: Port to async dialog API
2022-10-29 13:31:41 -04:00
Matthias Clasen
6ed2d2b232
Add GtkFileDialog
...
Add an async API for picking a file, together with
a builder object for it. This is meant to replace direct
use of GtkFileChooserDialog.
2022-10-29 13:31:41 -04:00
Matthias Clasen
cccc74786f
Add GtkAlertDialog
...
This is replacing GtkMessageDialog with an
async API for showing informational messages.
2022-10-29 13:31:41 -04:00
Matthias Clasen
aeacc8f3c5
Add GtkFontDialogButton
...
This is like GtkColorDialogButton, but for fonts.
2022-10-29 13:31:41 -04:00
Matthias Clasen
7d0ebe02db
Add GtkFontDialog
...
This is similar to GtkColorDialog, but for fonts.
2022-10-29 13:31:41 -04:00
Matthias Clasen
655675e6a1
Add GtkColorDialogButton
...
This is a new color button implementation
built around GtkColorDialog.
2022-10-29 13:02:15 -04:00
Matthias Clasen
f877f33c19
Add GtkColorDialog
...
Add an async API for picking a color, together with
a builder object for it. This is meant to replace direct
use of GtkColorChooserDialog.
2022-10-29 10:18:37 -04:00
Matthias Clasen
2fce117d15
Add GtkDialogError
...
This error domain will be used by async apis
in future commits.
2022-10-29 10:18:37 -04:00
Matthias Clasen
bd5dedce12
fontchooser: Add a way to set a GtkFilter
...
We keep this private, since the chooser apis
are going away. This will be used in GtkFontDialog.
2022-10-29 10:18:37 -04:00
Matthias Clasen
bdc91c2339
messagedialog: Cosmetics
2022-10-28 22:23:04 -04:00
Matthias Clasen
5c9d68a550
printeroptionwidget: Drop unused include
2022-10-28 18:24:48 -04:00
Bilal Elmoussaoui
6ca33c639e
g-i: Add missing since annotation
2022-10-27 15:38:14 +00:00
Mat
f6eb84189f
Revert "treepopover: Do not propagate natural width of content"
...
This reverts commit 9c919ffa46
.
2022-10-26 13:58:10 +03:00
Hodong
30525835f3
Fix a typo
2022-10-25 19:40:30 +00:00
Emmanuele Bassi
21bc2c5078
docs: Remove mentions of Glade
...
Glade does not support GTK4, so we should not link to it when discussing
developing GTK4 applications.
2022-10-24 20:11:50 +01:00
Matthias Clasen
3723778f42
fontchooser: Stop using deprecated harfbuzz api
...
The replacement is very straightforward.
2022-10-21 21:54:38 -04:00
Matthias Clasen
2868f1b509
placesview: Drop deprecation guards
...
We got rid of all deprecated api here.
2022-10-21 21:48:39 -04:00
Matthias Clasen
f44570e71a
filechooserwidget: Drop deprecation guards
...
We got rid of all deprecated api here.
2022-10-21 21:48:39 -04:00
Matthias Clasen
15d39dddc5
filesystemmodel: Drop outdated comments
...
Drop a long comment describing an implementation
that no longer exists.
2022-10-21 21:48:39 -04:00
Matthias Clasen
1028449bcc
filesystemmodel: Drop unneded deprecation guards
...
Nothing deprecated is used here anymore.
2022-10-21 21:48:39 -04:00
Matthias Clasen
01cca279f9
searchenginemodel: Drop unneeded deprecation guards
...
Nothing deprecated is used here anymore.
2022-10-21 21:48:39 -04:00
Corey Berla
e5cea4e39d
filechooserwidget: Show popup when clicking on empty space
...
Add gesture to right click or long press in the empty space
in the FileChooserWidget. Only show the global settings when
clicking on the empty space.
2022-10-21 13:57:21 -07:00
Corey Berla
22aca8952f
filechoosercell: Select item when right click or long press
2022-10-21 13:57:15 -07:00
Corey Berla
c0e437d163
filechoosercell: Only use long press when in touch mode
2022-10-21 13:57:11 -07:00
Corey Berla
ffe97a453f
filechoosercell: Claim sequence on click
2022-10-21 13:57:06 -07:00
Matthias Clasen
c09ba28b06
Merge branch 'gbsneto/filechooser-column-view' into 'main'
...
Port filechooser to GtkColumnView
See merge request GNOME/gtk!5108
2022-10-21 19:42:24 +00:00
Matthias Clasen
788be8b945
filesystemmodel: Fix a compiler warning
2022-10-21 12:15:36 -04:00
Matthias Clasen
0370979225
theme: Fix up padding for the file chooser
...
We need the padding inside the filelistcell, so that
its event controllers cover the whole area.
Introduce a .complex style class for columnviews that
achieves that, and make the filechooser use it.
2022-10-21 08:28:58 -04:00
Matthias Clasen
c0e8523a01
filesystemmodel: Fix a compiler warning
2022-10-21 07:44:13 -04:00
Chun-wei Fan
611d14108d
gtkcomposetable.c: Fix build on non-X11
...
The build breaks with a C4013 warning/error on Visual Studio because we don't
have a prototype defined for _gtk_get_datadir(), so include gtkprivate.h.
The vs2017-x64 CI did not catch this error because it is building GLib as a
fallback subproject, causing the msvc_recommended_pragmas.h header not to be
found, which is used to detect problems like this.
2022-10-21 12:29:19 +08:00
Matthias Clasen
25cf702345
filechooser: Make search results show up
...
The tracker search engine implementation was not
setting all the custom attributes that we require
now.
The quartz search engine will need similar fixes.
2022-10-20 22:34:41 -04:00
Matthias Clasen
1d9c61cada
filechooserwidget: Remember sort columns and order
...
These settings existed before, we keep using them.
This loses some information about sorting by multiple
columns, but it is sufficient to get the same primary
sort column back.
2022-10-20 22:34:41 -04:00
Corey Berla
71adb26a0d
filechooserwidget: Fix time_sort_func
2022-10-20 22:34:41 -04:00
Corey Berla
e27fa33690
filechooser: Add show-time property
...
The "Show Time" setting does not take immediate effect (only after
changing folders) because it's set as a single call to
column_view_get_time_visible() on the FileChooserCell creation.
Instead create a bind a show-time property that gets updated
as the setting is changed.
2022-10-20 22:34:41 -04:00
Corey Berla
f7dfead861
filechoosercell: Add a GtkDragSource
...
Allow dragging one or more items. If the item dragged is not part of
the current selection, only drag that item.
2022-10-20 22:34:41 -04:00
Corey Berla
aac04a0995
filechoosercell: Bind "item" and "selected" to cell
2022-10-20 22:34:41 -04:00
Corey Berla
8af191e52d
filechooserwidget: Expose selection model
...
FileChooserCell may need to change the selection during a DND.
2022-10-20 22:34:41 -04:00
Corey Berla
06382ff836
filechooserwidget: Rename and expose get_selected_files()
...
GtkFileChooserCell will need this function
2022-10-20 22:34:41 -04:00
Matthias Clasen
cd469788c3
filechooserwidget: Make rename popover work
...
Make the rename popover operate on the file that
the context menu was opened for, and pop up at
the same position.
2022-10-20 22:34:40 -04:00
Matthias Clasen
44b5076cf2
filechooserwidget: Make context menus mostly work
...
Move the gestures to the individual cells, and
make them trigger the context menu via an action
that takes item position and coordinates.
The semantics are changed slightly: the menu actions
now operate on the clicked item, not on the selection.
Still to do: Fix up keyboard activation.
2022-10-20 22:34:40 -04:00
Matthias Clasen
e5be9e1035
filesystemmodel: Drop the model types
...
We are no longer storing extra values, so no need
to take their types in the api.
2022-10-20 22:34:40 -04:00
Matthias Clasen
b831d01f0d
filesystemmodel: Drop unused arguments
...
Drop the unused get_func arguments in constructors.
Update all callers.
2022-10-20 22:34:40 -04:00
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
Matthias Clasen
141aac1a60
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.
2022-10-11 13:42:00 -04:00
Lukáš Tyrychtr
8a1578ede8
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.
2022-10-11 13:34:53 +02:00
Matthias Clasen
7c8a098852
emojicompletion: Drop an unused include
2022-10-09 23:08:55 -04:00
Matthias Clasen
ecbdb3104a
emojichooser: Drop an unused include
2022-10-09 23:03:43 -04:00
Matthias Clasen
c8a332b3af
searchentry: Drop an unused include
2022-10-09 23:03:36 -04:00
Benjamin Otte
32ef462f1d
fontbutton: Use attributes for custom font
...
Don't try to use CSS.
2022-10-09 09:10:39 -04:00
Matthias Clasen
b895360f49
inspector: Fix some criticals
...
This is fallout from the recent porting to GtkColumnView.
2022-10-09 09:10:39 -04:00
Matthias Clasen
c2c094e8a1
Merge branch 'matthiasc/for-main' into 'main'
...
widget: Changing the scale does no longer require a redraw
See merge request GNOME/gtk!5103
2022-10-09 13:10:24 +00:00
Benjamin Otte
d4d0192405
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.
2022-10-09 08:50:32 -04:00
Matthias Clasen
15ea36e7fd
Merge branch 'matthiasc/for-main' into 'main'
...
glarea: Drop an unused include
See merge request GNOME/gtk!5102
2022-10-09 12:49:42 +00:00
Matthias Clasen
9eec475dcc
glarea: Drop an unused include
...
We are not using gtk_render apis here.
2022-10-09 08:10:12 -04:00
Tilo Villwock
661130d429
GtkPaned: Fix symbol names in code example
2022-10-08 13:49:10 +02:00
Matthias Clasen
08c0020ac3
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.
2022-10-07 22:22:36 -04:00
Matthias Clasen
ac87c72797
paperdialog: Drop an unused function
...
This gets rid of a GtkListStore use.
2022-10-07 22:03:15 -04:00
Matthias Clasen
5fa027ab8a
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.
2022-10-07 17:21:04 -04:00
Matthias Clasen
dbe04adb1a
inspector: Drop the css node tree model
...
This is not used anymore.
2022-10-07 17:17:41 -04:00
Matthias Clasen
6815f3af6d
inspector: Stop using GtkTreeView for css nodes
...
Replace the css node tree with a GtkColumnView, using
the new gtk_css_node_observe_children api.
2022-10-07 15:54:02 -04:00
Matthias Clasen
f8357512d0
Add gtk_css_node_observe_children
2022-10-07 15:54:01 -04:00
Luca Bacci
8bfc19e7f7
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
2022-10-07 19:06:09 +02:00
Matthias Clasen
61393fdcce
inspector: Stop using GtkTreeView for statistics
...
GtkTreeView is heading towards deprecation; use
a GtkColumnView instead.
2022-10-07 01:40:51 -04:00
Matthias Clasen
6ed6cebcf4
inspector: Fixup
...
We were overlooking a transfer full here.
2022-10-07 00:12:47 -04:00
Matthias Clasen
7c5e1c6195
gtk: Rename some private headers
...
Improve the consistency of our private header
naming, by add 'private' to a bunch of them.
2022-10-05 23:01:28 -04:00
Matthias Clasen
abac891bd2
Merge branch 'inspector-trees' into 'main'
...
inspector: Stop using a treeview for css properties
See merge request GNOME/gtk!5086
2022-10-06 02:52:12 +00:00
Matthias Clasen
7a2c4e8a38
inspector: Stop using a treeview for css properties
...
Treeviews are heading towards deprecation.
2022-10-05 22:12:57 -04:00
Matthias Clasen
90e0ace325
inspector: Cosmetics
2022-10-05 21:20:04 -04:00
Matthias Clasen
9a2a5d9c8b
mountoperation: Add a mnemonic to a button
...
This is a good practice, even if this is a rarely
used dialog.
2022-10-05 20:14:09 -04:00
Matthias Clasen
d4dd0dcd79
Merge branch 'accessible_range_interface' into 'main'
...
Introduce GtkAccessibleRange
See merge request GNOME/gtk!5066
2022-10-05 11:33:56 +00:00
Matthias Clasen
d454586927
Review fixes
2022-10-05 11:13:21 +00:00
Matthias Clasen
a924b820c2
inspector: Use more compact list styles
...
Use the same style classes throughout for
data lists that benefit from smaller fonts.
2022-10-04 23:25:12 -04:00
Matthias Clasen
ab7a04d89f
inspector: Stop using a treeview for menus
...
Replace this with a GtkColumnView.
2022-10-04 22:49:05 -04:00
Matthias Clasen
a377f95aac
Drop unused includes
...
This gets rid of treeview includes in a number of places.
2022-10-04 22:49:05 -04:00
Matthias Clasen
5d5de9f759
mountoperation: Don't use a treeview
...
Port the process list from GtkTreeView
to GtkListView, and fix a number of broken
things along the way.
2022-10-04 21:26:07 -04:00
Matthias Clasen
6a76fe41c6
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.
2022-10-04 21:26:07 -04:00
Matthias Clasen
ca576e877f
inspector: Don't use treeviews in the recorder
...
Replace the event and render node details views with
columnviews.
2022-10-04 16:26:28 -04:00
Matthias Clasen
e68b365fa1
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.
2022-10-04 07:10:35 -04:00
Matthias Clasen
7e9ca5b41d
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.
2022-10-03 23:23:56 -04:00
Matthias Clasen
a527a4d82e
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.
2022-10-03 23:02:09 -04:00
Matthias Clasen
adfc29968a
Revert "gtk: Use gnome.mkenums_simple"
...
This reverts commit 11829fe7d0
.
The mkenums_simple function can't properly handle headers
in subdirectories currently, so go back to the template
version.
2022-10-03 22:20:07 -04:00
Benjamin Otte
9af3bb8dc1
Remove outdated docs
...
There are a lot of automatic conversions in the blame log.
2022-10-03 21:12:42 +00:00
António Fernandes
9cb8d21cb5
columnview: Forward all focus to child
...
For the same reasoning as the preceding commit.
Also don't make GtkColumnView focusable. Its internal list view
is already focusable, which is enough to take care of the empty
view case.
2022-10-03 20:48:10 +01:00
António Fernandes
4fc4298920
listbase: Grab focus on items instead of container
...
The container view itself being focusable makes keyboard navigation
slower by adding a useless focus step.
It also means if an item gets removed, the focus jumps back to the view,
instead of jumping to the next item, as seen in nautilus bug report:
https://gitlab.gnome.org/GNOME/nautilus/-/issues/2489
Instead of making the GtkListBase container itself focusable, override
the .grab_focus() vfunc. This way, calling gtk_widget_grab_focus() on
the view container keeps working sucessfully, but focuses the focus
item directly instead.
This is particularly useful to have because applicaiton authors do
not have direct acess to this class's children, so they can't call
gtk_widget_grab_focus() on them directly.
2022-10-03 20:26:24 +01:00
Corey Berla
230188fb30
entrycompletion: Use GSignalGroup on the entry's buffer
...
We connect to the inserted-text signal for the entry's buffer.
During the lifetime of the entry, the buffer changes. This is
literally the example used for GSignalGroup in the docs.
2022-10-03 10:40:27 -07:00
Jakub Steiner
a96c75ff02
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
2022-10-03 15:43:07 +02:00
Carlos Garnacho
1b4ed00509
Merge branch 'evince_crash_popover_motion2' into 'main'
...
fix crash in gtk_synthesize_crossing_events()
Closes #5190
See merge request GNOME/gtk!5052
2022-10-03 12:19:35 +00:00
Emmanuele Bassi
31fea11255
a11y: Drop GtkAccessibleRange.get_minimum_increment()
...
MinimumIncrement is an AT-SPI-ism that has no counterpart in the ARIA
specification, so it should not live inside public API. Additionally,
it's not really a useful method because it collapses two values on the
adjustment API.
The only method in the GtkAccessibleRange interface should be the
set_current_value(), which allows ATs to control the current position in
a ranged widget.
The AT-SPI implementation can now use all the accessible properties,
including the VALUE_TEXT one, mapped to the Text property on the
AtSpi.Value interface.
2022-09-30 18:36:02 +01:00
Emmanuele Bassi
5dd7e24806
Clean up GtkAccessibleRange
...
Coding style and documentation fixes.
2022-09-30 16:58:00 +01:00
Lukáš Tyrychtr
7e683ed89b
Use proper version specifier
2022-09-29 09:55:10 +02:00
Lukáš Tyrychtr
7fb892460a
Document that this will be available only in GTK 4.10
2022-09-29 09:36:09 +02:00
Lukáš Tyrychtr
d517804acd
Actually use the AccessibleRange interface
2022-09-29 09:36:09 +02:00
Lukáš Tyrychtr
ce761122b2
Implement also for GtkPaned
2022-09-29 09:36:09 +02:00
Lukáš Tyrychtr
76a5354ad7
Implement GtkAccessibleRange for GtkScaleButton
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
006b473c0c
Improve documentation
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
5e1af6d7d5
Implement GtkAccessibleRange for GtkProgressBar
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
ec0cd4a994
Implement GtkAccessibleRange for GtkLevelBar
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
86864d7bc0
Account for GtkAccessibleRange implementations which do not have a
...
minimum step and it makes no sense for them to set the current value
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
485ffcde38
Implement GtkAccessibleRange for GtkSpinButton
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
0304eaec94
Implement GtkAccessibleRange for GtkRange
2022-09-29 09:36:08 +02:00
Lukáš Tyrychtr
a7814a0963
Introduce GtkAccessibleRange
...
This introduces GtkAccessibleRange, an interface which allows the accessibility backend to work with a control which can adjust a value.
2022-09-29 09:36:08 +02:00
Matthias Clasen
dd7cd6ffdd
Add more names to sources
...
This helps with identifying things in sysprof logs,
and while debugging.
2022-09-28 12:37:21 -04:00
Matthias Clasen
aa9a7a931d
Merge branch 'wip/carlosg/shuffle-reset-take2' into 'main'
...
gtkimcontextwayland: Shuffle full resets after IM changes
Closes #5200
See merge request GNOME/gtk!5050
2022-09-28 01:39:49 +00:00
Matthias Clasen
2ce2e90205
Merge branch 'fix-scale-crashes' into 'main'
...
scale: Fix a typo
See merge request GNOME/gtk!5061
2022-09-28 01:22:49 +00:00
Matthias Clasen
8b76cc841d
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
2022-09-27 21:03:56 -04:00
Benjamin Otte
c98cea3dbb
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
2022-09-27 03:50:29 +02:00
Emmanuele Bassi
0a67ac6d47
Merge branch 'left-right-typo' into 'main'
...
Fix GtkSettings docs typo
See merge request GNOME/gtk!5059
2022-09-26 22:23:29 +00:00
Mitchell Hentges
f8c0d86d6c
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".
2022-09-27 00:00:30 +02:00
Matthias Clasen
1318fdc52c
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
2022-09-26 14:41:29 +00:00
Nelson Benítez León
94a4c2cb40
fix crash in gtk_synthesize_crossing_events()
...
Update ancestor between GTK_CROSSING_OUT and
GTK_CROSSING_IN as it may have changed.
Fixes #5190
2022-09-24 21:25:05 -04:00
Matthias Clasen
11829fe7d0
gtk: Use gnome.mkenums_simple
...
This lets us avoid template files, and works just as well.
2022-09-24 21:23:00 -04:00
Matthias Clasen
e499a09759
Drop gtkintl.h
...
Include gtkprivate.h for I_() and glib-i18n.h for
gettext macros.
2022-09-24 10:03:37 -04:00
Carlos Garnacho
fb280e47d6
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)
2022-09-24 11:52:16 +02: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
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
1f166ae071
macos: Use the new debug macros
2022-09-23 18:11:48 -04: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
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