Matthias Clasen
1eae87621d
gtk-demo: Fix the shortcuts-window demo
...
Presenting the shortcutswindow got lost
in fb8e52f0c9
. Oops.
2023-02-22 14:57:47 -05:00
Matthias Clasen
6cb612ac15
gtk-demo: Fix build without sincos
...
We are getting into trouble here if
sincos isn't detected but still present
in headers. Avoid that.
Also fix the other copy of gtkgears.c.
2023-02-18 10:41:02 -05:00
Benjamin Otte
662c251cd0
demo: Spice up the mask demo
...
Also use all the mask modes, weeeee!
2023-02-14 19:07:01 -05:00
Matthias Clasen
0eb791eaaa
Make mask nodes more versatile
...
Add a GskMaskMode enumeration and implement it
in the GL and cairo renderers.
2023-02-14 19:07:01 -05:00
Matthias Clasen
e6dfb8732a
gtk-demo: Fix hotspot handling in dnd
...
We were not remembering the pointer coordinates.
2023-02-13 18:39:45 -05:00
Matthias Clasen
348803af7d
Add a mask node demo
2023-02-12 08:35:25 -05:00
Matthias Clasen
625ffa2d96
gtk-demo: Add filtering to the zoom demo
2023-02-11 15:09:38 -05:00
Matthias Clasen
dd3eedd510
gtk-demo: Rewrite the zoom demo slightly
...
Use a texture directly instead of a paintable.
This will be used in the following commit to
introduce filters.
2023-02-11 15:09:38 -05:00
Carlos Garnacho
d228bae365
Merge branch 'drag-button-issue' into 'main'
...
Fix button mask calculation for Wayland
Closes #5561
See merge request GNOME/gtk!5468
2023-02-03 09:28:01 +00:00
Arjan Molenaar
aef4c50155
Allow all mouse buttons to be used for the drawingarea demo
...
So we can test if the drag gesture works with all mouse buttons.
2023-02-02 21:29:45 +01:00
Matthias Clasen
3858c5282c
Deprecate GtkAssistant
...
It is a dialog-like toplevel, and libadwaita has
replacement parts (like AdwCarousel).
2023-02-02 08:39:25 +01:00
Matthias Clasen
d8cb11ec4a
Deprecate GtkStatusbar
...
The design patterns using statusbar are no longer popular,
and it is pretty easy to make a statusbar yourself with boxes
and labels, if you need one. The only thing special about
GtkStatusbar was its window resize handle, but that has
been gone for a long time.
2023-02-02 08:39:24 +01:00
Matthias Clasen
ad549cbded
gtk-demo: Add a uri launcher demo
2023-01-15 11:58:43 -05:00
Benjamin Otte
1b9c45b660
filedialog: Rename :current-filter to :default-filter
...
The last "current" removed from properties. None of these are current.
2022-12-24 07:56:57 -05:00
Benjamin Otte
e2f730c0bf
filedialog: Add gtk_file_dialog_set_initial_file()
...
A shortcut for setting initial-folder and initial-name at the same time.
We can remove all arguments from the actual async calls this way.
2022-12-24 07:56:57 -05:00
Matthias Clasen
a471a8b57c
Merge branch 'ebassi/gidocgen-update' into 'main'
...
ci: Update the gi-docgen dependencies
See merge request GNOME/gtk!5263
2022-12-14 16:24:48 +00:00
Matthias Clasen
eba9c4e4c3
gtk-demo: Update the pickers demo
2022-12-13 07:49:10 -05:00
Matthias Clasen
7a50e31b8d
gtk-demo: Add a GtkFileLauncher demo
...
Replace the deprecated app chooser button by a
button that calls gtk_file_launcher_launch.
2022-12-09 13:25:02 -05:00
Matthias Clasen
fb8e52f0c9
gtk-demo: Stop using gtk_widget_show/hide
2022-11-28 14:34:55 -05:00
Corey Berla
586c3c3cbd
gtk-demo: Application demo use open_finish()
2022-11-26 18:11:40 +00:00
Emmanuele Bassi
cc546d7af1
build: Add a check argument to run_command()
...
Silence a Meson warning.
2022-11-26 15:18:42 +00:00
Matthias Clasen
e5cf55bdb4
gtk-demo: Cosmetics
2022-11-26 06:40:47 -05:00
Matthias Clasen
4fa53bd041
gtk-demo: Test cancellation support for file dialog
...
Add a timeout that closes the file dialog after
20 seconds, to test programmatic cancellation.
2022-11-24 10:26:43 -05:00
Matthias Clasen
942f8d4b4b
Deprecate GtkInfoBar
...
This widget has a dialog-like API, which is something
we want to get rid of in GTK 5, and libadwaita has
a replacement with AdwBanner incoming.
2022-11-23 13:00:09 -05:00
Matthias Clasen
ea3c58f0ec
gtk-demo: Add folders to the clipboard demo
...
This is handy for testing a case where folder
dnd does not work with the file transfer portal.
See #5348
2022-11-17 06:31:09 -05:00
Matthias Clasen
af8ad1efe8
gtk-demo: Add some keywords
...
Make sure that dnd and drag-and-drop yield the right
(and the same) set of demos.
2022-11-17 05:50:34 -05: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
9948053cd7
Deprecate GtkDialog
...
GtkDialog is too flexible in terms of UI (headerbars vs action bar,
etc), and has archaic APIs. It is time to retire it.
2022-10-29 15:27:53 -04:00
Matthias Clasen
66b062a976
Deprecate GtkMessageDialog
...
It is getting replaced by GtkAlertDialog
This commit only moves the header to deprecated/,
and keeps the implementation in gtk/, since it will
eventually be salvaged into a private, dialog-free
widget.
2022-10-29 13:31:41 -04:00
Matthias Clasen
15572b0183
Deprecate GtkFontChooser and implementations
...
These are being replaced by GtkFontDialog
and GtkFontDialogButton
This commit only moves the headers for GtkFontChooserWidget and
GtkFontChooserDialog to deprecated/, and keeps the implementations
in gtk/, since they will eventually be salvaged into a private
GtkFontChooserWindow.
2022-10-29 13:31:41 -04:00
Matthias Clasen
a51a6a3ee2
Deprecate GtkColorChooser and implementations
...
These are being replaced by GtkColorDialog
and GtkColorDialogButton.
This commit only moves the headers for GtkColorChooserWidget
and GtkColorChooserDialog to deprecated/, and keeps the
implementations in gtk/, since they will eventually be
salvaged into a private GtkColorChooserWindow.
2022-10-29 13:31:41 -04:00
Matthias Clasen
756888a53d
gtk-demo: Port to async dialog API
2022-10-29 13:31:41 -04:00
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
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