Emmanuele Bassi
1f4adb60bb
Merge branch 'fix-annotations' into 'main'
...
Fix a couple incorrect annotations for optional parameters
See merge request GNOME/gtk!5503
2023-02-15 16:27:11 +00:00
Matthias Clasen
9a539cec57
Merge branch 'mask-modes' into 'main'
...
Make mask nodes more versatile
See merge request GNOME/gtk!5521
2023-02-15 00:57:17 +00:00
Matthias Clasen
724cf6bd70
Merge branch 'wip/cdavis/menubutton-active' into 'main'
...
menubutton: Add `active` property and getter/setter
See merge request GNOME/gtk!5506
2023-02-15 00:44:17 +00:00
Matthias Clasen
0eb791eaaa
Make mask nodes more versatile
...
Add a GskMaskMode enumeration and implement it
in the GL and cairo renderers.
2023-02-14 19:07:01 -05:00
Matthias Clasen
0a0a03d913
Merge branch 'fix_4258' into 'main'
...
Don't tell the screen reader that a button is related to an image which has no useful label
Closes #4258
See merge request GNOME/gtk!4665
2023-02-14 23:50:18 +00:00
Lukáš Tyrychtr
d43724f5fc
Don't tell the screen reader that a button is related to an image which has no useful label
2023-02-14 23:50:18 +00:00
Matthias Clasen
730593fab5
Merge branch 'texttag_textview_documentation' into 'main'
...
Update TextTag and TextView indent Documentation
See merge request GNOME/gtk!5507
2023-02-14 00:08:39 +00:00
Akira TAGOH
4532c3020b
Fix an assertion in GtkFontChooserWidget when setting a filter.
2023-02-13 12:49:02 +09:00
Jacob Mealey
272a40a01a
Update TextTag and TextView indent Documentation
...
Change the documentation for both to be in line with Pango documentation
specifically regarding hanging indentation.
2023-02-12 23:12:51 +00:00
Matthias Clasen
f121f607ae
Merge branch 'search_entry_placeholder' into 'main'
...
gtksearchentry: Add getter/setter for placeholder text
See merge request GNOME/gtk!4312
2023-02-12 22:06:36 +00:00
Christopher Davis
ff45145eac
menubutton: Add active
property and getter/setter
...
GtkMenuButton currently does not provide a way to tell
if it's open programmatically. The existing methods,
`popup()` and `popdown()`, do not expose any state
to callers. If someone wanted to know whether or not
a menubutton was open, they needed the popover. Given
that GtkMenuButton can manage the popovers itself,
that's not always an option for app developers.
This commit adds the `active` property and associated
methods, where `gtk_menu_button_set_active ()` replaces
both `gtk_menu_popup ()` and `gtk_menu_popdown ()`.
This addition also mirrors changes in other places,
Such as `GtkWidget:visible` vs `show()`/`hide()`.
2023-02-12 16:47:59 -05:00
Matthias Clasen
83c5f5ff0f
Apply 4 suggestion(s) to 2 file(s)
2023-02-13 06:47:06 +09:00
Alexandros Theodotou
87d21dc5c9
gtksearchentry: Add getter/setter for placeholder text
2023-02-13 06:46:31 +09:00
Matthias Clasen
cef7e6b741
Merge branch 'mark-deprecations' into 'main'
...
docs: Mark various deprecations
See merge request GNOME/gtk!5502
2023-02-12 21:44:00 +00:00
Matthias Clasen
679d510059
Merge branch 'template-child-dispose-order' into 'main'
...
gtk: Set widget template children to NULL before destroy unref
See merge request GNOME/gtk!4611
2023-02-12 16:36:52 +00:00
Matthias Clasen
0c2b437643
Merge branch 'main' into 'main'
...
Add note about widgets implementing the interface adding the `horizontal`/`vertical` CSS classes
See merge request GNOME/gtk!5391
2023-02-12 16:28:12 +00:00
madmurphy
0764cf0c9c
Add note about widgets implementing the interface adding the horizontal
/vertical
CSS classes
2023-02-12 16:28:12 +00:00
Marco Melorio
2504215459
docs: Mark everything in GtkVolumeButton as deprecated
2023-02-12 17:20:11 +01:00
Marco Melorio
d45db3a961
docs: Mark everything in GtkStatusBar as deprecated
2023-02-12 17:20:11 +01:00
Marco Melorio
b34c139028
docs: Mark everything in GtkLockButton as deprecated
2023-02-12 16:12:17 +01:00
Marco Melorio
6e6f2f652c
docs: Mark everything in GtkCellAreaContext as deprecated
2023-02-12 16:09:39 +01:00
Marco Melorio
3aac70f245
docs: Mark everything in GtkAssistant as deprecated
2023-02-12 16:09:25 +01:00
Matthias Clasen
157ef1d395
Deprecate GtkVolumeButton
...
Too specialized.
2023-02-12 09:48:49 -05:00
Matthias Clasen
83b48bb25f
Merge branch 'mask-nodes-rebased' into 'main'
...
gsk: Introduce mask nodes
See merge request GNOME/gtk!5497
2023-02-12 14:11:47 +00:00
Ignacio Casal Quinteiro
44c2d585b8
gtkscalebutton: add active property
2023-02-12 14:01:26 +00:00
Matthias Clasen
8f47e885f0
Add gtk_snapshot_push_mask
2023-02-12 08:35:25 -05:00
Matthias Clasen
0d58e5365d
gsk: Introduce mask nodes
...
Add GskMaskNode, and support it in the render node
parser, in the inspector and in GtkSnapshot.
The rendering is just fallback for now.
Based on old work by Timm Bäder.
2023-02-12 08:35:25 -05:00
Alexandros Theodotou
d918a77d34
Remove timeout when disposing GtkEditableLabel
...
Fixes : #5584
2023-02-12 09:45:07 +09:00
Matthias Clasen
67c53e46f9
Add gtk_snapshot_append_scaled_texture
...
This is the snapshot api corresponding to
gsk_texture_scale_node_new.
2023-02-11 15:09:38 -05:00
Matthias Clasen
b937c19dd4
gsk: Introduce GskTextureScaleNode
2023-02-11 15:09:38 -05:00
Cameron White
0cb3555a65
Fix a couple incorrect annotations for optional parameters
...
The 'optional' annotation should be used in these cases rather than 'nullable'.
NULL can provided to ignore these output parameters, but the function is
not setting the output parameter to NULL.
2023-02-09 22:46:43 -05:00
Gaël Bonithon
6215b38e64
searchengine: Emit a simple warning when tracker init failed
...
Failure is allowed by nature of GInitable, and this avoids unnecessary
crashing of programs running with G_DEBUG=fatal-criticals.
2023-02-09 19:46:30 +01:00
Gaël Bonithon
41490f9624
searchengine: Add missing sanity check
2023-02-09 19:25:04 +01:00
Matthias Clasen
f8321029fc
filedialog: Robustness fixes
...
This code was not working well.
2023-02-06 23:16:17 +01:00
Matthias Clasen
f83cab01ec
filechooserportal: Fix an oversight
2023-02-06 20:28:35 +01:00
Matthias Clasen
190d8ef8ff
Use a Gtk prefix for dbus-generated code
...
Copying this file from GIO without renaming it
was not the greatest idea in retrospect.
Fixes : #5572
2023-02-05 09:09:22 +01:00
Matthias Clasen
7e07d63a6c
Merge branch 'ebassi/stack-at-context' into 'main'
...
a11y: Clear the GtkATContext in a single step
See merge request GNOME/gtk!5477
2023-02-04 12:37:20 +00:00
Matthias Clasen
e94dae8536
Merge branch 'rgba-free-checked' into 'main'
...
gtktextview: Avoid calling gdk_rgba_free for NULL values
See merge request GNOME/gtk!5474
2023-02-04 07:48:24 +00:00
Emmanuele Bassi
341ecab41a
a11y: Clear the GtkATContext in a single step
...
There's no need to unrealize the GtkATContext inside dispose() and then
drop its reference inside finalize().
2023-02-03 17:11:22 +01:00
Marco Trevisan (Treviño)
9eac7ed8b9
gtktextview: Avoid calling gdk_rgba_free for NULL values
...
Related to glib#2908
2023-02-03 16:41:56 +01:00
Lukáš Tyrychtr
11d235d165
a11y: Simplify GtkAccessible implementation for editables
...
This commit implements the idea brought up in #5032 , and provides a
simple function for GtkEditable implementations using a delegate object.
The accessible state is proxied from the outher GtkEditable to the
delegate.
2023-02-03 16:08:06 +01:00
Matthias Clasen
b710df6f45
Merge branch 'file-chooser-context-menu' into 'main'
...
filechooser: Fix context menus
Closes #5554
See merge request GNOME/gtk!5472
2023-02-03 13:39:21 +00:00
Matthias Clasen
50998b0ee9
Merge branch 'drag-icon-robustness' into 'main'
...
dragicon: Handle files without info
See merge request GNOME/gtk!5460
2023-02-03 13:19:26 +00:00
Matthias Clasen
92c2c68c7b
filechooser: Fix context menus
...
We only want to show the file list context menu
when we are over the file list.
Fixes : #5554
2023-02-03 14:17:34 +01:00
Matthias Clasen
460bf6d8b9
inspector: Show if accessibles aren't realized
...
This prevents confusion and makes it clear
what is going on.
2023-02-03 11:49:17 +01:00
Emmanuele Bassi
a0dff87c86
a11y: Documentation and code style fixes
2023-02-03 11:49:17 +01:00
Emmanuele Bassi
3015b9f120
a11y: Fix get_bounds() implementation
...
Don't allocate graphene_rect_t, and fix the size retrieval.
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
01549e3c91
Take the widget transform into account when computing the bounds for a11y
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
bc48bfc2b6
a11y: Use a DOM-like API for iterating accessible objects
...
The `get_child_at_index()` API model comes from AT-SPI, and it's not an
efficient design, especially when coupled with large widgets.
Replace `get_child_at_index()` with `get_first_accessible_child()` and
`get_next_accessible_sibling()`.
That allows efficiently retrieving all the children, simplifies the
implementation of GtkAccessible in GtkWidget and closely resembeles the
GtkWidget API.
Getting the last child and previous sibling for iterating backwards is
not a part of the interface at the moment, but they can be added at a
later date.
Note that this change required tracking the next stack page in
GtkStackPage.
2023-02-03 11:49:17 +01:00
Lukáš Tyrychtr
6100258ba2
a11y: Rename GtkAccessible.get_parent
...
Avoid a collision when the type implementing the GtkAccessible interface
already has a `get_parent()` method—like GtkWidget.
2023-02-03 11:49:17 +01:00