summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* demos: Simplify popovers demoCarlos Garnacho2016-06-211-4/+0
| | | | | | Don't do much unconventional stuff here. This is a demo, not a test. https://bugzilla.gnome.org/show_bug.cgi?id=767851
* gtk3-demo: Make the filter model example more interestingMatthias Clasen2016-06-192-3/+43
| | | | | Allow editing values in the first treeview, to see the derived models update in real time.
* gtk-demo: Use max-content-height in the popover exampleMatthias Clasen2016-06-192-3/+1
| | | | This is what the property was invented for.
* gtk3-demo: Fix the modelbutton exampleMatthias Clasen2016-06-191-0/+3
| | | | | The color menu buttons didn't have the necessary target property to be successfully activated.
* gtk-demo: Fix up some warningsMatthias Clasen2016-06-191-3/+10
| | | | | The search entry example was a bit sloppy in cleaning up its sources, causing warnings.
* widget factory: Adapt to new scrolled window behaviorMatthias Clasen2016-06-191-1/+4
| | | | | | Set a max-content-width on some of the scrolled windows to keep things looking mostly the same, now that GtkScrolledWindow passes along the natural size of its child.
* widget-factory: Use max-content-size in a popoverMatthias Clasen2016-06-061-1/+3
| | | | | This gives a nice example of these properties in action, in the "Open" popover on page 3.
* gtk3-demo: Fix some css warningsMatthias Clasen2016-05-302-2/+2
| | | | Update the font: syntax to follow css.
* gtk-demo: Update no-drop cursor imageMatthias Clasen2016-05-171-0/+0
| | | | Adwaita is using a different cursor for this now.
* gtk3-demo: Add context-menu cursorMatthias Clasen2016-05-172-0/+1
| | | | The Adwaita cursor theme covers this one now.
* Fix scale lengthMatthias Clasen2016-05-102-1/+9
| | | | | The vertical scales should really be of the same length, so add an empty value to be drawn by the other scale.
* widget-factory: Let one of the scales draw a valueTimm Bäder2016-05-101-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=766120
* gtk-demo: Fix revealer demoMatthias Clasen2016-05-071-3/+6
| | | | | | | | | This only used by luck before. We are changing a property from the ::notify handler for that property. Now that GtkRevealer is notifying the property when it stops animations on unmap, we end up in a life lock situation where we never make it out of the notify queue. Fix this by not restarting the animation if the widget is unmapped.
* gtk3-demo: Add a close button to the markup windowMatthias Clasen2016-05-061-0/+1
|
* gtk-demo: Don't duplicate text in markup exampleMatthias Clasen2016-05-061-1/+2
| | | | I forgot to clear the buffer before inserting the new markup. Oops.
* demo: Add GLES support to the GtkGLArea demoEmmanuele Bassi2016-04-256-6/+40
| | | | | We need new shaders, and we need to select the correct shader when building the program we use to render the triangle.
* demos: Show slider/rotation axes in "Event axes" demoCarlos Garnacho2016-04-081-1/+55
|
* gtk3-demo: Add tool information to "Event axes" demoCarlos Garnacho2016-04-061-0/+44
| | | | Print tool type and serial, if found.
* demos: Enable multidevice behavior on event-axes demoCarlos Garnacho2016-04-061-0/+1
| | | | | | On wayland we get separate master/slaves for each tablet, we will need to receive crossing events for each master pointer if there's more than one around.
* demos: Set crossing events mask explicitly on event-axes demo.Carlos Garnacho2016-04-061-0/+2
|
* gtk3-demo: Show multiple master devices on the "Event axes" demoCarlos Garnacho2016-04-061-31/+35
|
* gtk-demo: Add support for distance in event_axesStephen Chandler Paul2016-04-061-1/+28
| | | | Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com>
* gtk-demo: Use GdkAxisUse instead of axis labelsStephen Chandler Paul2016-04-061-61/+45
| | | | | | | | | Axis labels are very X specific, and are not really possible to port to other backends such as Wayland. As such, it makes more sense to use GdkAxisUse and GdkAxisUseFlag in order to determine the axis capabilities of a device and draw their axes. Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com>
* gtk3-demo: Show more button stylesMatthias Clasen2016-03-252-1/+37
| | | | | Add examples for suggested-action and destructive-action buttons in the style classes example.
* gtk3-demo: Rename "CSS Theming" groupMatthias Clasen2016-03-256-6/+6
| | | | Call it just "Themeing" to avoid the repetition of CSS.
* gtk-demo: Improve markup demoMatthias Clasen2016-03-212-6/+69
| | | | | | Add squiggly underlines and background, and make the markup editable. https://bugzilla.gnome.org/show_bug.cgi?id=763741
* gtk-demo: Rework foreigndrawing to use sizes from the themeCarlos Garcia Campos2016-03-211-201/+551
| | | | | | | | Instead of hardcoding the size of the widgets. This makes the output closer to real widgets and fixes the blurry icons. I've also added a scale. https://bugzilla.gnome.org/show_bug.cgi?id=763758
* gtk-demo: Fix copy/paste errorBenjamin Otte2016-03-201-1/+1
| | | | http://www.viva64.com/en/b/0383/
* gtk-demo: Handle GDK_TOUCH_CANCEL in event-axes demoCarlos Garnacho2016-03-141-1/+2
| | | | | | It is a thing in wayland, which means we leave traces from older touches when the compositor takes over touch sequences in order to handle a gesture.
* gtk-demo: Fix a typoMatthias Clasen2016-03-081-1/+1
|
* gtk-demo: Update foreigndrawing example some moreMatthias Clasen2016-03-081-10/+11
| | | | | The scrollbar changes need to take the theme's negative margins into account.
* gtk-demo: Try to fix foreigndrawing scrollbarsMatthias Clasen2016-03-081-2/+11
| | | | | The node hierarchy and sizing has changed with the gadgetization of range widgets.
* gtk-demo: Use <accelerator>Matthias Clasen2016-03-051-0/+1
| | | | Add an example of <accelerator> use in the builder example.
* gtk-demo: Fix up the inline-toolbar exampleMatthias Clasen2016-03-041-0/+1
| | | | | The inline toolbar in the style classes demo should use the icons toolbar-style to ensure that the buttons are square.
* gtk-demo: Strip newlines from g_warning and g_errorMatthias Clasen2016-02-284-6/+6
| | | | g_logv adds one for us already.
* gtk-demo: Simplify ui files a bitMatthias Clasen2016-02-285-47/+47
| | | | Strip unneeded IDs.
* gtk-demo: Put hte app menu in a separate fileMatthias Clasen2016-02-274-16/+21
| | | | No need to cram it in the same file as the main window.
* gtk-demo: Add some padding in sidebarMatthias Clasen2016-02-271-1/+5
| | | | | Add some padding on the right, to avoid the scrollbar and make the sidebar appear balanced.
* widget-factory: Make the sliding opt-inMatthias Clasen2016-02-272-1/+26
| | | | | The sliding is a little disorienting, so turn it off by default and add a checkbutton for it in the gear menu.
* gtk3-demo: Update cssMatthias Clasen2016-02-273-63/+8
| | | | | Clean up any deprecation warnings from the css examples in gtk3-demo.
* widget-factory: transition pagesMatt Watson2016-02-251-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=762642
* widget-factory: Add myselfBenjamin Otte2016-02-151-0/+13
| | | | | Actually, I wanted to have a radio toggle cell renderer for testing. But hey, the commit message is supposed to say the important things!
* gtk-demo: add menu separator demoCaolán McNamara2016-02-151-10/+15
| | | | | | doesn't much look like the menu separator in a real menu though. https://bugzilla.gnome.org/show_bug.cgi?id=762080
* gtk-demo: add combobox demosCaolán McNamara2016-02-151-1/+50
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=762080
* gtk-demo: add menu check and radio examplesCaolán McNamara2016-02-151-7/+52
| | | | | | | note that if the "menu" context has no parent then the GTK_STATE_FLAG_NORMAL menu entries are invisible against the white background. https://bugzilla.gnome.org/show_bug.cgi?id=762080
* gtk3-demo: Fontify all source filesMatthias Clasen2016-02-141-24/+27
|
* gtk-demo: Streamline applicationMatthias Clasen2016-02-145-106/+102
| | | | | Avoid the odd #ifdef STANDALONE construction; we can show multiple source files nowadays.
* gtk-demo: Fix the size saving for CSDMatthias Clasen2016-02-141-4/+1
| | | | | | We need to use gtk_window_get_size to get the correct size that we can pass to gtk_window_set_default_size regardless of CSD or not.
* gtk-demo: Add window size saving exampleMatthias Clasen2016-02-133-23/+148
| | | | | | Implement the recommendations from https://wiki.gnome.org/HowDoI/SaveWindowState in the Application Class example.
* gtk-demo: modernize the application demoMatthias Clasen2016-02-132-165/+186
| | | | | Subclass GtkApplication and GtkApplicationWindow and use a template.