Emmanuele Bassi
bd66198b88
docs: Add more links to the list widgets description
2022-11-11 11:30:41 +00:00
Emmanuele Bassi
5193846787
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.
2022-11-11 11:21:17 +00: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
2d48793641
Merge branch 'docs-update' into 'main'
...
docs: Update Common Questions section on list views
See merge request GNOME/gtk!5209
2022-11-11 10:28:11 +00:00
Arjan Molenaar
920f49e993
Fix typo in 4 to 5 migration page
2022-11-10 22:41:26 +01:00
Arjan Molenaar
29d7f93e38
Update Common Questions section on tree views
...
Point users to GtkListView instead of the
deprecated GtkTreeView.
2022-11-10 22:41:26 +01:00
Matthias Clasen
df5a13806d
Merge branch 'gdkwaylandtoplevel' into 'main'
...
gdk/wayland/surface: Move more members to `GdkWaylandPopup` and `GdkWaylandToplevel`
See merge request GNOME/gtk!4227
2022-11-10 13:58:24 +00:00
Luca Bacci
aebbf7cc61
Merge branch 'win32-inhibit' into 'main'
...
gdk-win32: implement basic inhibit-system-shortcuts
See merge request GNOME/gtk!5206
2022-11-10 11:18:23 +00:00
Matthias Clasen
fc8ef02bb5
Merge branch 'export-handle-refactor' into 'main'
...
Refactor surface handle export
See merge request GNOME/gtk!5205
2022-11-10 08:00:07 +00:00
Marc-André Lureau
cf04a3c99d
gdk-win32: implement basic inhibit-system-shortcuts
...
This is largely adapted from commit 83027c68f1
("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>
2022-11-09 19:29:03 +04:00
Matthias Clasen
43d6682e45
wayland: Reimplement export_handle
...
Reimplement the backend API on top of the new async
calls.
2022-11-09 16:28:30 +01:00
Matthias Clasen
d1bdc36331
window: fixups
2022-11-09 16:28:30 +01:00
Matthias Clasen
dcc3b638aa
wayland: fixups
2022-11-09 16:28:30 +01:00
Matthias Clasen
4b40aeb0c6
wayland: Support the v2 protocol in both places
...
The old api should better support both versions of the
foreign protocol too.
2022-11-09 16:28:29 +01:00
Matthias Clasen
0ba8e16e14
wayland: Add zxdg_foreign_v2 protocol support
2022-11-09 16:28:29 +01:00
Matthias Clasen
f9982a61e6
window: Use gdk_toplevel_export_handle
2022-11-09 16:28:29 +01:00
Matthias Clasen
1c99ed542a
Add gdk_toplevel_export_handle
...
This code is backend-specific, and should not live
in gtkwindow.c.
2022-11-09 16:28:29 +01:00
Marc-André Lureau
a92aea4c0e
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>
2022-11-09 19:19:44 +04:00
Matthias Clasen
956100017c
Merge branch 'wayland_display_geometry' into 'main'
...
wayland: calculate union of geometry of all monitors for toplevel bounds
See merge request GNOME/gtk!4790
2022-11-08 16:29:15 +00:00
Matthias Clasen
514ec8942d
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
2022-11-08 16:27:06 +00:00
Matthias Clasen
7caa211d6a
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
2022-11-08 16:14:18 +00:00
Matthias Clasen
cb7b57635b
Merge branch 'add-link-to-docs' into 'main'
...
Link the file mentioned as a reference for key values
See merge request GNOME/gtk!5198
2022-11-08 16:05:59 +00: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
Matthias Clasen
304f1e43af
Merge branch 'matthiasc/for-main' into 'main'
...
Add new printf patterns to make-pot
See merge request GNOME/gtk!5188
2022-11-08 15:23:03 +00:00
Emmanuele Bassi
5a51cbe673
docs: Add deprecation notices for properties
2022-11-08 10:45:09 +00:00
Matthias Clasen
901c968b97
Merge branch 'fix-color-dialog-button-new' into 'main'
...
colordialogbutton: Actually accept NULL
Closes #5321
See merge request GNOME/gtk!5202
2022-11-07 14:51:34 +00:00
Matthias Clasen
2c6ac137a3
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.
2022-11-07 15:42:38 +01:00
Matthias Clasen
5bd264d532
gtk-demo: Add a few mssing language names
2022-11-07 15:42:38 +01:00
Matthias Clasen
e908a117a9
gtk4-demo: Tweak the pickers demo
...
Redo the file picker a bit.
2022-11-07 15:42:38 +01:00
Matthias Clasen
14a97accf1
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.
2022-11-07 15:42:38 +01:00
Matthias Clasen
e619d45ddc
Add a test for picker button constructors
...
This turns out to be hard enough that a test
is useful.
2022-11-07 15:32:51 +01: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
Colin Kinloch
293b91e515
wayland: calculate union of geometry of all monitors for toplevel bounds
...
Signed-off-by: Colin Kinloch <colin.kinloch@collabora.com>
2022-11-07 11:08:18 +00: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
18ee4d97fc
Merge branch 'fix-color-button-new' into 'main'
...
color/fontdialogbutton: Fix constructors
Closes #5321
See merge request GNOME/gtk!5199
2022-11-06 13:36:49 +00: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
Pedro Sader Azevedo
32e138689e
Link the file mentioned as a reference for key values
2022-11-06 01:54:38 +00:00
Balázs Úr
06409cf18f
Update Hungarian translation
2022-11-05 22:21:06 +00:00
Goran Vidović
0041329f4d
Update Croatian translation
2022-11-05 18:55:57 +00:00
Matthias Clasen
d1c943153c
Merge branch 'make-pot-update' into 'main'
...
Add new printf patterns to make-pot
See merge request GNOME/gtk!5197
2022-11-05 10:50:51 +00:00
Matthias Clasen
baac6ef871
Add new printf patterns to make-pot
...
This script is used to extract our strings for translators
on damn lines, and passing these flags to xgettext makes
it put a hint into the pot file about strings that are
used as printf format strings.
2022-11-05 11:23:53 +01:00
Luca Bacci
b209e5117d
Merge branch 'gdk-win32-settings-rework' into 'main'
...
GdkWin32 settings rework
See merge request GNOME/gtk!5193
2022-11-04 16:00:25 +00:00
Luca Bacci
440929daea
GdkWin32: Add more GDK_NOTE calls for settings
2022-11-04 16:11:27 +01:00
Luca Bacci
1506de5669
GdkWin32: Set the "gtk-hint-font-metrics" property
...
Helps for https://gitlab.gnome.org/GNOME/gtk/-/issues/5257
2022-11-04 16:03:11 +01:00
Luca Bacci
41f9f1d623
GdkWin32: Set the "gtk-cursor-blink" setting
2022-11-04 15:57:25 +01:00
Luca Bacci
24047d7f61
GdkWin32: Set the "gtk-cursor-theme-size" setting
...
Note that we have to set the logical value, that's why
we use GetSystemMetrics and not GetSystemMetricsForDpi.
2022-11-04 15:56:20 +01:00
Luca Bacci
45681c4fe5
GdkWin32: Detect the high contrast setting
...
And set the theme name accordingly ("Default-hc")
2022-11-04 15:54:02 +01:00
Luca Bacci
95c121b6d6
GdkWin32: Fix leak of screen HDC
2022-11-04 15:41:11 +01:00
Luca Bacci
6b569afdfe
GdkWin32: Remove special-casing for old Pango versions
...
We require Pango 1.50 now
2022-11-04 15:35:04 +01:00