Matthias Clasen
bc11bc4f8d
Drop gtkmain.c from POTFILES
...
No longer any translations here.
2023-01-04 12:03:01 -05:00
Matthias Clasen
be24e4a1f7
Merge branch 'deprecate-toggled' into 'main'
...
Deprecate gtk_toggle_button_toggled
See merge request GNOME/gtk!5388
2023-01-04 12:57:32 +00:00
Matthias Clasen
918ff1d0f4
Deprecate gtk_toggle_button_toggled
...
The function is documented as useless.
2023-01-04 07:32:51 -05:00
Anders Jonsson
20723613bc
Update Swedish translation
2023-01-04 12:32:38 +00:00
Matthias Clasen
604aafe15d
Merge branch 'wip/carlosg/startup-vs-focus' into 'main'
...
Consider startup vs focus requests for the Wayland platform
See merge request GNOME/gtk!5386
2023-01-03 15:14:35 +00:00
Carlos Garnacho
4041ca0f69
gdkdisplay: Deprecate gdk_display_notify_startup_complete()
...
We have various layers where we store the startup ID for a request,
since this API does not have a GdkToplevel that we can refer about
for the Wayland platform, this is the most obvious candidate to
start untangling these various layers.
Deprecate this call, it is already unused in the gtk/ side.
2023-01-03 14:58:33 +01:00
Carlos Garnacho
3526d8b299
gtkapplication: Do not call gdk_display_notify_startup_complete()
...
This should do nothing worthwhile anymore, the X11/Wayland GtkApplication
implementations do already pass the startup ID from the platform_data
via windowing specific APIs, and the application handling the request
via show()/present() should trigger the activation request.
2023-01-03 14:58:33 +01:00
Carlos Garnacho
e8adfa2a88
gtkwindow: Shuffle gdk_toplevel_set_startup_id() calls
...
While this used to be tangential to windows showing or requesting
focus, the xdg-activation Wayland protocol does merge both concepts
together.
But also, for a correct interaction with the compositor, the
toolkit should ideally merge the activation request resulting from
both into the same one, so that the gdk_toplevel_focus() request
replies to the startup token that started the application and
correct focus-stealing prevention/etc happens, instead making up
one just in time for the focus request.
This kind of requires doing things in the right order, a show()
request on the GtkWindow should activate any pending activation
token on the toplevel, a present() request should additionally
create a new token if there was none pending. And
xdg_activation_v1_activate() should happen once on both.
Shuffle the gdk_toplevel_set_startup_id() calls so that this
happens in the right order for Wayland, while making X11 happy
too.
2023-01-03 14:58:33 +01:00
Carlos Garnacho
7fab1b85ad
gdk/x11: Emit "remove" s-n message from gdk_toplevel_set_startup_id
...
In the way towards deprecating gdk_display_notify_startup_complete(),
make gdk_toplevel_set_startup_id() on X11 perform this piece of messaging
itself. It should be harmless that the message is emitted twice, if
callers do still use that API.
2023-01-03 14:58:25 +01:00
Carlos Garnacho
5aeabdb3d4
gdk/wayland: Perform xdg_activation on gdk_toplevel_set_startup_id
...
This call has everything to perform activation as specified by the
xdg_activation protocol, notably a surface to activate as opposed to
gdk_display_notify_startup_complete().
Make activation happen here, so that the surface gets activated when
its gets a startup ID assigned.
2023-01-03 14:57:49 +01:00
Carlos Garnacho
6f01f846dc
gtkwindow: Minor refactor
...
Move the handling of the startup ID to a separate function, since
this will be called from several places.
2023-01-03 14:57:44 +01:00
Matthias Clasen
3c4f6144a0
Merge branch 'fix-introspection' into 'main'
...
meson.build: build introspection according to option only
See merge request GNOME/gtk!5382
2023-01-03 11:56:49 +00:00
Alexander Kanavin
ae71d338d7
meson.build: build introspection according to option only
...
The way the check is written, if the build is native, then the
introspection option has no effect.
Particularly yocto project does want to disable introspection in
native builds and enable it in cross builds (both via the option),
and without this patch the former is not possible.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
2023-01-03 08:26:07 +01:00
Matthias Clasen
8b469a2727
Merge branch 'nullable-gdk' into 'main'
...
gdk_display_open: Mark arg as nullable
See merge request GNOME/gtk!5380
2023-01-03 00:25:55 +00:00
Matthias Clasen
53813f24f0
Merge branch 'matthiasc/for-main' into 'main'
...
ci: Enable introspection for the docs build
See merge request GNOME/gtk!5383
2023-01-02 21:53:58 +00:00
Matthias Clasen
1fde83f12b
Merge branch 'direction-from-language' into 'main'
...
Determine direction from language
See merge request GNOME/gtk!5385
2023-01-02 21:50:54 +00:00
Matthias Clasen
1f7783224b
Determine direction from language
...
We can determine the direction to return here
without relying on translations, by using pango
and HarfBuzz apis to go
language -> script -> direction.
2023-01-02 16:30:27 -05:00
Matthias Clasen
0d04ceda76
Merge branch 'ccook/doc-changes-2' into 'main'
...
Various documentation suggests across a few domains.
See merge request GNOME/gtk!5384
2023-01-02 20:40:54 +00:00
Cam Cook
9396ccf9ff
Various documentation suggests across a few domains.
...
| domain | current | suggestion |
|--------|---------|------------|
| [GtkSeparator](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkseparator.c#L39 ) | "`![An example GtkSeparator](separators.png)`" | "`![An example GtkSeparator](separator.png)`" [1] |
| [GtkTextBuffer](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L4885 ) | "if there is an redoable action" | "if there is a redoable action" |
| [GtkTextBuffer/get_enable_undo](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L5005 ) | (Renders `No description available.`) | "Returns: %TRUE if undoing and redoing changes to the buffer is allowed." [3] |
| [GtkTextBuffer/get_max_undo_levels](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L5102 ) | (Renders `No description available.`)| "Returns: The max number of undo levels allowed (0 indicates unlimited)." |
| [GtkTextBuffer](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L3874 ) | "with gtk_text_buffer_add_selection_clipboard()." | "with [method@Gtk.TextBuffer.add_selection_clipboard]" |
| [GtkTextBuffer](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L3494 ) | "it will automatically toggled" | "it will automatically toggle" |
* [1] See : [separator.png](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/docs/reference/gtk/images/separator.png ), [gtk4.toml.in](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/docs/reference/gtk/gtk4.toml.in#L218 ), [visual_index.md](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/docs/reference/gtk/visual_index.md?plain=1#L16 )
* [2] Taken from `enable-undo` [property description](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbuffer.c#L516 )
* [GtkTextMark/gtk_text_mark_set_visible](https://docs.gtk.org/gtk4/method.TextMark.set_visible.html ) is defined in [GtkTextMark's header](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextmark.h#L93 ), but implemented in [GtkTextBTree](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtktextbtree.c#L3036 ).
* Other than being kind of confusing, this causes `gtk_text_mark_set_visible()`'s doc to not render where it expects it to.
2023-01-02 13:47:55 -05:00
Matthias Clasen
5a68639788
ci: Enable introspection for the docs build
...
It is required, so lets not rely on defaults.
2023-01-02 11:27:22 -05:00
Matthias Clasen
85df554ec1
Fix compiler warnings
2023-01-02 11:18:54 -05:00
Matthias Clasen
8776ebfe90
Merge branch 'dependency-review' into 'main'
...
Dependency review
See merge request GNOME/gtk!5381
2023-01-02 16:14:24 +00:00
Matthias Clasen
83eee03b0f
build: Use the current gdk-pixbuf as subproject
...
This commit has fixes for subproject use that we need,
and is not in a release yet.
2023-01-02 10:57:52 -05:00
Matthias Clasen
d7bba4ebac
build: Use libcloudproviders 0.3.1 as subproject
2023-01-02 10:57:52 -05:00
Matthias Clasen
40e2b5b153
build Use current libepoxy as subproject
...
We need recent fixes for graphene subproject use,
so use the current HEAD of master until there is
a release with these fixes.
2023-01-02 10:57:52 -05:00
Matthias Clasen
f7a7313758
build: Use the current graphene as subproject
...
We need recent fixes for graphene subproject use,
so use the current HEAD of master until there is
a release with these fixes.
2023-01-02 10:57:52 -05:00
Matthias Clasen
2d9ce0357f
build: Use wayland 1.21.0 as subproject
2023-01-02 10:57:52 -05:00
Matthias Clasen
0ea05896df
build: Use wayland-protocols 1.25 as subproject
2023-01-02 10:57:52 -05:00
Matthias Clasen
8c638df147
build: Use pango 1.50.12 as subproject
2023-01-02 10:57:52 -05:00
Matthias Clasen
6605ded4c9
build: Use fribidi 1.0.12 as subproject
2023-01-02 10:57:52 -05:00
Matthias Clasen
ba1a9530c8
build: Use cairo 1.17.6 as subproject
...
We don't want to use cairo 1.16, since it is
too old, so use 1.17.6 for now until there
is a stable 1.18 release.
2023-01-02 10:57:52 -05:00
Matthias Clasen
a9fcea369e
build: Use glib 2.74.4 as subproject
...
This is the latest stable release.
2023-01-02 10:57:44 -05:00
Matthias Clasen
ca2787fbba
build: Pass gobject_types=true to graphene
...
This is required for graphene-gobject to be built.
2023-01-02 09:15:59 -05:00
Matthias Clasen
6d2c897dfc
build: Bump introspection dep to 1.72
...
This should be kept in sync with glib.
2023-01-02 09:15:56 -05:00
Matthias Clasen
01f81b2d77
build: Bump graphene req to 1.10
...
So we don't require an unstable version.
2023-01-02 09:15:56 -05:00
Sabri Ünal
8a3c5c63e8
Update Turkish translation
2023-01-02 13:58:10 +00:00
Maximiliano Sandoval R
b688f47776
gdk_display_open: Mark arg as nullable
2023-01-02 11:49:06 +01:00
Matthias Clasen
e126110ae0
Merge branch 'wide-inspector' into 'main'
...
inspector: Avoid super-wide window
See merge request GNOME/gtk!5379
2022-12-31 20:07:45 +00:00
Matthias Clasen
f98406b080
Merge branch 'annotate-dialog-deprecation' into 'main'
...
docs: Annotate GtkDialog deprecation
See merge request GNOME/gtk!5376
2022-12-31 20:07:20 +00:00
Matthias Clasen
40a2910262
inspector: Avoid super-wide window
...
Ellipsize values that can get long, to avoid
forcing an excessively wide window.
2022-12-31 12:30:40 -05:00
Marco Melorio
ec84077486
docs: Annotate GtkDialog deprecations
2022-12-30 15:37:11 +01:00
Benjamin Otte
188f9269b7
Merge branch 'wip/corey/list-item-visible' into 'main'
...
listitemwidget: Setup factory only once the widget is visible
See merge request GNOME/gtk!5374
2022-12-29 22:21:43 +00:00
Corey Berla
7ad693f865
gtkcolumnviewcolumn: Only create cells when the column is visible
...
It's a big performance drag to create many cells (and their associated
widgets) for columns that may never be shown. Only create cells
is the column is visible, and subsequently create/remove cells
when in column_set_visible.
2022-12-29 11:11:40 -08:00
Yosef Or Boczko
913e3680f3
Update Hebrew translation
2022-12-27 21:46:52 +00:00
Matthias Clasen
f3ad6015c6
Merge branch 'wip/corey/notify-drop-value' into 'main'
...
gtkdroptarget: Notify value property on local drag
See merge request GNOME/gtk!5372
2022-12-27 16:45:16 +00:00
Corey Berla
4e694c1824
gtkdroptarget: Notify value property on local drag
...
The value property is only getting notified when it's unset
or when it's set from gdk_drop_real_value_async(). Make sure
to always notify :value when its changed
2022-12-27 08:11:53 -08:00
Matthias Clasen
0214cb5b1b
Post-release version bump
2022-12-26 07:22:39 -05:00
Matthias Clasen
12bd668f4d
4.9.2
2022-12-26 06:41:21 -05:00
Matthias Clasen
f7fb069e2f
Updates
2022-12-25 09:25:45 -05:00
Matthias Clasen
7213bf5b09
Merge branch 'wip/otte/for-main' into 'main'
...
GtkDialog: Various API changes
See merge request GNOME/gtk!5251
2022-12-24 15:14:17 +00:00