summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* widget-factory: Autoplay the videoMatthias Clasen2020-12-091-1/+1
| | | | | The empty video on the frontpage is a bit of a letdown, since the big arrow can't be clicked.
* Remove NoDisplay from demo desktop filesMatthias Clasen2020-12-094-4/+0
| | | | | | | When these are installed (in particular, as flatpaks), we should not hide them. Fixes: #2932
* gtk-demo: Remove potentially ableist metaphorSophie Herold2020-12-081-1/+1
|
* gtk/window: Make 'default-size' adapt to configured sizeJonas Ådahl2020-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | This commit changes the behavior of window size computation and the default size properties to: * The default-width and default-height properties are updated to the current window size unless the size is fixed by e.g. being maxmized, tiled etc. * The compute-size semantics are to just pick the default size, or if not adequate, use the measured size, and consequently update the default size, unless unresizable. * gtk_window_get_size() is removed, what's more likely relevant is the gtk_window_get_default_size() which will now contain more sensible values. Various places that used gtk_window_get_size() were updated to use gtk_window_get_default_size() to remember and restore previous sizes. This also changes the default value of 'default-width' and 'default-height' from -1 to 0. The gtk builder simplify tool is taught how to omit when the default size is set to both -1 and 0.
* gtk/popover: Use gtk_popover_present() instead of going via GtkNativeJonas Ådahl2020-12-072-3/+3
| | | | This makes it more explicit that managers of popovers make it "present".
* gtk-demo: Use a native filechooser in the words demoMatthias Clasen2020-12-031-14/+11
|
* gtk-demo: Use a native file chooser in the svg demoMatthias Clasen2020-12-031-15/+11
|
* gtk-demo: Use a native filechooser in the video demoMatthias Clasen2020-12-031-13/+11
|
* gtk-demo: Remove empty row in the pickers demoMatthias Clasen2020-12-031-11/+4
| | | | The file chooser button is gone.
* demos: make alienplanet demo work on macOS OpenGLChristian Hergert2020-12-031-4/+4
| | | | | | | | | | | | On the macOS OpenGL implementation, the use of noise2 as a function within the glsl shader collides with the builtin noise2 of a different signature. This changes the name to something similar (noize2) so that we do not risk colliding names when linking. With this commit, the shadertoy alienplanet demo works on mac OpenGL (albeit still with the Cairo renderer).
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-12-031-0/+10
|\ | | | | | | | | | | | | Matthiasc/for master Closes #3429 See merge request GNOME/gtk!2912
| * gtk-demo: Add a search buttonMatthias Clasen2020-12-021-0/+10
| | | | | | | | Easter eggs are great, but search shouldn't be one.
* | gtk: Remove GtkFileChooserButtonBenjamin Otte2020-12-034-61/+73
|/ | | | ... as discussed in the meeting.
* Drop devel styling from our windowsno-more-devel-headersMatthias Clasen2020-11-237-20/+0
| | | | | We are about to do a stable release. Time to get used again to plain old, boring header bars.
* icon-browser: Add .sidebar style class in the main windownana-4/gtk-sidebar-style-fixesnana-42020-11-231-6/+4
| | | | So the sidebar can get the proper background and border colors.
* gtk-demo: Add .sidebar style class in the main windownana-42020-11-231-3/+3
| | | | So the sidebar can get the proper background and border colors.
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-11-2012-133/+490
|\ | | | | | | | | Matthiasc/for master See merge request GNOME/gtk!2870
| * gtk-demo: Make a more interesting constraints demoMatthias Clasen2020-11-192-49/+405
| | | | | | | | | | | | Show various ways to influence spacing. This is more or less modeled on the way Androids constraint layout lets you set up 'chains'.
| * gtk-demo: Rename some demosMatthias Clasen2020-11-189-21/+21
| | | | | | | | | | This is just to make it easier for myself to find the right sources.
| * gtk-demo: Add more keywordsMatthias Clasen2020-11-182-3/+4
| | | | | | | | | | Add GtkShortcutController as a keyword to some demos that show its use.
* | a11y: Hide children of GtkFishBowlEmmanuele Bassi2020-11-191-0/+3
| | | | | | | | | | The fishbowl widget is purely presentational, and its children should not be visible in the accessibility tree.
* | demo: Make GtkFishBowl a presentation widgetEmmanuele Bassi2020-11-191-0/+2
| | | | | | | | It has no accessible content, even if it displays widgets.
* | constraint-editor: Fix creating constant constraintsconstraint-editor-workMatthias Clasen2020-11-173-7/+26
| | | | | | | | | | | | We were not making the button sensitive in the case of a constant constraint, and we were not properly creating constant constraints either.
* | constraint-editor: Fix saving of constraintsMatthias Clasen2020-11-171-1/+1
| | | | | | | | | | g_file_replace_contents take a gsize, so passing -1 for string length does not work here.
* | constraint-editor: Improve display of constraintsMatthias Clasen2020-11-171-1/+17
|/ | | | | No need to go for ALGOL60 style operators when we have Unicode.
* node-editor: fix length of text during saveChristian Hergert2020-11-171-1/+1
| | | | | The length parameter for g_file_replace_contents() is a gsize, so -1 is unsuitable here. Just use strlen() directly.
* widget-factory: Remove an unused size groupMatthias Clasen2020-11-171-5/+0
| | | | | This was left behind when 361407201b88c3aae2ee removed the unused popover that this size group applied to.
* widget-factory: Fix caption style class namewip/exalm/captionAlexander Mikhaylenko2020-11-171-1/+1
| | | | It's lowercase.
* gsk: Avoid using gtk css types in public apigsk-binding-apiMatthias Clasen2020-11-161-5/+4
| | | | | | | | | | | | | | | | Using GtkCssSection in public headers here may be ok from the C perspective, since it all ends up in the same library anyway. But it causes circular dependency problems for our gir files that are still split by namespace. To avoid this problem, copy the GtkCssLocation struct struct as GskParseLocation, and pass take two of them instead of a GtkCssSection in the error callback. Update all users. Fixes: #2454
* widget-factory: Remove an unused popoverMatthias Clasen2020-11-161-235/+0
| | | | | We are no longer using the hand-rolled variant of that popover on page 3, so drop it from the ui file.
* gtk-demo: Plug a memory leakMatthias Clasen2020-11-151-0/+7
| | | | The Characters demo was leaking its columns.
* Establish a control relation between demo search and listEmmanuele Bassi2020-11-121-1/+5
| | | | | The search entry changes the content of the list view, so we should mention that relation to assistive technologies.
* demo: Add more accessibility labels to the UIEmmanuele Bassi2020-11-121-0/+12
|
* gtk-demo: Add suggestion entry demossuggestion-entry-demo2Matthias Clasen2020-11-116-23/+1549
| | | | | | | | | Add a possible replacement for GtkEntryCompletion as a demo. Move the Dropdowns demo to Lists/Selections, and make it show both GtkDropDown and the suggestion entry, with some variations.
* gtk-demo: Split off SvgPaintableMatthias Clasen2020-11-115-168/+187
| | | | | Put the SvgPaintable implementation into its own source files, for ease of copying.
* Merge branch 'matthiasc/builder-requires' into 'master'Matthias Clasen2020-11-113-3/+0
|\ | | | | | | | | Matthiasc/builder requires See merge request GNOME/gtk!2806
| * gtk4-demo: Remove <requires> from ui filesMatthias Clasen2020-11-103-3/+0
| | | | | | | | | | No need to check requires for things that are shipped with GTK.
| * Drop “gtk+” plus sign in GtkBuilder <requires>.Arnaud Bonatti2020-11-073-3/+3
| |
* | gtk-demo: Fix building scrolling demo without PangoFT2Chun-wei Fan2020-11-111-3/+6
| | | | | | | | | | | | | | | | For builds that do not have PangoFT2, the demo fails to link because we weren't building listview_ucd.c. Fix the build by building listview_ucd.c with script-names.c and unicode-names.c for all builds, as we now require a Pango version that already always depends on HarfBuzz and those sources do not use anything from PangoFT2.
* | gtk-demo: Plug a memory leakMatthias Clasen2020-11-091-1/+1
| |
* | gtk-demo: Tweak a demo titleMatthias Clasen2020-11-091-1/+1
| |
* | gkt-demo: Add a columview to the scroll demoMatthias Clasen2020-11-092-3/+27
| | | | | | | | | | This is an interesting case, since it has many labels, and we are struggling to provide good scrolling performance.
* | gtk-demo: Improve consistencyMatthias Clasen2020-11-091-0/+2
| | | | | | | | | | Make the shortcut triggers demo big enough to not ellipsize the window title.
* | gtk-demo: Improve consistencyMatthias Clasen2020-11-091-1/+2
| | | | | | | | | | Make the paintable svg demo follow the same pattern we use for other demos.
* | gtk-demo: Improve consistencyMatthias Clasen2020-11-091-1/+1
| | | | | | | | | | Make the paintable emblems demo follow the same pattern we use for other demos.
* | gtk-demo: Set default size for drawingarea demoMatthias Clasen2020-11-091-0/+1
| | | | | | | | | | Set a default size, so we don't ellipsize the window title when the window is presented.
* | gtk-demo: Plug a memory leakMatthias Clasen2020-11-091-4/+3
| |
* | gtk-demo: Plug a memory leakMatthias Clasen2020-11-091-2/+3
|/
* gtk-demo: Simplify the run buttonMatthias Clasen2020-11-041-8/+1
| | | | | | Don't create the label manually. It is not necessary, and letting the button do it also improves the accessibility setup.
* gtk-demo: Set some accessible propertiesMatthias Clasen2020-11-041-0/+6
| | | | | | Set labels in the builder demo. The ARIA authoring practices say that both menubars and toolbars *must* have an accessible label.