summaryrefslogtreecommitdiff
path: root/demos/gtk-demo
Commit message (Collapse)AuthorAgeFilesLines
* gtk-demo: Test cancellation support for file dialogMatthias Clasen2022-11-241-1/+19
| | | | | Add a timeout that closes the file dialog after 20 seconds, to test programmatic cancellation.
* Deprecate GtkInfoBarMatthias Clasen2022-11-231-0/+2
| | | | | | 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.
* gtk-demo: Add folders to the clipboard demoMatthias Clasen2022-11-172-0/+58
| | | | | | | This is handy for testing a case where folder dnd does not work with the file transfer portal. See #5348
* gtk-demo: Add some keywordsMatthias Clasen2022-11-173-1/+3
| | | | | Make sure that dnd and drag-and-drop yield the right (and the same) set of demos.
* gtk-demo: Improve language handlngMatthias Clasen2022-11-071-15/+3
| | | | | | In the font features demo, don't add a item for the default language to the dropdown, that does not make sense.
* gtk-demo: Add a few mssing language namesMatthias Clasen2022-11-071-0/+7
|
* gtk4-demo: Tweak the pickers demoMatthias Clasen2022-11-071-6/+14
| | | | Redo the file picker a bit.
* Deprecate GtkDialogMatthias Clasen2022-10-291-0/+2
| | | | | GtkDialog is too flexible in terms of UI (headerbars vs action bar, etc), and has archaic APIs. It is time to retire it.
* Deprecate GtkMessageDialogMatthias Clasen2022-10-292-0/+4
| | | | | | | | | 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.
* Deprecate GtkFontChooser and implementationsMatthias Clasen2022-10-291-0/+2
| | | | | | | | | | 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.
* Deprecate GtkColorChooser and implementationsMatthias Clasen2022-10-293-0/+6
| | | | | | | | | | 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.
* gtk-demo: Port to async dialog APIMatthias Clasen2022-10-2917-306/+227
|
* gtk-demo: Rewrite the pickers demoMatthias Clasen2022-10-291-65/+45
| | | | | | This needs some more work. For now, just have very simple test cases for some of the new async APIs.
* gtk4-demo: Avoid a critical from a11y codeMatthias Clasen2022-10-281-1/+1
| | | | | Even though we want to be accessible, we must not divide by zero.
* gtk-demo: Use global style in font_featuresMatthias Clasen2022-10-221-2/+6
|
* gtk-demo: Replace combo boxes in font featuresMatthias Clasen2022-10-222-94/+142
| | | | | This is a slightly more complicated combo box, so we need an auxiliary object.
* gtk-demo: Replace combobox in font renderingMatthias Clasen2022-10-212-23/+28
| | | | Out with the combobox, in with the dropdown.
* gtk-demo: Remove deprecations from charactersMatthias Clasen2022-10-211-3/+12
| | | | Make the characters demo use global style providers.
* gtk-demo: Remove deprecations from sizegroup demoMatthias Clasen2022-10-211-27/+7
| | | | Out with the comboboxes, in with the dropdowns.
* gtk-demo: Remove deprecation from textview demoMatthias Clasen2022-10-211-5/+4
| | | | | Use a dropdown instead of a combobox for the widget embedding. It's better!
* gtk-demo: Remove deprecations from gltransitionsMatthias Clasen2022-10-211-9/+18
| | | | Make the GL transitions demo use global style providers.
* gtk-demo: Remove deprecations from solitaireMatthias Clasen2022-10-211-5/+13
| | | | Make the solitaire game use global style providers.
* gtk=demo: Drop unneeded deprecation guardsMatthias Clasen2022-10-211-2/+0
| | | | Nothing deprecated in the pixbuf paintable demo.
* gtk-demo: Remove deprecations from dndMatthias Clasen2022-10-211-28/+41
| | | | Make the dnd demo use global style providers.
* gtk-demo: Add more sort columnsMatthias Clasen2022-10-201-0/+4
| | | | | Add a second sort column to the Settings demo, to make it easier to test column view sorting.
* demos: Ignore deprecationsMatthias Clasen2022-10-127-0/+13
| | | | | | Most of these demos should be ported to use global style providers eventually. For now, just ignore the deprecations.
* demos: Ignore deprecations for render apisMatthias Clasen2022-10-121-0/+2
| | | | Eventually, this demo should probably be removed.
* demos and examples: Ignore deprecationsMatthias Clasen2022-10-119-0/+17
| | | | | | For now, just ignore deprecations. Eventually, we will have to go through, drop demos that are for wholly deprecated widgets, and update others.
* Deprecate treeviews and cell renderersMatthias Clasen2022-10-112-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* gtk-demo: Modernize accordion demoBenjamin Otte2022-10-093-25/+29
|
* Deprecate GtkEntryCompletionMatthias Clasen2022-10-031-0/+2
| | | | | | 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.
* Deprecate the app chooser widgetsMatthias Clasen2022-10-031-0/+6
| | | | | | These are a family of pretty specialized widgets, and are very rarely used. Instead of porting them away from GtkTreeView and GtkComboBox, deprecate them.
* Merge branch 'game-sounds' into 'main'Matthias Clasen2022-09-103-9/+23
|\ | | | | | | | | gtk-demo: Make losing games hurt See merge request GNOME/gtk!5017
| * gtk-demo: Make losing games hurtMatthias Clasen2022-09-093-9/+23
| | | | | | | | | | Use a more annoying sound for losses. And use it for all games.
* | gtk-demo: Avoid a segfaultMatthias Clasen2022-09-091-6/+15
|/ | | | | | | | | | | | | 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
* demos: Remove detritus from a patch not applying cleanlySimon McVittie2022-08-161-65/+0
| | | | | | | 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>
* gtk4-demo: Fix a memory leakMatthias Clasen2022-08-131-0/+1
| | | | The gears demo was leaking its vertices.
* gtk-demo: Make the icon work uninstalledMatthias Clasen2022-07-161-0/+1
| | | | | Include the app logo as a resource, so we can show it even when uninstalled.
* gtk-demo: Add a winning sound to the puzzleMatthias Clasen2022-07-161-0/+27
| | | | We should celebrate every win.
* gtk-demo: Fix icon theme breakageMatthias Clasen2022-07-162-0/+1
| | | | The starred emblem silently went away :(
* picture: Add content-fit propertyMarco Melorio2022-07-151-1/+1
| | | | | | | | It allows to specify the resize mode of the paintable inside the GtkPicture allocation. This also deprecates the keep-aspect-ratio property. Fixes #5027.
* Rename clear_template to dispose_templateEmmanuele Bassi2022-07-113-3/+3
| | | | | Make it more clear that the function is supposed to be called during the dispose sequence of a widget.
* Port gtk-demo widgets to gtk_widget_clear_template()Emmanuele Bassi2022-07-113-2/+13
|
* Font features demo improvementsMatthias Clasen2022-07-031-9/+89
| | | | | | Use font-provided names for ssNN and cvNN features. But good luck finding a font that has these!
* Font features demo improvementsMatthias Clasen2022-07-023-13/+128
| | | | Add buttons to cycle through samples.
* Fix up font features demoMatthias Clasen2022-07-021-1/+6
| | | | The conversion to a textview was incomplete.
* gtk4-demo: Add color to font featuresMatthias Clasen2022-07-022-17/+148
|
* gtk4-demo: CosmeticsMatthias Clasen2022-07-012-18/+15
|
* gtk4-demo: Add a waterfall to font featuresMatthias Clasen2022-06-302-85/+191
|
* gtk4-demo: Fix font features animationMatthias Clasen2022-06-301-1/+1
|