summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-294-0/+8
| | | | | | | | | | 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.
* print-editor: Port to async dialog APIMatthias Clasen2022-10-291-99/+76
|
* node-editor: Port to async dialog APIMatthias Clasen2022-10-291-92/+69
|
* constraint-editor: Port to async dialog APIMatthias Clasen2022-10-291-56/+43
|
* widget-factory: Port to async dialog APIMatthias Clasen2022-10-291-13/+16
|
* 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.
* widgetfactory: Add text to iconic model buttonsMatthias Clasen2022-10-181-0/+5
| | | | We want to use this for tooltips in the future.
* 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-1112-0/+33
| | | | | | 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.
* | Merge branch 'widget-factory-filechooser' into 'main'Matthias Clasen2022-09-091-1/+26
|\ \ | | | | | | | | | | | | widget-factory: Add a file chooser See merge request GNOME/gtk!5015
| * | widget-factory: Add a file chooserMatthias Clasen2022-09-091-1/+26
| |/ | | | | | | | | | | 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.
* | 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.
* widget-factory: Make the icon work uninstalledMatthias Clasen2022-07-161-0/+2
| | | | | Include the app logo as a resource, so we can show it even when uninstalled.
* 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: Set overflow to be hiddenMarco Melorio2022-07-161-1/+0
| | | | | | | 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.
* Merge branch 'test-coverage' into 'main'Matthias Clasen2022-07-151-17/+19
|\ | | | | | | | | node-editor: Make the help more helpful See merge request GNOME/gtk!4874
| * node-editor: Sort help betterMatthias Clasen2022-07-151-17/+17
| | | | | | | | Move the gshader section where it belongs.
| * node-editor: Make the help more helpfulMatthias Clasen2022-07-151-0/+2
| | | | | | | | | | I struggled to remember how newlines vs strings work in this format, so put it in the docs.
* | picture: Add content-fit propertyMarco Melorio2022-07-153-2/+3
|/ | | | | | | | 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-118-8/+8
| | | | | 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
|
* Port node editor to gtk_widget_clear_template()Emmanuele Bassi2022-07-111-0/+9
|
* Port icon browser to gtk_widget_clear_template()Emmanuele Bassi2022-07-111-0/+9
|
* Port constraint editor to gtk_widget_clear_template()Emmanuele Bassi2022-07-113-6/+8
|
* widget-factory: Fix a missing exportMatthias Clasen2022-07-071-0/+1
| | | | This broke when we started using a scope.