summaryrefslogtreecommitdiff
path: root/demos/gtk-demo
Commit message (Collapse)AuthorAgeFilesLines
* Prevent a crash with script namesMatthias Clasen2020-10-041-1/+6
| | | | We can't pass NULL to gettext().
* Update the copy in gtk-demo tooMatthias Clasen2020-10-041-6/+36
|
* gtk-demo: Rename the transition shader filesMatthias Clasen2020-10-036-9/+9
| | | | | Easier to find them when their name matches the title that we show in the UI.
* gtk-demo: Fix a typoMatthias Clasen2020-10-021-1/+1
|
* gtk-demo: Add the shader paintable sourcesMatthias Clasen2020-09-301-0/+2
| | | | | This is currently not public GTK api, just part of the demo. So we should show it here.
* transition demo: Make buttons symbolicMatthias Clasen2020-09-301-2/+2
| | | | It looks better.
* Merge branch 'ebassi/for-master' into 'master'Matthias Clasen2020-09-301-3/+3
|\ | | | | | | | | demo: Replace g_print with g_debug See merge request GNOME/gtk!2645
| * demo: Replace g_print with g_debugEmmanuele Bassi2020-09-301-3/+3
| | | | | | | | | | | | The GtkGears widget is a bit too chatty, especially when used inside demos like the fishbowl. Let's use g_debug() instead of g_print() for the GL debugging message.
* | gtk-demo: Update text for the transitions demoMatthias Clasen2020-09-301-2/+3
| | | | | | | | The fire is gone, but we have wobbly widgets!
* | gtk-demo/gltransition: Replace fire background with more mellow blobsAlexander Larsson2020-09-304-72/+28
| |
* | gtk-demo: Use duck in transitions to get some alpha exampleAlexander Larsson2020-09-301-1/+1
| |
* | gtk-demo: Make gltransitions demo a bit snazzierAlexander Larsson2020-09-308-20/+117
|/ | | | | | | | | | | | | | | | This adds a bunch of snazz to the gltransitions demo. It is perhaps a bit overloaded now, but it demos everything that we can do. Changes: * The fire shader is now not a bin, it just renders an animating background with no textures involved. * The stacks don't all start on the same page. * The shaderbin passes the mouse coordinate to the shader. * The shaderbin allows specifying a "border" so that you can cause effects outside the bin child (something that is new to gtk4). * All the buttons and the stacks are now in shader-bins that runs a wobbly-widget effect based on the mouse position that wobbles outside the child allocation.
* gtk-demo: Add a shader paintable to the fishbowlAlexander Larsson2020-09-291-0/+34
| | | | This gets around 500 instances at 60fps on my system.
* gtk-demo: Add GskGLShaderNode demoAlexander Larsson2020-09-2915-0/+1805
| | | | | | | | | | | Add adds a demo showing off GskGLShaderNode in various ways. It has a transistion widget, using some examples from gl-transitions.com, with child widgets being both images, a GL area and real widgets (that let you edit the transition shaders themselves. It also has a fancy fire effect on hove on the buttons.
* shadertoy demo: Fix GLSL on GLESAlexander Larsson2020-09-291-2/+4
| | | | I was getting "assignment to varying fragColor" errors
* gtk-demo: Improve the pickers demoMatthias Clasen2020-09-211-5/+75
| | | | | | "Two of every kind..." Add some customized pickers here. This found a number of issues that have been fixed in the preceding commits.
* textbuffer: Redo insert markup a little bitMatthias Clasen2020-09-191-61/+176
| | | | | | | | | Redo the tag insertion function to avoid quadratic behavior, and at the same time, fix handling of alpha for color attributes. Update the copy of this function in gtk4-demo as well.
* gtk-demo: Cosmetic changesMatthias Clasen2020-09-173-12/+24
| | | | Polish the text view demos a little bit.
* gtk-demo: Fix toggle- vs checkbutton confusionMatthias Clasen2020-09-161-2/+2
|
* gtk-demo: Beef up the hypertext demoMatthias Clasen2020-09-161-22/+117
| | | | Its almost a dictionary.
* Merge branch 'wip/sadiq/headerbar-demo' into 'master'Matthias Clasen2020-09-161-0/+1
|\ | | | | | | | | gtk-demo: Add a switch to headerbar demo See merge request GNOME/gtk!2571
| * gtk-demo: Add a switch to headerbar demoMohammed Sadiq2020-09-141-0/+1
| | | | | | | | We don't have any demos with a switch in headerbar.
* | gtk-demo: Add another demoMatthias Clasen2020-09-156-1/+337
| | | | | | | | | | Show how to add a context menu to a custom widget, and how to make a GtkPicture lookalike.
* | Merge branch 'master.win32' into 'master'Matthias Clasen2020-09-151-2/+2
|\ \ | | | | | | | | | | | | | | | | | | Some more fixes for Windows Closes #3157 See merge request GNOME/gtk!2580
| * | demos: Fix minesweeper demos on WindowsChun-wei Fan2020-09-151-2/+2
| |/ | | | | | | | | | | Make sure the callback functions in the .ui files are exported, so that those functions can be recognized at runtime so that things run properly.
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-09-155-19/+59
|\ \ | | | | | | | | | | | | Matthiasc/for master See merge request GNOME/gtk!2582
| * | gtk-demo: Add more detail to the dnd demo textMatthias Clasen2020-09-141-0/+4
| | |
| * | gtk-demo: Add some keywordsMatthias Clasen2020-09-141-0/+1
| | | | | | | | | | | | | | | Make the builder demo show up in searches for toolbar and menubar.
| * | gtk-demo: Improve the builder demoMatthias Clasen2020-09-142-10/+42
| | | | | | | | | | | | Make the keyboard shortcuts work.
| * | gtk-demo: Improve the builder demoMatthias Clasen2020-09-141-0/+3
| | | | | | | | | | | | Make the toolbar look right.
| * | gtk-demo: More spaceMatthias Clasen2020-09-141-2/+3
| | | | | | | | | | | | | | | Increase the inter-paragraph spacing in the info text, to make paragraphs more clearly separated.
| * | gtk-demo: Cosmetic changeMatthias Clasen2020-09-141-6/+4
| | |
| * | gtk-demo: Add some detailsMatthias Clasen2020-09-141-1/+2
| |/
* | sizegroup demo: Fix a checkbutton/togglebutton mixupTimm Bäder2020-09-151-3/+3
|/
* gtk-demo: Improve the scrolling demoMatthias Clasen2020-09-132-0/+38
| | | | Add an fps label to the scrolling demo.
* gtk-demo: Impove the fishbowl demoMatthias Clasen2020-09-131-0/+3
| | | | Use tnum for the fps label to avoid jiggling.
* gtk-demo: Use gdk_frame_clock_get_fpsMatthias Clasen2020-09-132-72/+6
| | | | | Remove another copy of this code in the theme switching benchmark.
* gtk-demo: Don't offer to run titlesMatthias Clasen2020-09-131-7/+9
| | | | | | When a group is selected (such as 'Benchmark'), make the run button insensitive - there is nothing to run.
* Demo thyselfMatthias Clasen2020-09-132-1/+31
| | | | Make gtk-demo show itself as a useful example.
* gtk-demo: Add keywords to demosMatthias Clasen2020-09-1346-21/+55
| | | | | | | | | Add the names of the main widgets as keywords to our demos, but also things like "game". This helps finding relevant demos in our growing list. You can now for example type "label", and find the "error states" and "links" demos showing GtkLabel features.
* gtk-demo: Support keywords for searchMatthias Clasen2020-09-132-17/+66
| | | | | | | | Filter the sidebar on keywords that can be provided by the demos. We extract keywords from the doc comment at the top of each demo source by looking for words that look like class names. We also allow to specify keywords explicitly.
* gtk-demo: Ignore some lines in infoMatthias Clasen2020-09-131-0/+3
| | | | | | Ignore lines starting with # in the info comment at the top of source files. This will be used to add keywords for search in following commits.
* gtk-demo: Add another demoMatthias Clasen2020-09-134-0/+287
| | | | | | This one is a more or less direct copy of the settings dialog from widget-factory, demonstrating error states and builder scopes.
* gtk-demo: Make F11 toggle fullscreenMatthias Clasen2020-09-131-0/+28
| | | | | | | In the video player demo, we have a button to make the window fullscreen, but no easy way back. Add the usual F11 keybinding, to make things at least somewhat recoverable.
* gtk-demo: Add some example videosMatthias Clasen2020-09-133-4/+46
| | | | | Add buttons to show the gtk-logo animation and the Big Buck Bunny trailer.
* gtk-demo: Don't refer to removed demosMatthias Clasen2020-09-131-1/+2
| | | | | | The animated background demos was referring to the pixbuf demo that was removed a while ago. Reword the text accordingly.
* gtk-demo: Add an emblem demoMatthias Clasen2020-09-113-0/+188
| | | | | Add a simple demo for adding emblems to icons using GdkPaintable.
* gtk-demo: Tweak the animated paintableMatthias Clasen2020-09-116-14/+28
| | | | | | | | Make it possible to have no background in the animated paintable. This will be used in a future demo. Update all users.
* gtk-demo: Fix a few crashMatthias Clasen2020-09-112-0/+2
| | | | | The paintable demos were forgetting to clear their window variable.
* gdk: Rename GdkSurfaceState to GdkToplevelStateMatthias Clasen2020-09-101-3/+3
| | | | | | That is what it is. Fixes: #2790