summaryrefslogtreecommitdiff
path: root/demos/gtk-demo
Commit message (Collapse)AuthorAgeFilesLines
* Remove NoDisplay from demo desktop filesMatthias Clasen2020-12-091-1/+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-033-58/+73
|/ | | | ... as discussed in the meeting.
* Drop devel styling from our windowsno-more-devel-headersMatthias Clasen2020-11-231-3/+0
| | | | | We are about to do a stable release. Time to get used again to plain old, boring header bars.
* 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.
* 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.
* Set accessible label on GTK Demo's primary menuEmmanuele Bassi2020-11-041-0/+3
| | | | Otherwise its label is going to be "GtkMenuButton".
* gtk-demo: Set an accessible roleMatthias Clasen2020-11-041-3/+2
| | | | | | Set an accessible role for the toolbar in the builder demo. This tests accessibility support in GtkBuilder.
* gtk-demo: Remove more gtk3-demo icon usesMatthias Clasen2020-11-022-2/+2
| | | | Use our own logo everywhere.
* gtk-demo: Tweak images demoMatthias Clasen2020-11-022-3/+4
| | | | | Use our own logo instead of the gtk3-demo one, and tweak the headings to refledct what we show.
* gtk-demo: Reanimate floppy buddyMatthias Clasen2020-11-025-2/+208
| | | | | Implement a GdkPaintable wrapper around GdkPixbufAnimation, so floppy buddy can waive again.
* gtk-demo: Renovate the paned demoMatthias Clasen2020-11-021-127/+39
| | | | Make this look less like testgtk from GTK 2.
* fixup: window titlesMatthias Clasen2020-11-021-1/+1
|
* gtk-demo: Polish all entry demosMatthias Clasen2020-11-023-25/+20
| | | | | Make the spacing a bit more consistent, and tweak some strings here and there.
* gtk-demo: Polish the search bar demoMatthias Clasen2020-11-021-78/+24
| | | | | Rename this, and make it look a bit less like a debugging tool, and more like a demo.
* gtk-demo: Tweak tagged entry stylingMatthias Clasen2020-11-023-9/+18
| | | | Move the tags closer together, and avoid resizing too much.