Matthias Clasen
99e1643cdd
gtk-demo: Rewrite the pickers demo
...
This needs some more work. For now, just have
very simple test cases for some of the new async
APIs.
2022-10-29 13:31:41 -04:00
Matthias Clasen
b972decf82
gtk4-demo: Avoid a critical from a11y code
...
Even though we want to be accessible,
we must not divide by zero.
2022-10-28 12:02:23 -04:00
Matthias Clasen
e6f4c596fa
gtk-demo: Use global style in font_features
2022-10-22 11:38:46 -04:00
Matthias Clasen
3d7fb26588
gtk-demo: Replace combo boxes in font features
...
This is a slightly more complicated combo box,
so we need an auxiliary object.
2022-10-22 11:35:35 -04:00
Matthias Clasen
3fc3f8d2ff
gtk-demo: Replace combobox in font rendering
...
Out with the combobox, in with the dropdown.
2022-10-21 21:48:39 -04:00
Matthias Clasen
a7cae4bffa
gtk-demo: Remove deprecations from characters
...
Make the characters demo use global style providers.
2022-10-21 21:48:39 -04:00
Matthias Clasen
3e2e29a1dc
gtk-demo: Remove deprecations from sizegroup demo
...
Out with the comboboxes, in with the dropdowns.
2022-10-21 21:48:39 -04:00
Matthias Clasen
de069e15c2
gtk-demo: Remove deprecation from textview demo
...
Use a dropdown instead of a combobox for the widget
embedding. It's better!
2022-10-21 21:48:39 -04:00
Matthias Clasen
f8edefd7c0
gtk-demo: Remove deprecations from gltransitions
...
Make the GL transitions demo use global style providers.
2022-10-21 21:48:39 -04:00
Matthias Clasen
24a15b51fe
gtk-demo: Remove deprecations from solitaire
...
Make the solitaire game use global style providers.
2022-10-21 21:48:39 -04:00
Matthias Clasen
1f7aba345d
gtk=demo: Drop unneeded deprecation guards
...
Nothing deprecated in the pixbuf paintable demo.
2022-10-21 21:48:39 -04:00
Matthias Clasen
230212c59c
gtk-demo: Remove deprecations from dnd
...
Make the dnd demo use global style providers.
2022-10-21 21:48:39 -04:00
Matthias Clasen
0149bd49ca
gtk-demo: Add more sort columns
...
Add a second sort column to the Settings demo,
to make it easier to test column view sorting.
2022-10-20 11:44:05 -04:00
Matthias Clasen
af0e056eec
widgetfactory: Add text to iconic model buttons
...
We want to use this for tooltips in the future.
2022-10-18 22:35:02 -04:00
Matthias Clasen
b1ec43ae33
demos: Ignore deprecations
...
Most of these demos should be ported to use
global style providers eventually. For now,
just ignore the deprecations.
2022-10-12 15:35:00 -04:00
Matthias Clasen
6f24bd9ff4
demos: Ignore deprecations for render apis
...
Eventually, this demo should probably be removed.
2022-10-12 15:35:00 -04:00
Matthias Clasen
6efb18330f
demos and examples: Ignore deprecations
...
For now, just ignore deprecations. Eventually,
we will have to go through, drop demos that are
for wholly deprecated widgets, and update others.
2022-10-11 17:18:21 -04:00
Matthias Clasen
5e256590db
Deprecate treeviews and cell renderers
...
This includes
GtkCellArea
GtkCellAreaBox
GtkCellAreaContext
GtkCellEditable
GtkCellRenderer
GtkCellRendererAccel
GtkCellRendererCombo
GtkCellRendererPixbuf
GtkCellRendererProgress
GtkCellRendererSpin
GtkCellRendererSpinner
GtkCellRendererText
GtkCellRendererToggle
GtkCellView
GtkComboBox
GtkComboBoxText
GtkIconView
GtkListStore
GtkTreeModel
GtkTreeModelFilter
GtkTreeModelSort
GtkTreeStore
GtkTreeView
GtkTreeViewColumn
GtkTreeSelection
2022-10-11 17:18:21 -04:00
Benjamin Otte
20b49e7c34
gtk-demo: Modernize accordion demo
2022-10-09 10:09:59 -04:00
Matthias Clasen
7e9ca5b41d
Deprecate GtkEntryCompletion
...
We want to drop cell renderers and tree models
in GTK 5. The functionality of GtkEntryCompletion
may be replaced by a new widget in GTK 5.
2022-10-03 23:23:56 -04:00
Matthias Clasen
a527a4d82e
Deprecate the app chooser widgets
...
These are a family of pretty specialized widgets, and
are very rarely used. Instead of porting them away
from GtkTreeView and GtkComboBox, deprecate them.
2022-10-03 23:02:09 -04:00
Matthias Clasen
98bdf67468
Merge branch 'game-sounds' into 'main'
...
gtk-demo: Make losing games hurt
See merge request GNOME/gtk!5017
2022-09-10 00:32:45 +00:00
Matthias Clasen
681ec04b85
gtk-demo: Make losing games hurt
...
Use a more annoying sound for losses.
And use it for all games.
2022-09-09 15:36:31 -04:00
Matthias Clasen
7dd3289837
Merge branch 'widget-factory-filechooser' into 'main'
...
widget-factory: Add a file chooser
See merge request GNOME/gtk!5015
2022-09-09 18:44:31 +00:00
Matthias Clasen
f050a9e889
widget-factory: Add a file chooser
...
We don't have a readily accessible file chooser
in our demo apps. Fix that by making the Open
menu item on page 2 bring up a file chooser.
2022-09-09 14:28:08 -04:00
Matthias Clasen
54daad3878
gtk-demo: Avoid a segfault
...
The code in the fontrendering demo is a bit sloppy
and assumes that we always get a single run when
appending a sequence of 4 chars and 4 spaces.
That is not in general true, such as for Emoji.
Instead of working harder to handle Emoji here,
just give up and fall back to 'a'.
Fixes : #5166
2022-09-09 12:34:54 -04:00
Simon McVittie
0237713c3a
demos: Remove detritus from a patch not applying cleanly
...
I assume this was committed by mistake. It isn't used, and some
packaging systems will automatically remove it during `clean`.
Signed-off-by: Simon McVittie <smcv@debian.org>
2022-08-16 08:32:45 +01:00
Matthias Clasen
4a04e468fd
gtk4-demo: Fix a memory leak
...
The gears demo was leaking its vertices.
2022-08-13 17:27:40 -04:00
Matthias Clasen
7321eb881a
widget-factory: Make the icon work uninstalled
...
Include the app logo as a resource, so we can show
it even when uninstalled.
2022-07-16 21:16:40 -04:00
Matthias Clasen
9daf83a1da
gtk-demo: Make the icon work uninstalled
...
Include the app logo as a resource, so we can show
it even when uninstalled.
2022-07-16 09:43:46 -04:00
Matthias Clasen
f7811f5dc3
gtk-demo: Add a winning sound to the puzzle
...
We should celebrate every win.
2022-07-16 09:43:46 -04:00
Matthias Clasen
25ec58be3c
gtk-demo: Fix icon theme breakage
...
The starred emblem silently went away :(
2022-07-16 09:43:46 -04:00
Marco Melorio
f1faa71d6d
picture: Set overflow to be hidden
...
The new content-fit property was wrongly suggesting to manually set
widgets' overflow property, but that property is not really intended to
be set by external code. This commit removes those suggestions and
directly set picture's overflow to be hidden.
2022-07-16 01:40:01 +02:00
Matthias Clasen
63c61340ac
Merge branch 'test-coverage' into 'main'
...
node-editor: Make the help more helpful
See merge request GNOME/gtk!4874
2022-07-15 22:34:02 +00:00
Marco Melorio
d8a73cbd03
picture: Add content-fit property
...
It allows to specify the resize mode of the paintable inside the
GtkPicture allocation. This also deprecates the keep-aspect-ratio
property.
Fixes #5027 .
2022-07-15 23:01:23 +02:00
Matthias Clasen
35e6a2fdb8
node-editor: Sort help better
...
Move the gshader section where it belongs.
2022-07-15 15:46:06 -04:00
Matthias Clasen
69336fa5f1
node-editor: Make the help more helpful
...
I struggled to remember how newlines vs strings work in
this format, so put it in the docs.
2022-07-15 15:46:06 -04:00
Emmanuele Bassi
f4f683a469
Rename clear_template to dispose_template
...
Make it more clear that the function is supposed to be called during the
dispose sequence of a widget.
2022-07-11 18:24:37 +01:00
Emmanuele Bassi
e71f9bb79f
Port gtk-demo widgets to gtk_widget_clear_template()
2022-07-11 18:24:37 +01:00
Emmanuele Bassi
bf75a21deb
Port node editor to gtk_widget_clear_template()
2022-07-11 18:24:37 +01:00
Emmanuele Bassi
1bba874895
Port icon browser to gtk_widget_clear_template()
2022-07-11 18:24:37 +01:00
Emmanuele Bassi
01f5142b00
Port constraint editor to gtk_widget_clear_template()
2022-07-11 18:24:37 +01:00
Matthias Clasen
7c5d71ebf6
widget-factory: Fix a missing export
...
This broke when we started using a scope.
2022-07-07 21:44:57 -04:00
Matthias Clasen
5ba8fc8f10
Font features demo improvements
...
Use font-provided names for ssNN and cvNN features.
But good luck finding a font that has these!
2022-07-03 01:19:19 -04:00
Matthias Clasen
5d05daaed0
Font features demo improvements
...
Add buttons to cycle through samples.
2022-07-02 23:37:34 -04:00
Matthias Clasen
86dd72fad6
Fix up font features demo
...
The conversion to a textview was incomplete.
2022-07-02 22:46:27 -04:00
Matthias Clasen
9c4490b7ad
gtk4-demo: Add color to font features
2022-07-02 11:35:24 -04:00
Matthias Clasen
cd40cd145f
gtk4-demo: Cosmetics
2022-07-01 00:10:16 -04:00
Matthias Clasen
88bbb933a1
gtk4-demo: Add a waterfall to font features
2022-06-30 23:52:37 -04:00
Matthias Clasen
4070e794d2
gtk4-demo: Fix font features animation
2022-06-30 21:11:49 -04:00
Matthias Clasen
a284dc9f31
demos: Use gtk_builder_cscope_add_callback
...
This is C convenience API, lets use it for
our convenience.
2022-06-30 20:10:06 -04:00
Matthias Clasen
64f3ac6760
gtk3-demo: Add animation to font features
2022-06-30 19:02:02 -04:00
Matthias Clasen
508ceccb66
gtk4-demo: Polish the font features demo
2022-06-30 19:02:02 -04:00
Matthias Clasen
d6dde63074
gtk4-demo: Restructure the font features demo
2022-06-30 19:02:02 -04:00
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
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
092fe2f712
gtk-demo: Cosmetics
...
Tweak the complicated textview demo a bit.
2022-06-23 07:40:55 -04: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
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
Benjamin Otte
98e0ca7477
gtk-demo: Add a "Read More" label demo.
2022-06-11 22:19:17 +02:00
Matthias Clasen
c7c8b37e4c
Merge branch 'wip/otte/inscription' into 'main'
...
Add GtkInscription
See merge request GNOME/gtk!4800
2022-06-11 13:47:20 +00:00
Benjamin Otte
61bc38cd61
gtk-demo: Use GtkInscription in the wordlist demo
2022-06-10 04:34:23 +02:00
Benjamin Otte
b56b5ed81b
gtk-demo: Use GtkInscription in the main list
2022-06-10 04:34:23 +02:00
Matthias Clasen
27db4b5c2f
node-editor: Add a zoom button
...
This is a bit more convenient than manually
adding a transform node in the text editor.
2022-06-07 13:39:22 -04:00
Matthias Clasen
5ba5693efd
Make our demos more likable
...
Nobody likes Facebook.
Everybody loves the Eagles.
2022-05-27 17:34:55 -04:00
Matthias Clasen
bcad305136
Make the formatted link more neutral
...
There have been complaints about company names in
our demos. Lets use something else.
Part of: #4716
2022-05-27 08:43:06 -04:00
Matthias Clasen
726a92200f
Install gtk4-node-editor
...
It is an application worth having around.
2022-05-07 07:18:36 -04:00
Matthias Clasen
78d34c098e
node-editor: Add things
...
Add a desktop file and appdata.
2022-05-07 07:18:36 -04:00
Alexander Mikhaylenko
1ca2d41a98
icons: Use the proper eye icons
...
adwaita-icon-theme has more appropriate icons for showing/hiding text now.
use those, and in the process fix the fact GtkPasswordEntry has been using
them the other way around.
2022-04-22 16:22:05 +04:00
Matthias Clasen
191558cfa4
gtk-demo: Small fixup to the cursors demo
2022-04-07 07:01:29 -04:00
Matthias Clasen
79fad9f221
gtk-demo: Don't hardcode a title font
...
We want a large font size, but we don't have to
hardcode Sans.
2022-03-18 12:33:33 -07:00
Matthias Clasen
b6b2682bd6
build: Avoid objcopy on arm
...
The trickery we do with objcopy and ld to speed up
resource inclusion does not seem to work right on
32bit Arm, so just skip it there.
Fixes : #4757 , #4748 , #4752
2022-03-14 08:44:09 -04:00
Ting-Wei Lan
e1e88ce665
build: Don't use ld and objcopy when cross-compiling
...
These commands don't work when compiling Windows binaries on Linux.
2022-03-13 15:19:46 +08:00
Guido Günther
25f4e597ee
print-editor: Use gtk_window_present()
...
This lets xdg-activation work as otherwise gdk_wayland_surface_focus is
never invoked.
2022-02-28 16:55:54 +00:00
Guido Günther
db8339ca66
demo: Use gtk_window_present()
...
This lets xdg-activation work as otherwise gdk_wayland_surface_focus is
never invoked.
2022-02-28 16:55:54 +00:00
Guido Günther
5ba02e3459
widget-factory: Use gtk_window_present()
...
This lets xdg-activation work as otherwise gdk_wayland_surface_focus is
never invoked.
2022-02-28 16:55:54 +00:00
Benjamin Otte
a26c1a5f0d
widget-factory: Make <F11> toggle fullscreen
2022-02-12 19:05:19 +01:00
Jan Alexander Steffens (heftig)
d8befc612f
demos: Make our stack noexec
...
This is similar to https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4330
and https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4334 , which fixed
the main library but missed the demos.
2022-02-03 19:14:36 +00:00
Chun-wei Fan
169172a9e0
demos: Always build font explorer demo
...
We are no longer using PangoFT2 APIs in this demo, so make sure that we build
it on all builds since we already depend on a HarfBuzz/Pango version that
provide everything that we need here.
Drop the unnecessary pangofc-font.h include as a result.
2022-01-12 17:29:30 +08:00
Chun-wei Fan
0a3fad4d47
gtk-demo/language-names.c: Acquire language names natively on Windows
...
Like what was done on gtk/language-names.c, acquire the language names via the
native Windows NLS APIs, eliminating a run-time dependency on iso-codes on
Windows.
2022-01-12 17:29:30 +08:00
Timm Bäder
a00480f4a1
application demo: Resolve a keyboard shortcut conflict
...
There were two menu entries side-by-side with the same keyboard shortcut
2021-12-27 10:02:03 +01:00
Emmanuele Bassi
6f2ff620bd
build: Replace deprecated 'gui_app'
...
Use `win_subsystem: 'windows'` instead.
2021-12-24 15:51:11 +00:00
Emmanuele Bassi
bd772610b1
build: Replace source_root()
...
Use project_source_root(), which replaces the deprecated source_root().
2021-12-24 15:48:06 +00:00
Matthias Clasen
a4760bcff7
Merge branch 'toolbar-combobox' into 'main'
...
Don't make all buttons in toolbars flat
Closes #4384
See merge request GNOME/gtk!4103
2021-12-17 00:35:18 +00:00
Matthias Clasen
787111a145
gtk-demo: Add dnd back to the clipboard demo
2021-12-12 16:27:36 -05:00
Matthias Clasen
f8855e892a
gtk-demo: Small followup fixes
...
Make image copy work remotely.
2021-12-12 13:41:24 -05:00
Matthias Clasen
ebb58b7cbc
gtk-demo: Rewrite the clipboard demo
...
This is more in line with the current clipboard
api, and shows handling colors and files.
2021-12-12 13:13:11 -05:00
Georg Vienna
c517e945de
textchildanchor: allow to specify replacement character
2021-12-03 16:02:48 +00:00
Matthias Clasen
b9c2a925e2
Beef up the tabs demo
...
Show various alignments, including numeric.
2021-12-03 07:55:20 -05:00
Benjamin Otte
8d1956921d
node-editor: Display errors
...
When opening a file or pasting DND fails, display the error as the
actual node.
2021-11-30 14:12:10 +01:00
Matthias Clasen
ddd5704c92
Update references to master in the repository
2021-11-29 17:37:49 -05:00
Matthias Clasen
6690197673
node-editor: Don't make paned shrinkable
...
When the handle is dragged all the way to the left,
it is impossible to get it back. Which is not fun.
2021-11-18 17:25:29 -05:00
Matthias Clasen
96778fca92
Fix formatting error in demo about dialogs
...
Try harder to format things nicely.
2021-11-16 16:45:56 -05:00
Benjamin Otte
300a88922e
build: Disable gcc warnings as warnings, too
...
We use -Werror in the build, so even if some warnings are just warnings,
they'd be errors.
2021-11-15 15:35:10 +01:00
Benjamin Otte
061026f21f
gtk-demo: Don't use deprecated librsvg API
...
New API requires a newer librsvg version, so require that one.
2021-11-09 20:29:49 +01:00
Benjamin Otte
129042425d
demos: Update for climate change and Covid
2021-11-09 03:41:43 +01:00
Matthias Clasen
895dc94cc9
gtk-demo: Avoid a missing icon
...
The hypertext demo was using an icon that we no longer
include in our embedded icon theme. Use a different one.
2021-11-08 14:17:42 -05:00
Matthias Clasen
73bba62d82
widget-factory: Add a color button to the toolbar
...
This is to check that our 'nested' buttons come out as
expected in a toolbar context.
2021-10-29 11:51:18 -04:00
Benjamin Otte
a4e83ec584
demos: Remove unused code
2021-10-23 00:03:51 +02:00
Benjamin Otte
869d2f281a
node-editor: Create renderers surfaceless
2021-10-20 21:49:32 +02:00