Commit Graph

73046 Commits

Author SHA1 Message Date
Matthias Clasen
bdb1886fc9 gtk4-demo: Cosmetics
Rename the ui file to match the C source, to preserve sanity.
2022-06-30 19:02:02 -04:00
Matthias Clasen
faa9ef2dc0 Add gtk_builder_cscope_add_callback
This is a convenience method for the common case
that symbols are used under their own name.
2022-06-30 19:02:02 -04:00
Matthias Clasen
21b9667f08 Merge branch 'matthiasc/for-main' into 'main'
gtk-demo: Beef up font features demo

See merge request GNOME/gtk!4841
2022-06-30 14:12:20 +00:00
Matthias Clasen
e4781e393c gtk-demo: Beef up font features demo
Some work on making this demo better.
2022-06-30 09:42:32 -04:00
Matthias Clasen
7536513ef8 Merge branch 'wip/jimmac/selectable-labels' into 'main'
theme: selectable labels legibility

Closes #5017

See merge request GNOME/gtk!4840
2022-06-29 20:05:44 +00:00
Jakub Steiner
6776c21350 theme: selectable labels legibility
- don't set fg color for selections

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5017
2022-06-29 21:40:30 +02:00
Matthias Clasen
9f4ef77663 Merge branch 'matthiasc/for-main' into 'main'
gtk-demo: Cosmetics

See merge request GNOME/gtk!4839
2022-06-29 19:16:32 +00:00
Benjamin Otte
a64bb67ef7 Merge branch 'testdatatable' into 'main'
tests: Add testdatatable

See merge request GNOME/gtk!4838
2022-06-29 13:00:53 +00:00
Ivan Molodetskikh
53f3b4b9d9 tests: Add testdatatable
Add a GtkColumnView scrolling performance test similar to the one used
previously in https://gitlab.gnome.org/GNOME/gtk/-/issues/3334.

The test creates a table with 20 columns and 10,000 rows and scrolls it
to a random position every frame, while measuring the frame times.

There is a commandline flag to pick the cell widget between none (for
benchmarking raw column view scrolling) and various label types. There
is also a commandline switch to disable automatic scrolling in case a
manual assessment is desired. Finally, there's an argument for
controlling the number of columns.
2022-06-28 21:52:49 -07:00
Emmanuele Bassi
5bb4d69720 Merge branch 'ebassi/ci-publish-doc-fix' into 'main'
ci: Force the fedora image for the publish-docs job

See merge request GNOME/gtk!4837
2022-06-28 21:02:46 +00:00
Emmanuele Bassi
35808a918d ci: Force the fedora image for the publish-docs job
Otherwise every CI runner might decide to use a different default
image, and we'll end up on one that doesn't have curl.
2022-06-28 21:32:08 +01:00
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
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