Benjamin Otte [Wed, 14 Dec 2022 01:26:49 +0000 (02:26 +0100)]
contentserializer: Serialize to file:// if possible
Try to get a native file:// URI instead of any other GVFS
scheme, for interoperability with apps only handling file:// URIs.
This is what GTK3 Nautilus and Thunar do, so apps should be tuned
for this behavior.
See also https://bugzilla.xfce.org/show_bug.cgi?id=13845
Fixes: #5422
Matthias Clasen [Tue, 22 Nov 2022 12:01:43 +0000 (12:01 +0000)]
Merge branch 'work/zzag/wl-output-cleanup' into 'main'
gdk/wayland: Destroy zxdg_output_v1 upon GdkWaylandMonitor destruction
See merge request GNOME/gtk!5242
Vlad Zahorodnii [Tue, 22 Nov 2022 09:23:08 +0000 (11:23 +0200)]
gdk/wayland: Clear GdkWaylandMonitor::output using g_clear_pointer()
Use g_clear_pointer() to make tear down code consistent.
Vlad Zahorodnii [Tue, 22 Nov 2022 09:03:05 +0000 (11:03 +0200)]
gdk/wayland: Destroy zxdg_output_v1 upon GdkWaylandMonitor destruction
It prevents potentially leaking memory.
Matthias Clasen [Tue, 22 Nov 2022 04:00:40 +0000 (04:00 +0000)]
Merge branch 'file-filter-properties' into 'main'
filefilter: Add properties for the criteria
See merge request GNOME/gtk!5241
Matthias Clasen [Tue, 22 Nov 2022 03:44:03 +0000 (22:44 -0500)]
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
Matthias Clasen [Mon, 21 Nov 2022 19:46:17 +0000 (19:46 +0000)]
Merge branch 'color-picker-portal' into 'main'
colorpicker: Always try the portal first
See merge request GNOME/gtk!5240
Matthias Clasen [Mon, 21 Nov 2022 19:26:29 +0000 (14:26 -0500)]
colorpicker: Always try the portal first
It does not hurt., and going forward, we want to
prefer portals.
Matthias Clasen [Mon, 21 Nov 2022 10:49:05 +0000 (10:49 +0000)]
Merge branch 'bilelmoussaoui/g-i' into 'main'
g-i: add missing array annotation to AlertDialog.set_buttons
See merge request GNOME/gtk!5234
Matthias Clasen [Mon, 21 Nov 2022 10:48:29 +0000 (10:48 +0000)]
Merge branch 'fix-upside-down-labels' into 'main'
gsk: Avoid a crash with negative scales
See merge request GNOME/gtk!5236
Matthias Clasen [Mon, 21 Nov 2022 10:35:16 +0000 (10:35 +0000)]
Merge branch 'drop-buildable-get-id' into 'main'
builder: Stop using GtkBuildable.get_id
See merge request GNOME/gtk!5239
Matthias Clasen [Mon, 21 Nov 2022 10:34:54 +0000 (10:34 +0000)]
Merge branch 'stringlist-prop' into 'main'
stringlist: Add a construct-only strings property
See merge request GNOME/gtk!5238
Matthias Clasen [Sun, 20 Nov 2022 19:36:35 +0000 (14:36 -0500)]
Drop gtk_widget_buildable_parser_finished
No need to have this no-op implementation.
This was the only implementation of this vfunc
in GTK.
Matthias Clasen [Sun, 20 Nov 2022 19:34:39 +0000 (14:34 -0500)]
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.
Matthias Clasen [Sun, 20 Nov 2022 19:06:55 +0000 (14:06 -0500)]
stringlist: Add a construct-only strings property
This enables creating string lists in ui files
without using custom markup.
Related: #5350
Matthias Clasen [Sun, 20 Nov 2022 18:25:12 +0000 (18:25 +0000)]
Merge branch 'center-box-props' into 'main'
centerbox: Add properties for child widgets
See merge request GNOME/gtk!5237
Matthias Clasen [Sun, 20 Nov 2022 17:31:02 +0000 (12:31 -0500)]
centerbox: Add properties for child widgets
This provides and alternative to add children
in ui files.
Related: #5350
Matthias Clasen [Sun, 20 Nov 2022 03:24:20 +0000 (22:24 -0500)]
gsk: Avoid a crash with negative scales
Don't crash when both scale_x and scale_y are -1.
A test is included.
Bilal Elmoussaoui [Sat, 19 Nov 2022 09:20:41 +0000 (09:20 +0000)]
g-i: add missing array annotation to AlertDialog.(s|g)et_buttons
Matthias Clasen [Sat, 19 Nov 2022 02:49:23 +0000 (02:49 +0000)]
Merge branch 'builder-parse-attributes' into 'main'
builder: Parse PangoAttrList values
See merge request GNOME/gtk!5228
Matthias Clasen [Fri, 18 Nov 2022 19:33:55 +0000 (19:33 +0000)]
Merge branch 'wip/carlosg/osk-activation' into 'main'
gtktext: Claim gesture more selectively
Closes #5351
See merge request GNOME/gtk!5230
Matthias Clasen [Fri, 18 Nov 2022 19:33:37 +0000 (19:33 +0000)]
Merge branch 'kjellahl/menubar' into 'main'
gtk_popover_menu_bar_set_menu_model(): Accept model == NULL
See merge request GNOME/gtk!5232
Matthias Clasen [Fri, 18 Nov 2022 19:33:17 +0000 (19:33 +0000)]
Merge branch 'shorter-im-context-ids' into 'main'
immmodule: Warn if GTK_IM_MODULE is bad
See merge request GNOME/gtk!5229
Matthias Clasen [Fri, 18 Nov 2022 18:00:42 +0000 (18:00 +0000)]
Merge branch 'wayland-foreign-v2' into 'main'
wayland: Also support the v2 of the importer
See merge request GNOME/gtk!5231
Matthias Clasen [Fri, 18 Nov 2022 17:09:27 +0000 (12:09 -0500)]
wayland: Also support the v2 of the importer
Commit
0ba8e16e1417fdb added support for the export
part of zxdg_foreign_v2, but neglected that the importer
has a v2 as well. Support it.
Kjell Ahlstedt [Fri, 18 Nov 2022 17:09:42 +0000 (18:09 +0100)]
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.
Carlos Garnacho [Fri, 18 Nov 2022 14:02:22 +0000 (15:02 +0100)]
gdksurface: Do not consider GDK_TOUCH_END/CANCEL as popup-dismiss worthy
GDK_TOUCH_END deserves the same treatment than GDK_BUTTON_RELEASE, since it's
subject to the same circumstances (popping up a menu on long press would be
immediately dismissed on release if we handled them there). Ideally, we would
want to match releases that we obtained a press for while grabbed, but as
the popup is also dismissed on GDK_BUTTON_PRESS/GDK_TOUCH_BEGIN, there's no
use for this tracking.
And GDK_TOUCH_CANCEL sounds weird as a reason to dismiss popups, just like
crossing events would.
Related: https://gitlab.gnome.org/GNOME/mutter/-/issues/2512
Carlos Garnacho [Fri, 18 Nov 2022 12:57:02 +0000 (13:57 +0100)]
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
Matthias Clasen [Fri, 18 Nov 2022 16:33:25 +0000 (16:33 +0000)]
Merge branch 'wip/fix-tiling-without-gtk-shell' into 'main'
wayland/surface: Set the tiling state from xdg-shell too
See merge request GNOME/gtk!5227
Matthias Clasen [Fri, 18 Nov 2022 16:17:20 +0000 (11:17 -0500)]
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'.
Matthias Clasen [Fri, 18 Nov 2022 16:09:14 +0000 (11:09 -0500)]
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.
Matthias Clasen [Fri, 18 Nov 2022 15:37:42 +0000 (10:37 -0500)]
builder: Parse PangoAttrList values
Allow specifying PangoAttrList properties in the
serialized format supported by pango_attr_list_to_string().
Test included.
Jonas Ådahl [Fri, 18 Nov 2022 12:11:25 +0000 (13:11 +0100)]
wayland/surface: Set the tiling state from xdg-shell too
We plumbed it from the gtk-shell configure event, but didn't for the
equivalent state passed via xdg_toplevel.configure.
Matthias Clasen [Fri, 18 Nov 2022 05:22:44 +0000 (05:22 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gsk: Add an assertion to help static analysis
See merge request GNOME/gtk!5224
Matthias Clasen [Fri, 18 Nov 2022 04:52:35 +0000 (23:52 -0500)]
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.
Matthias Clasen [Fri, 18 Nov 2022 04:51:28 +0000 (23:51 -0500)]
gdk: Fix possible memory errors
clang complained that we may end up jumping
to the cleanup code without initializing data
in the jpeg code. Always initialize data to
NULL to prevent that eventuality.
Matthias Clasen [Fri, 18 Nov 2022 04:21:19 +0000 (23:21 -0500)]
composetable: Fix a memory leak
Pointed out by clang.
Matthias Clasen [Fri, 18 Nov 2022 05:02:20 +0000 (00:02 -0500)]
gsk: Add an assertion to help static analysis
clang gets wild ideas about negative radii otherwise.
Matthias Clasen [Fri, 18 Nov 2022 04:56:57 +0000 (04:56 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Fix spelling errors
See merge request GNOME/gtk!5223
Matthias Clasen [Thu, 17 Nov 2022 19:16:37 +0000 (14:16 -0500)]
Drop redundant glib version checks
We require GLib 2.72 now.
Matthias Clasen [Thu, 17 Nov 2022 19:01:11 +0000 (14:01 -0500)]
gdk: Clean up gdkprivate.h
Move apis to more specific headers.
Matthias Clasen [Thu, 10 Nov 2022 14:36:00 +0000 (15:36 +0100)]
gdk: Rename GDK_SURFACE_TEMP
We use this value only for drag surfaces, so call it that.
Matthias Clasen [Fri, 18 Nov 2022 03:24:18 +0000 (22:24 -0500)]
Fix spelling errors
These were pointed out by codespell.
Matthias Clasen [Fri, 18 Nov 2022 03:49:30 +0000 (03:49 +0000)]
Merge branch 'file-dialog-portals' into 'main'
file dialog: Use portals
See merge request GNOME/gtk!5221
Matthias Clasen [Thu, 17 Nov 2022 20:53:51 +0000 (20:53 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
gtk-demo: Add some keywords
See merge request GNOME/gtk!5220
Matthias Clasen [Thu, 17 Nov 2022 20:51:11 +0000 (15:51 -0500)]
filedialog: Use portals
We want this new API to be portal-first.
Make it so.
Matthias Clasen [Thu, 17 Nov 2022 11:29:17 +0000 (06:29 -0500)]
gtk-demo: Add folders to the clipboard demo
This is handy for testing a case where folder
dnd does not work with the file transfer portal.
See #5348
Matthias Clasen [Thu, 17 Nov 2022 10:50:34 +0000 (05:50 -0500)]
gtk-demo: Add some keywords
Make sure that dnd and drag-and-drop yield the right
(and the same) set of demos.
Matthias Clasen [Thu, 17 Nov 2022 10:28:38 +0000 (10:28 +0000)]
Merge branch 'ccook/doc-spelling-fixes' into 'main'
doc fix: various spelling mistakes corrected
See merge request GNOME/gtk!5215
Luca Bacci [Thu, 17 Nov 2022 09:06:55 +0000 (09:06 +0000)]
Merge branch 'win32-hotspot' into 'main'
gdk/win32: fix cursor hotspot
See merge request GNOME/gtk!5216
Cam Cook [Thu, 17 Nov 2022 04:23:42 +0000 (23:23 -0500)]
Merge branch 'main' into ccook/doc-spelling-fixes
Cam Cook [Thu, 17 Nov 2022 04:20:50 +0000 (23:20 -0500)]
doc/spelling changes: gtkselectionmodel.c, 'call this when the* selection changes'
Matthias Clasen [Thu, 17 Nov 2022 03:46:43 +0000 (03:46 +0000)]
Merge branch 'radioactiveman-main-patch-52462' into 'main'
label: Fix markup doc example
See merge request GNOME/gtk!5201
Thomas Lange [Thu, 17 Nov 2022 03:46:01 +0000 (03:46 +0000)]
label: Fix markup doc example
Emmanuele Bassi [Wed, 16 Nov 2022 21:51:59 +0000 (21:51 +0000)]
Merge branch 'ebassi/list-doc-links' into 'main'
docs: Add links to the list widgets table
See merge request GNOME/gtk!5210
Matthias Clasen [Wed, 16 Nov 2022 19:24:54 +0000 (19:24 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Inspector: Add a missing event type
See merge request GNOME/gtk!5218
Matthias Clasen [Wed, 16 Nov 2022 19:23:05 +0000 (19:23 +0000)]
Merge branch 'filechooser-set-choice-fix' into 'main'
filechooser: Fix gtk_file_chooser_set_choice again
Closes #5346
See merge request GNOME/gtk!5219
robxnano [Wed, 16 Nov 2022 18:07:20 +0000 (18:07 +0000)]
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.
Marc-André Lureau [Wed, 16 Nov 2022 07:42:22 +0000 (11:42 +0400)]
gdk/win32: fix cursor hotspot
This seems to be a regression from commit
c06b1cc103b8 "Win32: Re-work cursor handling".
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Matthias Clasen [Tue, 15 Nov 2022 10:36:32 +0000 (10:36 +0000)]
Alertdialog: Cosmetics
Matthias Clasen [Tue, 15 Nov 2022 10:26:25 +0000 (10:26 +0000)]
events: Drop an unused variable
Matthias Clasen [Tue, 15 Nov 2022 06:18:41 +0000 (07:18 +0100)]
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.
Cam Cook [Sun, 13 Nov 2022 16:55:05 +0000 (11:55 -0500)]
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)" |
Emmanuele Bassi [Fri, 11 Nov 2022 11:29:08 +0000 (11:29 +0000)]
docs: Add more links to the list widgets description
Emmanuele Bassi [Fri, 11 Nov 2022 11:21:17 +0000 (11:21 +0000)]
docs: Add links to the list widgets table
Make it easier for readers to go to the appropriate replacement for the
old GtkTreeView-and-friends API.
Matthias Clasen [Fri, 11 Nov 2022 10:29:00 +0000 (10:29 +0000)]
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
Matthias Clasen [Fri, 11 Nov 2022 10:28:11 +0000 (10:28 +0000)]
Merge branch 'docs-update' into 'main'
docs: Update Common Questions section on list views
See merge request GNOME/gtk!5209
Arjan Molenaar [Thu, 10 Nov 2022 21:36:21 +0000 (22:36 +0100)]
Fix typo in 4 to 5 migration page
Arjan Molenaar [Thu, 10 Nov 2022 21:20:07 +0000 (22:20 +0100)]
Update Common Questions section on tree views
Point users to GtkListView instead of the
deprecated GtkTreeView.
Matthias Clasen [Thu, 10 Nov 2022 13:58:24 +0000 (13:58 +0000)]
Merge branch 'gdkwaylandtoplevel' into 'main'
gdk/wayland/surface: Move more members to `GdkWaylandPopup` and `GdkWaylandToplevel`
See merge request GNOME/gtk!4227
Luca Bacci [Thu, 10 Nov 2022 11:18:23 +0000 (11:18 +0000)]
Merge branch 'win32-inhibit' into 'main'
gdk-win32: implement basic inhibit-system-shortcuts
See merge request GNOME/gtk!5206
Matthias Clasen [Thu, 10 Nov 2022 08:00:07 +0000 (08:00 +0000)]
Merge branch 'export-handle-refactor' into 'main'
Refactor surface handle export
See merge request GNOME/gtk!5205
Marc-André Lureau [Wed, 9 Nov 2022 15:08:11 +0000 (19:08 +0400)]
gdk-win32: implement basic inhibit-system-shortcuts
This is largely adapted from commit
83027c68f112 ("11: Implement
inhibit_system_shortcuts API"), with similar rationale:
To implement the inhibit_system_shortcuts API on X11, we emulate the
same behavior using grabs on the keyboard.
To avoid keeping active grabs on the keyboard that would affect
other X11 applications even when the surface isn't focused, the X11
implementation takes care of releasing the grabs as soon as the
toplevel loses focus.
Note that Windows has low-level keyboard hooks that could help achieve
the expected behaviour. This is implemented by spice-gtk & gtk-vnc for
example, but correctness isn't obvious. I left a TODO comment.
This patch helps implementing remote desktop widgets with GTK4, since
currently on win32 backend Alt-Tab and such are always left to the
system unless there is keyboard grab (which can't be requested by the
client API anymore, afaict).
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Matthias Clasen [Wed, 9 Nov 2022 15:24:20 +0000 (16:24 +0100)]
wayland: Reimplement export_handle
Reimplement the backend API on top of the new async
calls.
Matthias Clasen [Wed, 9 Nov 2022 15:12:01 +0000 (16:12 +0100)]
window: fixups
Matthias Clasen [Wed, 9 Nov 2022 15:11:52 +0000 (16:11 +0100)]
wayland: fixups
Matthias Clasen [Wed, 9 Nov 2022 11:32:02 +0000 (12:32 +0100)]
wayland: Support the v2 protocol in both places
The old api should better support both versions of the
foreign protocol too.
Matthias Clasen [Wed, 9 Nov 2022 11:22:00 +0000 (12:22 +0100)]
wayland: Add zxdg_foreign_v2 protocol support
Matthias Clasen [Wed, 9 Nov 2022 07:41:55 +0000 (08:41 +0100)]
window: Use gdk_toplevel_export_handle
Matthias Clasen [Sun, 6 Nov 2022 16:17:02 +0000 (17:17 +0100)]
Add gdk_toplevel_export_handle
This code is backend-specific, and should not live
in gtkwindow.c.
Marc-André Lureau [Wed, 9 Nov 2022 15:18:52 +0000 (19:18 +0400)]
gdk-win32: fix unused variable warnings
../gdk/win32/gdksurface-win32.c: In function 'gdk_win32_get_window_size_and_position_from_client_rect':
../gdk/win32/gdksurface-win32.c:3753:20: warning: unused variable 'impl' [-Wunused-variable]
3753 | GdkWin32Surface *impl = GDK_WIN32_SURFACE (window);
| ^~~~
../gdk/win32/gdksurface-win32.c: In function 'gdk_win32_surface_get_queued_window_rect':
../gdk/win32/gdksurface-win32.c:5129:20: warning: unused variable 'impl' [-Wunused-variable]
5129 | GdkWin32Surface *impl = GDK_WIN32_SURFACE (surface);
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Matthias Clasen [Tue, 8 Nov 2022 16:29:15 +0000 (16:29 +0000)]
Merge branch 'wayland_display_geometry' into 'main'
wayland: calculate union of geometry of all monitors for toplevel bounds
See merge request GNOME/gtk!4790
Matthias Clasen [Tue, 8 Nov 2022 16:27:06 +0000 (16:27 +0000)]
Merge branch 'cursor-size' into 'main'
GtkSettings: Provide settings in logical pixels also on X11
Closes #5223 and #5230
See merge request GNOME/gtk!5172
Matthias Clasen [Tue, 8 Nov 2022 16:14:18 +0000 (16:14 +0000)]
Merge branch 'wip/carlosg/back-forward-mask' into 'main'
gdk/wayland: Fix button mask calculation on button events
Closes #5301
See merge request GNOME/gtk!5191
Matthias Clasen [Tue, 8 Nov 2022 16:05:59 +0000 (16:05 +0000)]
Merge branch 'add-link-to-docs' into 'main'
Link the file mentioned as a reference for key values
See merge request GNOME/gtk!5198
Matthias Clasen [Tue, 8 Nov 2022 16:01:11 +0000 (16:01 +0000)]
Merge branch 'ebassi/since-for-main' into 'main'
docs: Add deprecation notices for properties
See merge request GNOME/gtk!5204
Matthias Clasen [Tue, 8 Nov 2022 15:28:08 +0000 (15:28 +0000)]
Merge branch 'ccook/gtk_aspect_frame_doc_fix' into 'main'
doc/comment fix: @self misspelled as self@
See merge request GNOME/gtk!5200
Matthias Clasen [Tue, 8 Nov 2022 15:23:03 +0000 (15:23 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
Add new printf patterns to make-pot
See merge request GNOME/gtk!5188
Emmanuele Bassi [Tue, 8 Nov 2022 10:45:00 +0000 (10:45 +0000)]
docs: Add deprecation notices for properties
Matthias Clasen [Mon, 7 Nov 2022 14:51:34 +0000 (14:51 +0000)]
Merge branch 'fix-color-dialog-button-new' into 'main'
colordialogbutton: Actually accept NULL
Closes #5321
See merge request GNOME/gtk!5202
Matthias Clasen [Wed, 2 Nov 2022 11:04:59 +0000 (07:04 -0400)]
gtk-demo: Improve language handlng
In the font features demo, don't add a
item for the default language to the dropdown,
that does not make sense.
Matthias Clasen [Tue, 1 Nov 2022 23:04:07 +0000 (19:04 -0400)]
gtk-demo: Add a few mssing language names
Matthias Clasen [Sun, 6 Nov 2022 14:34:24 +0000 (15:34 +0100)]
gtk4-demo: Tweak the pickers demo
Redo the file picker a bit.
Matthias Clasen [Tue, 1 Nov 2022 11:14:45 +0000 (07:14 -0400)]
po: Match make-pot
We are not normally using the gtk40-pot target to
generate the gtk40.pot file. On the off chance that
somebody does, lets make sure we pass the same
arguments to xgettext here as in the make-pot script
that is used on damn lies.
Matthias Clasen [Mon, 7 Nov 2022 14:32:51 +0000 (15:32 +0100)]
Add a test for picker button constructors
This turns out to be hard enough that a test
is useful.
Matthias Clasen [Mon, 7 Nov 2022 14:24:13 +0000 (15:24 +0100)]
colordialogbutton: Actually accept NULL
As pointed out in #5321, my previous fix was not
good enough.
Fixes: #5321
Colin Kinloch [Mon, 7 Nov 2022 11:08:18 +0000 (11:08 +0000)]
wayland: calculate union of geometry of all monitors for toplevel bounds
Signed-off-by: Colin Kinloch <colin.kinloch@collabora.com>
Cam Cook [Sun, 6 Nov 2022 22:59:23 +0000 (17:59 -0500)]
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'.
Matthias Clasen [Sun, 6 Nov 2022 13:36:49 +0000 (13:36 +0000)]
Merge branch 'fix-color-button-new' into 'main'
color/fontdialogbutton: Fix constructors
Closes #5321
See merge request GNOME/gtk!5199
Matthias Clasen [Sun, 6 Nov 2022 13:12:02 +0000 (14:12 +0100)]
color/fontdialogbutton: Fix constructors
The arguments were meant to be nullable.
Make it so!
Fixes: #5321