Matthias Clasen
6b2c088a29
demos: Stop using deprecated api
...
Use texture apis instead of pixbuf ones.
2023-05-16 16:25:59 -04:00
Benjamin Otte
bac41ce644
node-editor: Print default renderer in title
...
If there is a value passed to GSK_RENDERER, display it in the window
title.
This is mostly so that when I show off screenshots, people know what
renderer I'm using.
2023-05-16 18:53:53 +02:00
Matthias Clasen
f2a297f56d
Stop using gtk_css_provider_load_from_data
2023-05-13 19:59:17 -04:00
Matthias Clasen
59343e4efb
gtk-demo: Rename the new Settings demo
...
"v2" does not look great in the sidebar.
Lets call this "Alternative Settings".
2023-05-11 20:14:58 -04:00
Matthias Clasen
41219ae489
gtk-demo: Fix a typo
2023-05-11 19:53:42 -04:00
Matthias Clasen
ba6a618d44
build: Rename another option
2023-05-09 21:41:27 -04:00
Matthias Clasen
ff920d98ec
Use GTK_ALIGN_BASELINE_FILL
...
Replace GTK_ALIGN_BASELINE with its new name
everywhere.
2023-05-09 14:28:26 -04:00
Matthias Clasen
91ca6d0851
Merge branch 'wip/ebassi/gen-version-macros' into 'main'
...
Generate version and deprecation macros at build time
See merge request GNOME/gtk!5945
2023-05-09 18:23:40 +00:00
Matthias Clasen
526ddfa866
Merge branch 'wip/otte/sections' into 'main'
...
Add GtkSectionModel
See merge request GNOME/gtk!5818
2023-05-09 16:36:55 +00:00
Emmanuele Bassi
33d0cfd4f8
demos: Drop symbol visibility macros from demo types
...
Since the corresponding source files do not include "config.h", and are
not compiled with `GTK_COMPILATION`, they will generate the wrong symbol
exporting under Windows.
2023-05-09 16:43:35 +01:00
Emmanuele Bassi
265bc90524
build: Use Meson's gnu_symbol_visibility
...
Instead of injecting `-fvisibility=hidden` depending on a compiler check
ourselves, let Meson do it for us.
This also avoids us having to filter `-fvisibility=hidden` when reusing
the common compiler flags.
2023-05-09 16:43:25 +01:00
Benjamin Otte
a959fba18a
Merge branch 'wip/otte/no-vsync' into 'main'
...
Add GDK_DEBUG=no-vsync
See merge request GNOME/gtk!5944
2023-05-09 15:16:43 +00:00
Benjamin Otte
ddefbfa8b5
gtk-demo: Add alternative settings demo
...
This one displays a long list of all settings with sections and allows
filtering the list to quickly search for keys.
2023-05-09 17:03:35 +02:00
Benjamin Otte
435a405c55
gtk-demo: Split out code from the settings demo
...
I want to add another demo using settings and share relevant code.
2023-05-09 17:01:20 +02:00
Benjamin Otte
30acf00bf8
gtk-demo: Update fps with higher priority
...
We want to make sure to always update it, so make sure it has a higher
priority than redraws.
2023-05-09 16:29:41 +02:00
Matthias Clasen
082ba6d7c8
Introduce GTK_ALIGN_BASELINE_FILL/CENTER
...
It turns out that the old behavior of GTK_ALIGN_BASELINE
was actually used in libadwaita, so bring it back, and
introduce a new GtkAlign value for the new behavior.
2023-05-07 21:26:09 -04:00
Matthias Clasen
823f56d263
Cleanup
2023-05-07 09:32:09 -04:00
Matthias Clasen
87332920d5
node-editor: Add some editor smarts
...
Allow control-clicks on some fields to bring up
a more specific UI. This functionality is also
available via Ctrl-E and the context menu.
At this point, it can edit colors, fonts and
files in some places, as well as a few enums.
2023-05-07 09:19:44 -04:00
Matthias Clasen
d2a358206c
Fix a typo in the node format definition
2023-05-07 09:19:44 -04:00
Matthias Clasen
1fba59f1d1
node-editor: Be a bit better about saving
...
When we have a file, suggest it for saving.
This has the side benefit of giving us a test case
for gtk_file_dialog_set_initial_file.
2023-05-05 14:18:40 -04:00
Daniel Boles
2c15d563e2
gtk-demo/listbox: Fix 0 space between nick & date,
...
by restoring the right-alignment that gtk-3-24 has here, but we had lost
– I guess because we dropped the default child expand and pack-end props
2023-04-30 16:39:16 +01:00
Matthias Clasen
5b6f8d7002
gtk4-demo: Stop using gtk_widget_get_allocated_size
2023-04-29 14:30:21 -04:00
Matthias Clasen
c237643b24
node-editor: Plug a memory leak
2023-04-27 13:42:03 +02:00
Matthias Clasen
d8b46c16cc
Merge branch 'stylus-fixes' into 'main'
...
gtk-demo: Test stylus-only mode
See merge request GNOME/gtk!5804
2023-04-12 10:10:11 +00:00
Matthias Clasen
3eee1c0724
node-editor: Typo fixes
...
Fix some typos in the node format documentation.
2023-04-10 16:04:17 +02:00
Matthias Clasen
d4a34b1a0b
gtk-demo: Stop using gtk_widget_get_allocation
2023-04-09 08:38:14 -04:00
Matthias Clasen
b7f48b7763
gtk-demo: Add a keyword
...
Make the demo using the 'bluroverlay' come up when you type 'blur'.
2023-04-09 08:38:14 -04:00
Matthias Clasen
7f906bef06
gtk-demo: Work without stylus
...
In the paint demo, don't assume that the event
backlog contains pressure. It won't, if we are
working with a plain old mouse.
2023-04-09 08:35:03 -04:00
Matthias Clasen
5970a14217
gtk-demo: Test stylus-only mode
...
Add a checkbutton to toggle the stylus-only
mode of GtkGestureStylus, so we can test this.
2023-04-09 08:35:03 -04:00
Matthias Clasen
b1f0ca7dc4
gtk-demo: Update the GLArea examples
2023-04-03 23:05:38 -04:00
Matthias Clasen
6182f4a332
node-editor: Improve the scaling
...
We only want to scale the main rendering, not whats
shown in the sidebar. Also, make the scale logarithmic.
2023-04-03 22:33:34 -04:00
Benjamin Otte
4086913795
gtk-demo: Port to GtkColumnViewCell
2023-04-01 20:49:40 +02:00
Benjamin Otte
ce531ce280
listview: Add GtkListItem::focusable property
...
This makes the question if a listitem can be focused or not an explicit
decision by application developers.
Previously an item could be focused if it was selectable and no child or
grandchild was focusable - so if you put a label and icon into it, the
item was focusable, but if you put a GtkTreeExpander or a GtkButton into
it, the item wasn't. This needs to be decided explicitly now.
Technically this is an API break, because the previous behavior does not
exist anymore.
But I really don't want to make this a tristate (focusable, not
focusable, automatic), because then binding it to other things gets
hard, and because all the other focusable proeprties are booleans, too,
and working with them gets a lot harder.
Related: #3910
2023-04-01 20:49:40 +02:00
Benjamin Otte
47ba29bc14
docs: Document additions to the node format
2023-03-29 03:53:52 +02:00
Benjamin Otte
924fd195ab
gtk-demo: Set tab behavior for settings demo
2023-03-27 07:08:44 +02:00
Benjamin Otte
5973df22aa
gtk-demo: Rename dropdown demo
...
It's the listview selections demo, so use that name.
2023-03-26 01:06:18 +01:00
Benjamin Otte
32ff37f070
gtk-demo: Rename image scaling demo to image_scaling
...
This just means renaming the C file, but it makes --run=image_scaling
actually do what I'd expect.
2023-03-26 01:02:17 +01:00
Matthias Clasen
b23ac5c8da
Deprecate gtk_widget_translate_coordinates
...
Update all (non-deprecated) callers to use
gtk_widget_compute_point instead.
Fixes : #5697
2023-03-25 10:14:35 -04:00
Matthias Clasen
0a3eceb15d
node-editor: Embed textures in testcases
...
It is useless to have node files with references
to external files in the testsuite, so turn such
textures into data urls by doing a serialization
roundtrip.
2023-03-19 10:04:46 -04:00
Matthias Clasen
060ab606a2
gtk-demo: Reset properties when the image changes
2023-03-17 11:49:57 -04:00
Alexander Mikhaylenko
b4dc7f29d4
theme: Port .boxed-list style from libadwaita
...
Consistently use it for boxed lists in inspector and gtk-demo.
Fixes issues like https://gitlab.gnome.org/GNOME/gtk/-/issues/3145
2023-03-14 20:16:51 +04:00
Matthias Clasen
0c1ec82a74
gtk4-demo: Add a tooltip to image scaling
...
Show some information about the values.
2023-03-14 05:36:08 +01:00
Matthias Clasen
3eb9afb0ca
gtk4-demo: Polish the image scaling demo
...
Make the scale binding bidirectional again, fix up
the ranges and the sensitivity of the actions, and
add a mark for the unscaled position.
2023-03-14 05:36:08 +01:00
Matthias Clasen
413abef01d
Merge branch 'more-scaled-texture-fixes' into 'main'
...
Fix gtk_snapshot_append_scaled_texture
See merge request GNOME/gtk!5638
2023-03-13 08:58:58 +00:00
Matthias Clasen
e24d4ba5db
gtk4-demo: Use gtk_snapshot_append_scaled_texture
2023-03-13 08:54:13 +01:00
Matthias Clasen
517b4d584c
gtk4-demo: Scale logarithmically in image scaling
2023-03-13 08:21:10 +01:00
Matthias Clasen
88d9244b98
gtk4-demo: Fix rotation handling in image scaling
...
We weren't sizing the widget correctly in rotated
cases.
2023-03-13 08:11:29 +01:00
Matthias Clasen
dc50c790c5
gtk-demo: Add rotation to the scaling demo
...
Closing in on eog :)
2023-03-12 08:25:58 +01:00
Benjamin Otte
97d53b1e86
Merge branch 'wip/otte/rendernode-export' into 'main'
...
rendernode: Register SVG serializer
See merge request GNOME/gtk!5637
2023-03-11 00:26:18 +00:00
Benjamin Otte
7c96003471
node-editor: Add more export options
...
Auto-detect tiff and svg and if those are chosen, save to that format.
2023-03-11 00:08:44 +01:00