gtk4.git
2 years agoMerge branch 'werror-fixes' into 'main'
Matthias Clasen [Sat, 7 Jan 2023 13:22:20 +0000 (13:22 +0000)]
Merge branch 'werror-fixes' into 'main'

gtk-launch: Remove compile-time warning

See merge request GNOME/gtk!5400

2 years agoMerge branch 'wip/corey/calendar' into 'main'
Matthias Clasen [Sat, 7 Jan 2023 13:11:01 +0000 (13:11 +0000)]
Merge branch 'wip/corey/calendar' into 'main'

calendar: Fix marked days

See merge request GNOME/gtk!5399

2 years agocalendar: Set marked days immediately
Corey Berla [Sat, 7 Jan 2023 04:18:53 +0000 (20:18 -0800)]
calendar: Set marked days immediately

The marked days are set only as part of gtk_calendar_select_day().
This is insufficient, especially because the day-selected signal
is emitted after the marked days are set in gtk_calendar_select_day().

2 years agocalendar: Only apply the marked_day to the current month
Corey Berla [Sat, 7 Jan 2023 04:12:10 +0000 (20:12 -0800)]
calendar: Only apply the marked_day to the current month

The marked day gets applied to the current month, and either the previous
or subsequent month if they are visible within the current month.
This doesn't make any sense and likely was an accidental regression
in a6f9052cf1c1c7b4224834ed18a63e70477d8729.  Clarify the docs.

2 years agocalendar: Add css style for marked days
Corey Berla [Sat, 7 Jan 2023 04:14:15 +0000 (20:14 -0800)]
calendar: Add css style for marked days

As part of a6f9052cf1c1c7b4224834ed18a63e70477d8729, marked days lost
their style, essentially making that function worthless.  Previously,
they were simply bolded, but that doesn't give them proper justice.

2 years agoMerge branch 'wip/phako/fix-activate-action-annotation' into 'main'
Matthias Clasen [Sat, 7 Jan 2023 01:06:00 +0000 (01:06 +0000)]
Merge branch 'wip/phako/fix-activate-action-annotation' into 'main'

widget: Mark format as nullable in activate_action

See merge request GNOME/gtk!4653

2 years agoMerge branch 'main' into 'main'
Matthias Clasen [Sat, 7 Jan 2023 00:59:32 +0000 (00:59 +0000)]
Merge branch 'main' into 'main'

Fix a typo

See merge request GNOME/gtk!5170

2 years agobuild: Turn off tautological-constant-out-of-range-compare warning
Benjamin Otte [Wed, 3 Nov 2021 23:27:27 +0000 (00:27 +0100)]
build: Turn off tautological-constant-out-of-range-compare warning

This issues a warning when an enum value is compared to a value that is
out of range for the enum.

We do this a lot, either when using -1 for undefined values or when
comparing array sizes to enum values like so:

  enum {
    ONE,
    TWO,
    THREE
  } some_enum_value;
  const char *names= { "one", "two", "three" };

  g_assert (some_enum_value < G_N_ELEMENTS (names));

2 years agogtk-launch: Fix unused variable warning on macOS
Benjamin Otte [Wed, 3 Nov 2021 23:59:19 +0000 (00:59 +0100)]
gtk-launch: Fix unused variable warning on macOS

2 years agoci: Disable -Werror on all subprojects
Benjamin Otte [Thu, 4 Nov 2021 00:41:05 +0000 (01:41 +0100)]
ci: Disable -Werror on all subprojects

Would be nice if meson had a nicer way of doing this, but...

2 years agoglcontext: Avoid gcc warning on non-egl build
Benjamin Otte [Wed, 3 Nov 2021 22:40:33 +0000 (23:40 +0100)]
glcontext: Avoid gcc warning on non-egl build

2 years agogtk-launch: Remove compile-time warning
Benjamin Otte [Wed, 3 Nov 2021 22:39:38 +0000 (23:39 +0100)]
gtk-launch: Remove compile-time warning

This warning causes a -Werror build to fail.

2 years agoMerge branch 'wayland-surface-split3' into 'main'
Matthias Clasen [Fri, 6 Jan 2023 22:35:34 +0000 (22:35 +0000)]
Merge branch 'wayland-surface-split3' into 'main'

Split gdksurface-wayland.c

See merge request GNOME/gtk!5217

2 years agoDrop gdkpopup-wayland-private.h
Matthias Clasen [Fri, 6 Jan 2023 22:02:03 +0000 (17:02 -0500)]
Drop gdkpopup-wayland-private.h

It is empty now.

2 years agowaylandsurface: Introduce a few vfuncs
Matthias Clasen [Fri, 6 Jan 2023 21:35:16 +0000 (16:35 -0500)]
waylandsurface: Introduce a few vfuncs

2 years agowaylandpopup: Drop unused exports
Matthias Clasen [Fri, 6 Jan 2023 21:00:22 +0000 (16:00 -0500)]
waylandpopup: Drop unused exports

2 years agowaylandtoplevel: Drop unused exports
Matthias Clasen [Fri, 6 Jan 2023 19:58:18 +0000 (14:58 -0500)]
waylandtoplevel: Drop unused exports

2 years agoMore cleanups
Matthias Clasen [Fri, 6 Jan 2023 19:55:45 +0000 (14:55 -0500)]
More cleanups

2 years agoMisc cleanups
Matthias Clasen [Fri, 6 Jan 2023 19:46:47 +0000 (14:46 -0500)]
Misc cleanups

Detangle compute_size, among other things.

2 years agowip: Split off GdkWaylandPopup
Matthias Clasen [Thu, 17 Nov 2022 13:24:40 +0000 (08:24 -0500)]
wip: Split off GdkWaylandPopup

Like the GdkWaylandToplevel split-off, this needs some
more cleanup.

2 years agowip: Split off GdkWaylandToplevel
Matthias Clasen [Fri, 6 Jan 2023 18:53:27 +0000 (13:53 -0500)]
wip: Split off GdkWaylandToplevel

This still needs some more cleanup.

2 years agowayland: Rearrange the surface code
Matthias Clasen [Fri, 6 Jan 2023 18:44:18 +0000 (13:44 -0500)]
wayland: Rearrange the surface code

2 years agowayland: Split public headers
Matthias Clasen [Tue, 15 Nov 2022 19:52:49 +0000 (14:52 -0500)]
wayland: Split public headers

Split gdkwaylandsurface.h into itself,
gdkwaylandtoplevel.h and gdkwaylandpopup.h.
This is in preparation for splitting the
types for real.

2 years agowayland: Split display_server sub-structs
Matthias Clasen [Tue, 15 Nov 2022 15:17:55 +0000 (15:17 +0000)]
wayland: Split display_server sub-structs

Move these to GdkWaylandToplevel and GdkWaylandPopup
as appropriate.

2 years agowayland: Move next_layout into popup and toplevel
Matthias Clasen [Tue, 15 Nov 2022 14:47:23 +0000 (14:47 +0000)]
wayland: Move next_layout into popup and toplevel

This is where it belongs.

2 years agowayland: Move pending toplevel state to GdkWaylandToplevel
Matthias Clasen [Tue, 15 Nov 2022 14:40:32 +0000 (14:40 +0000)]
wayland: Move pending toplevel state to GdkWaylandToplevel

Another toplevel-only thing.

2 years agowayland: Move input_grab_seat to GdkWaylandPopup
Matthias Clasen [Tue, 15 Nov 2022 13:07:13 +0000 (13:07 +0000)]
wayland: Move input_grab_seat to GdkWaylandPopup

This is popup-only functionality.

2 years agowayland: Move reposition_token to GdkWaylandPopup
Matthias Clasen [Tue, 15 Nov 2022 12:37:18 +0000 (12:37 +0000)]
wayland: Move reposition_token to GdkWaylandPopup

This is only used for popups, so move it there.

2 years agowayland: Move shortcuts_inhibitors to GdkWaylandToplevel
Matthias Clasen [Tue, 15 Nov 2022 12:27:58 +0000 (12:27 +0000)]
wayland: Move shortcuts_inhibitors to GdkWaylandToplevel

Another toplevel-only feature.

2 years agowayland: Move imported_transient_for to GdkWaylandToplevel
Matthias Clasen [Tue, 15 Nov 2022 12:06:24 +0000 (12:06 +0000)]
wayland: Move imported_transient_for to GdkWaylandToplevel

Another toplevel-only thing.

2 years agowayland: Move geometry hints to GdkWaylandToplevel
Matthias Clasen [Tue, 15 Nov 2022 11:50:02 +0000 (11:50 +0000)]
wayland: Move geometry hints to GdkWaylandToplevel

Another toplevel-only thing.

2 years agowayland: Move title to GdkWaylandToplevel
Matthias Clasen [Tue, 15 Nov 2022 11:38:01 +0000 (11:38 +0000)]
wayland: Move title to GdkWaylandToplevel

This is a toplevel property.

2 years agowayland: Move drag surfaces to their own file
Matthias Clasen [Thu, 10 Nov 2022 14:27:04 +0000 (15:27 +0100)]
wayland: Move drag surfaces to their own file

2 years agowayland: Drop create_dnd_surface
Matthias Clasen [Thu, 10 Nov 2022 15:05:26 +0000 (16:05 +0100)]
wayland: Drop create_dnd_surface

It is only used in one place.

2 years agoMerge branch 'swap-3-4' into 'main'
Matthias Clasen [Fri, 6 Jan 2023 18:06:55 +0000 (18:06 +0000)]
Merge branch 'swap-3-4' into 'main'

docs: Place example-{3,4} in numerical order

See merge request GNOME/gtk!5319

2 years agoMerge branch 'gtk4-fix-xdg-activation-set-surface' into 'main'
Matthias Clasen [Fri, 6 Jan 2023 14:03:01 +0000 (14:03 +0000)]
Merge branch 'gtk4-fix-xdg-activation-set-surface' into 'main'

gdk/wayland: set requesting surface to xdg-activation

See merge request GNOME/gtk!5293

2 years agoMerge branch 'drop-file-dialog-shortcuts' into 'main'
Matthias Clasen [Fri, 6 Jan 2023 13:35:14 +0000 (13:35 +0000)]
Merge branch 'drop-file-dialog-shortcuts' into 'main'

filedialog: Drop shortcut folders

See merge request GNOME/gtk!5396

2 years agoMerge branch 'wip/otte/for-5496' into 'main'
Matthias Clasen [Fri, 6 Jan 2023 13:34:55 +0000 (13:34 +0000)]
Merge branch 'wip/otte/for-5496' into 'main'

filedialog: Never set the chooser's file

Closes #5496

See merge request GNOME/gtk!5393

2 years agoMerge branch 'macos-command-symbol' into 'main'
Matthias Clasen [Fri, 6 Jan 2023 13:17:36 +0000 (13:17 +0000)]
Merge branch 'macos-command-symbol' into 'main'

macos: Use Command key symbol in Keyboard shortcuts window

See merge request GNOME/gtk!5296

2 years agofiledialog: Drop shortcut folders
Matthias Clasen [Fri, 6 Jan 2023 12:40:57 +0000 (07:40 -0500)]
filedialog: Drop shortcut folders

The filechooser portal does not support this,
and we are defaulting to using the portal now.
Lets not offer a non-functional API.

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Fri, 6 Jan 2023 12:34:10 +0000 (12:34 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

testfiledialog: Be more lenient

See merge request GNOME/gtk!5395

2 years agotestfiledialog: Be more lenient
Matthias Clasen [Fri, 6 Jan 2023 11:34:58 +0000 (06:34 -0500)]
testfiledialog: Be more lenient

Accept both open_multiple and open-multiple.

2 years agomacos: Command should not come from gettext
Arjan Molenaar [Fri, 6 Jan 2023 11:08:55 +0000 (12:08 +0100)]
macos: Command should not come from gettext

Instead, just provide the right character.

See also
https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkaccelgroup.c#L916.

2 years agoMerge branch 'test-file-dialog' into 'main'
Matthias Clasen [Fri, 6 Jan 2023 04:28:28 +0000 (04:28 +0000)]
Merge branch 'test-file-dialog' into 'main'

Test file dialog

See merge request GNOME/gtk!5394

2 years agoAdd a test for GtkFileDialog
Matthias Clasen [Fri, 6 Jan 2023 04:03:27 +0000 (23:03 -0500)]
Add a test for GtkFileDialog

2 years agofiledialog: Cosmetics
Matthias Clasen [Fri, 6 Jan 2023 03:45:48 +0000 (22:45 -0500)]
filedialog: Cosmetics

2 years agoMerge branch 'wip/corey/dnd-use-cursor' into 'main'
Benjamin Otte [Thu, 5 Jan 2023 22:39:26 +0000 (22:39 +0000)]
Merge branch 'wip/corey/dnd-use-cursor' into 'main'

Fix accidental DnD

See merge request GNOME/gtk!5275

2 years agofiledialog: Never set the chooser's file
Benjamin Otte [Thu, 5 Jan 2023 20:05:24 +0000 (21:05 +0100)]
filedialog: Never set the chooser's file

Instead, get by with setting the name and hope the filechooser figures
things out by itself.

Fixes #5496

2 years agoMerge branch 'openuri-activation-token' into 'main'
Matthias Clasen [Thu, 5 Jan 2023 14:06:14 +0000 (14:06 +0000)]
Merge branch 'openuri-activation-token' into 'main'

Pass an activation token to OpenURI

See merge request GNOME/gtk!5389

2 years agoMerge branch 'filechooser-multi-folder' into 'main'
Matthias Clasen [Thu, 5 Jan 2023 14:01:35 +0000 (14:01 +0000)]
Merge branch 'filechooser-multi-folder' into 'main'

filechooser: Don't assert for possible cases

Closes #5494

See merge request GNOME/gtk!5392

2 years agofilechooser: Don't assert for possible cases
Matthias Clasen [Thu, 5 Jan 2023 13:37:29 +0000 (08:37 -0500)]
filechooser: Don't assert for possible cases

switch_to_selected_folder can be called when the
selection contains more than one item. Handle it
like it used to be handled: switch to the first
folder we find.

Fixes: #5494
2 years agoPass an activation token to OpenURI
Matthias Clasen [Wed, 4 Jan 2023 13:36:47 +0000 (08:36 -0500)]
Pass an activation token to OpenURI

The OpenURI portal can take an activation_token
nowadays. So it give one.

2 years agox11: Make a call NULL-safe
Matthias Clasen [Wed, 4 Jan 2023 21:35:56 +0000 (16:35 -0500)]
x11: Make a call NULL-safe

Make it safe to call gdk_x11_app_launch_context_get_startup_notify_id
with a NULL info.

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Wed, 4 Jan 2023 17:22:54 +0000 (17:22 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

Drop gtkmain.c from POTFILES

See merge request GNOME/gtk!5390

2 years agoDrop gtkmain.c from POTFILES
Matthias Clasen [Wed, 4 Jan 2023 17:01:33 +0000 (12:01 -0500)]
Drop gtkmain.c from POTFILES

No longer any translations here.

2 years agoMerge branch 'deprecate-toggled' into 'main'
Matthias Clasen [Wed, 4 Jan 2023 12:57:32 +0000 (12:57 +0000)]
Merge branch 'deprecate-toggled' into 'main'

Deprecate gtk_toggle_button_toggled

See merge request GNOME/gtk!5388

2 years agoDeprecate gtk_toggle_button_toggled
Matthias Clasen [Wed, 4 Jan 2023 12:31:49 +0000 (07:31 -0500)]
Deprecate gtk_toggle_button_toggled

The function is documented as useless.

2 years agoUpdate Swedish translation
Anders Jonsson [Wed, 4 Jan 2023 12:32:38 +0000 (12:32 +0000)]
Update Swedish translation

2 years agoMerge branch 'wip/carlosg/startup-vs-focus' into 'main'
Matthias Clasen [Tue, 3 Jan 2023 15:14:35 +0000 (15:14 +0000)]
Merge branch 'wip/carlosg/startup-vs-focus' into 'main'

Consider startup vs focus requests for the Wayland platform

See merge request GNOME/gtk!5386

2 years agogdkdisplay: Deprecate gdk_display_notify_startup_complete()
Carlos Garnacho [Tue, 3 Jan 2023 13:02:53 +0000 (14:02 +0100)]
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.

2 years agogtkapplication: Do not call gdk_display_notify_startup_complete()
Carlos Garnacho [Tue, 3 Jan 2023 13:00:57 +0000 (14:00 +0100)]
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.

2 years agogtkwindow: Shuffle gdk_toplevel_set_startup_id() calls
Carlos Garnacho [Tue, 3 Jan 2023 12:51:26 +0000 (13:51 +0100)]
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.

2 years agogdk/x11: Emit "remove" s-n message from gdk_toplevel_set_startup_id
Carlos Garnacho [Tue, 3 Jan 2023 12:47:54 +0000 (13:47 +0100)]
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.

2 years agogdk/wayland: Perform xdg_activation on gdk_toplevel_set_startup_id
Carlos Garnacho [Tue, 3 Jan 2023 12:44:44 +0000 (13:44 +0100)]
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.

2 years agogtkwindow: Minor refactor
Carlos Garnacho [Tue, 3 Jan 2023 12:42:41 +0000 (13:42 +0100)]
gtkwindow: Minor refactor

Move the handling of the startup ID to a separate function, since
this will be called from several places.

2 years agoMerge branch 'fix-introspection' into 'main'
Matthias Clasen [Tue, 3 Jan 2023 11:56:49 +0000 (11:56 +0000)]
Merge branch 'fix-introspection' into 'main'

meson.build: build introspection according to option only

See merge request GNOME/gtk!5382

2 years agomeson.build: build introspection according to option only
Alexander Kanavin [Mon, 2 Jan 2023 14:00:02 +0000 (15:00 +0100)]
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>
2 years agoMerge branch 'nullable-gdk' into 'main'
Matthias Clasen [Tue, 3 Jan 2023 00:25:55 +0000 (00:25 +0000)]
Merge branch 'nullable-gdk' into 'main'

gdk_display_open: Mark arg as nullable

See merge request GNOME/gtk!5380

2 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Mon, 2 Jan 2023 21:53:58 +0000 (21:53 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

ci: Enable introspection for the docs build

See merge request GNOME/gtk!5383

2 years agoMerge branch 'direction-from-language' into 'main'
Matthias Clasen [Mon, 2 Jan 2023 21:50:54 +0000 (21:50 +0000)]
Merge branch 'direction-from-language' into 'main'

Determine direction from language

See merge request GNOME/gtk!5385

2 years agoDetermine direction from language
Matthias Clasen [Mon, 2 Jan 2023 20:19:42 +0000 (15:19 -0500)]
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.

2 years agoMerge branch 'ccook/doc-changes-2' into 'main'
Matthias Clasen [Mon, 2 Jan 2023 20:40:54 +0000 (20:40 +0000)]
Merge branch 'ccook/doc-changes-2' into 'main'

Various documentation suggests across a few domains.

See merge request GNOME/gtk!5384

2 years agoVarious documentation suggests across a few domains.
Cam Cook [Mon, 2 Jan 2023 18:47:55 +0000 (13:47 -0500)]
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.

2 years agoci: Enable introspection for the docs build
Matthias Clasen [Mon, 2 Jan 2023 16:24:05 +0000 (11:24 -0500)]
ci: Enable introspection for the docs build

It is required, so lets not rely on defaults.

2 years agoFix compiler warnings
Matthias Clasen [Mon, 2 Jan 2023 16:14:00 +0000 (11:14 -0500)]
Fix compiler warnings

2 years agoMerge branch 'dependency-review' into 'main'
Matthias Clasen [Mon, 2 Jan 2023 16:14:24 +0000 (16:14 +0000)]
Merge branch 'dependency-review' into 'main'

Dependency review

See merge request GNOME/gtk!5381

2 years agobuild: Use the current gdk-pixbuf as subproject
Matthias Clasen [Mon, 2 Jan 2023 13:43:45 +0000 (08:43 -0500)]
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.

2 years agobuild: Use libcloudproviders 0.3.1 as subproject
Matthias Clasen [Mon, 2 Jan 2023 12:44:04 +0000 (07:44 -0500)]
build: Use libcloudproviders 0.3.1 as subproject

2 years agobuild Use current libepoxy as subproject
Matthias Clasen [Mon, 2 Jan 2023 12:42:38 +0000 (07:42 -0500)]
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.

2 years agobuild: Use the current graphene as subproject
Matthias Clasen [Mon, 2 Jan 2023 12:41:33 +0000 (07:41 -0500)]
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.

2 years agobuild: Use wayland 1.21.0 as subproject
Matthias Clasen [Mon, 2 Jan 2023 12:39:50 +0000 (07:39 -0500)]
build: Use wayland 1.21.0 as subproject

2 years agobuild: Use wayland-protocols 1.25 as subproject
Matthias Clasen [Mon, 2 Jan 2023 12:38:54 +0000 (07:38 -0500)]
build: Use wayland-protocols 1.25 as subproject

2 years agobuild: Use pango 1.50.12 as subproject
Matthias Clasen [Mon, 2 Jan 2023 12:31:15 +0000 (07:31 -0500)]
build: Use pango 1.50.12 as subproject

2 years agobuild: Use fribidi 1.0.12 as subproject
Matthias Clasen [Thu, 22 Dec 2022 14:25:02 +0000 (09:25 -0500)]
build: Use fribidi 1.0.12 as subproject

2 years agobuild: Use cairo 1.17.6 as subproject
Matthias Clasen [Thu, 22 Dec 2022 14:19:53 +0000 (09:19 -0500)]
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.

2 years agobuild: Use glib 2.74.4 as subproject
Matthias Clasen [Thu, 22 Dec 2022 14:18:11 +0000 (09:18 -0500)]
build: Use glib 2.74.4 as subproject

This is the latest stable release.

2 years agobuild: Pass gobject_types=true to graphene
Matthias Clasen [Mon, 2 Jan 2023 13:55:51 +0000 (08:55 -0500)]
build: Pass gobject_types=true to graphene

This is required for graphene-gobject to be built.

2 years agobuild: Bump introspection dep to 1.72
Matthias Clasen [Thu, 22 Dec 2022 14:16:46 +0000 (09:16 -0500)]
build: Bump introspection dep to 1.72

This should be kept in sync with glib.

2 years agobuild: Bump graphene req to 1.10
Matthias Clasen [Thu, 22 Dec 2022 14:15:38 +0000 (09:15 -0500)]
build: Bump graphene req to 1.10

So we don't require an unstable version.

2 years agoUpdate Turkish translation
Sabri Ünal [Mon, 2 Jan 2023 13:58:10 +0000 (13:58 +0000)]
Update Turkish translation

2 years agogdk_display_open: Mark arg as nullable
Maximiliano Sandoval R [Mon, 2 Jan 2023 10:48:23 +0000 (11:48 +0100)]
gdk_display_open: Mark arg as nullable

2 years agoMerge branch 'wide-inspector' into 'main'
Matthias Clasen [Sat, 31 Dec 2022 20:07:45 +0000 (20:07 +0000)]
Merge branch 'wide-inspector' into 'main'

inspector: Avoid super-wide window

See merge request GNOME/gtk!5379

2 years agoMerge branch 'annotate-dialog-deprecation' into 'main'
Matthias Clasen [Sat, 31 Dec 2022 20:07:20 +0000 (20:07 +0000)]
Merge branch 'annotate-dialog-deprecation' into 'main'

docs: Annotate GtkDialog deprecation

See merge request GNOME/gtk!5376

2 years agoinspector: Avoid super-wide window
Matthias Clasen [Sat, 31 Dec 2022 17:30:40 +0000 (12:30 -0500)]
inspector: Avoid super-wide window

Ellipsize values that can get long, to avoid
forcing an excessively wide window.

2 years agodocs: Annotate GtkDialog deprecations
Marco Melorio [Fri, 30 Dec 2022 14:29:29 +0000 (15:29 +0100)]
docs: Annotate GtkDialog deprecations

2 years agoMerge branch 'wip/corey/list-item-visible' into 'main'
Benjamin Otte [Thu, 29 Dec 2022 22:21:43 +0000 (22:21 +0000)]
Merge branch 'wip/corey/list-item-visible' into 'main'

listitemwidget: Setup factory only once the widget is visible

See merge request GNOME/gtk!5374

2 years agogtkcolumnviewcolumn: Only create cells when the column is visible
Corey Berla [Thu, 29 Dec 2022 18:56:01 +0000 (10:56 -0800)]
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.

2 years agoUpdate Hebrew translation
Yosef Or Boczko [Tue, 27 Dec 2022 21:46:52 +0000 (21:46 +0000)]
Update Hebrew translation

2 years agoMerge branch 'wip/corey/notify-drop-value' into 'main'
Matthias Clasen [Tue, 27 Dec 2022 16:45:16 +0000 (16:45 +0000)]
Merge branch 'wip/corey/notify-drop-value' into 'main'

gtkdroptarget: Notify value property on local drag

See merge request GNOME/gtk!5372

2 years agogtkdroptarget: Notify value property on local drag
Corey Berla [Tue, 27 Dec 2022 16:11:53 +0000 (08:11 -0800)]
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