Benjamin Otte
672618e560
Merge branch 'wip/otte/for-main' into 'main'
...
Rework listitemfactory
See merge request GNOME/gtk!4835
2022-06-28 19:30:17 +00:00
Emmanuele Bassi
e28516d189
Merge branch 'template-signals' into 'main'
...
Force quark creation for templates
See merge request GNOME/gtk!4836
2022-06-28 17:59:31 +00:00
Maximiliano Sandoval R
dfe9460240
Force quark creation for templates
2022-06-28 18:48:38 +02:00
Sabri Ünal
01820d8524
Update Turkish translation
2022-06-28 15:52:12 +00:00
Benjamin Otte
be1729b316
signallistitemfactory: Update signal prototype
...
I'm not sure this is API safe, but it is necessary if we want to support
section items and canvas items.
If it's deemed API-unstable, we have to copy this object and deprecate
this one.
2022-06-28 16:37:38 +02:00
Benjamin Otte
57f2b5d2e6
listitemfactory: Make this callback-based
...
This way, we no longer prescribe the use of either GtkListItem or
GtkListItemWidget.
This means we can use it in other places, such as for custom section
header objects or with my Canvas ideas.
2022-06-28 16:37:38 +02:00
Benjamin Otte
c00b234440
picture: Clear the paintable properly
...
Add a clear() function and call it from dispose() instead of using
set_paintable().
2022-06-28 16:37:11 +02:00
Danial Behzadi
8d803e8615
Update Persian translation
2022-06-28 10:31:16 +00:00
Aleksandr Melman
9477ecbc92
Update Russian translation
2022-06-25 18:36:18 +00:00
Quentin PAGÈS
1e686ee535
Update Occitan translation
2022-06-25 08:56:48 +00:00
Christian Hergert
4d883861b1
menutrackeritem: protect against use-after-free
...
With recent updates to GLib, I now see cases where we can hit a state that
has finalized before notify (which will bump the ref count back up). This
is evident in GNOME Text Editor when showing a language submenu from a
popover, and then dismissing the popover and subsequently the tab.
With the previous commit, we at least get a warning like this, which helped
track down the issue.
Gtk-CRITICAL **: gtk_action_observable_unregister_observer: assertion 'GTK_IS_ACTION_OBSERVABLE (observable)' failed
GLib-GObject-CRITICAL **: g_object_ref: assertion '!object_already_finalized' failed
This patch fixes both of those criticals.
Fixes #5009
2022-06-24 14:30:45 -07:00
Christian Hergert
f9c0fc4fdd
menutrackeritem: be defensive during finalize
...
The menu/action system tends to be incredibly re-entrant, and while fixing
the misuse during finalization cycles should be a priority, this can help
protect just a bit more.
Related #5009
2022-06-24 14:30:31 -07:00
Benjamin Otte
354f1a783a
Merge branch 'wip/otte/for-main' into 'main'
...
gdk: Replace GTK_USE_PORTAL env var with GDK_DEBUG flag
See merge request GNOME/gtk!4829
2022-06-24 03:39:16 +00:00
Benjamin Otte
813dd0a674
gdk: Replace GTK_USE_PORTAL env var with GDK_DEBUG flag
...
It's a debug flag, so make it clear that it is one.
Related: Clowns on the Arch wiki on
https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications#Consistent_file_dialog
2022-06-24 03:14:50 +02:00
Matthias Clasen
bbfacb4d22
Merge branch 'alatiera/doc-type' into 'main'
...
shortcutcontroller: fix typo in property docs
See merge request GNOME/gtk!4827
2022-06-23 21:46:45 +00:00
Hugo Carvalho
086f2324a3
Update Portuguese translation
2022-06-23 21:41:23 +00:00
Jordan Petridis
c378eacb5d
shortcutcontroller: fix typo in property docs
...
followup of d7dae84af2
2022-06-23 22:35:48 +03:00
Matthias Clasen
0660bb834e
Merge branch 'bad-popup-extents' into 'main'
...
[x11] Fix coordinate space of rect in gdk_x11_surface_get_frame_extents when called on popups.
See merge request GNOME/gtk!4820
2022-06-23 11:59:55 +00:00
Matthias Clasen
092fe2f712
gtk-demo: Cosmetics
...
Tweak the complicated textview demo a bit.
2022-06-23 07:40:55 -04:00
Matthias Clasen
5be54fad82
Merge branch 'wip/jtojnar/demo-pickers-no-dirs' into 'main'
...
gtk-demo: Remove mention of directories in picker examples
See merge request GNOME/gtk!4825
2022-06-23 11:39:33 +00:00
Jan Tojnar
d91e669d98
gtk-demo: Remove mention of directories in picker examples
...
Those were removed in https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2909 .
2022-06-22 23:07:28 +02:00
Asier Sarasua Garmendia
9a22577e34
Update Basque translation
2022-06-22 19:17:51 +00:00
Yuri Chornoivan
88366c5e13
Update Ukrainian translation
2022-06-22 19:06:56 +00:00
Matthias Clasen
287ed99130
Merge branch 'wip/otte/inspector-inspector' into 'main'
...
inspector: Inspect
See merge request GNOME/gtk!4822
2022-06-22 18:25:13 +00:00
Matthias Clasen
40e09cf2bb
Merge branch 'wip/xdg-toplevel-bounds' into 'main'
...
wayland: Add supports for xdg_toplevel.bounds
See merge request GNOME/gtk!4261
2022-06-22 14:24:41 +00:00
Matthias Clasen
5a3ca064ea
Merge branch 'gtk-window-export-handle-win32' into 'main'
...
Implement gtk_window_export_handle for other backends
See merge request GNOME/gtk!4824
2022-06-22 14:20:11 +00:00
Daniel Mustieles
edc991dafd
Updated Spanish translation
2022-06-22 10:45:59 +02:00
Luca Bacci
a1d03e69a4
Add stub gtk_window_export_handle implementation for some backends
2022-06-21 22:56:33 +02:00
Benjamin Otte
18c2ba9b71
inspector: Add an "inspect inspector" button
...
And launch a new inspector.
The location of that button is rather random - I had no idea where to
put it.
2022-06-21 02:35:02 +02:00
Benjamin Otte
3da3cb35a6
object-tree: Allow inspecting inspectors
...
We filter by display, so the inspector window should show up only when
inspecting the inspector.
2022-06-21 02:35:02 +02:00
Benjamin Otte
e54567611b
inspector: Don't use global variable here
...
When inspecting the inspector, we want to create mutiple displays here.
If we need this to be global, we should store it per-inspected-display.
2022-06-21 02:35:02 +02:00
Aurimas Černius
ce88d19015
Updated Lithuanian translation
2022-06-20 22:18:16 +03:00
Emilio Cobos Álvarez
5301a74bd3
[x11] Fix coordinate space of rect in gdk_x11_surface_get_frame_extents when called on popups.
...
If we take the early return we don't unscale this at the bottom of the
function, causing wrong coordinates in HiDPI screens.
This bug also affects GTK3 (I noticed this running Firefox tests on X).
2022-06-20 10:13:21 +02:00
Matthias Clasen
381c34783d
Merge branch 'alatiera/inscription-since' into 'main'
...
inscription: Add missing Since annotations
See merge request GNOME/gtk!4815
2022-06-17 22:38:16 +00:00
Luca Bacci
3ea8dc02a3
Merge branch 'gdk-win32-gtk-overlay-scrolling' into 'main'
...
GdkWin32: Add code for gtk-overlay-scrolling setting
Closes #4899
See merge request GNOME/gtk!4816
2022-06-17 09:37:14 +00:00
Luca Bacci
83c780cfad
GdkWin32: Add code for gtk-overlay-scrolling setting
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4899
2022-06-17 11:06:43 +02:00
Jordan Petridis
4b5d218067
inscription: Add missing Since annotations
2022-06-17 00:15:46 +03:00
Matthias Clasen
8944493eca
Merge branch 'wip/jimmac/hc-sidebar-borders' into 'main'
...
HC: make selected items better visible
Closes #4984
See merge request GNOME/gtk!4813
2022-06-15 13:40:17 +00:00
Jakub Steiner
dd9f26c492
HC: make selected items better visible
...
- follow libadwaita's example and outline selected items for better visibility
in high contrast variant
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4984
2022-06-15 14:47:47 +02:00
Jordi Mas
3c038dc239
Update Catalan translation
2022-06-14 19:41:12 +02:00
Matthias Clasen
9ee555719e
Merge branch 'matthiasc/for-main' into 'main'
...
gtk-demo: Add some keywords
See merge request GNOME/gtk!4812
2022-06-14 12:25:02 +00:00
Benjamin Otte
7953092059
Merge branch 'wip/antoniof/dont-rubberband-on-drag-end' into 'main'
...
listbase: Don't start rubberband on ::drag-end
See merge request GNOME/gtk!4793
2022-06-14 03:45:55 +00:00
Jonas Ådahl
de1a8c8d89
wayland: Add support for xdg_toplevel.bounds
...
The GdkToplevelSize struct already has the concept of "bounds", which
means the largest size a window should reasonably have. It's practically
the equivalent of the monitor the window is intended to be mapped on,
with the "struts" (e.g. panels) cut out. It's used by GTK to use this
information to calculate a default window size that is "lagom" (swedish;
not too large, not too small).
2022-06-13 22:12:55 +02:00
Jordi Mas
98e000beb7
Update Catalan translation
2022-06-13 20:01:17 +02:00
Matthias Clasen
8b3a38779b
gtk-demo: Add some keywords
...
Make it so that the right demos show up when
you search for GtkInscription.
2022-06-13 11:16:51 -04:00
Aleksandr Melman
8d72c8ee5f
Update Russian translation
2022-06-13 13:26:30 +00:00
Benjamin Otte
f9b0866415
Merge branch 'wip/otte/inscription' into 'main'
...
Inscription: Derive row alignment from xalign
See merge request GNOME/gtk!4811
2022-06-13 12:08:16 +00:00
Danial Behzadi
dbe06357ec
Update Persian translation
2022-06-13 06:44:53 +00:00
Danial Behzadi
9e03c3f6cd
Update Persian translation
2022-06-13 05:48:56 +00:00
Benjamin Otte
2d14372142
reftests: Add an inscription xalign RTL test
...
This checks mainly that we do the right thing wrt PangoAlignment
weirdness.
0.25 and 0.75 are set to 0.0 and 1.0 currently because of Pango
limitations (and no desire to manually move lines).
But if that were to be fixed, both the ref and the test should update in
the same way and things should just keep working.
2022-06-13 06:49:22 +02:00