summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* widget-factory: Add an inline toolbar exampleMatthias Clasen2016-02-132-12/+182
| | | | | This pattern is still used in applications, so we should have it represented here to keep it working well.
* gtk-demo: spinbutton and menubar examplesCaolán McNamara2016-02-121-1/+86
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=761900
* gtk-demo: Add more foreign drawing examplesMatthias Clasen2016-02-101-22/+27
| | | | | Add a notebook with an active tab. Based on a patch by Caolan McNamara.
* gtk-demo: attempt at a notebook with active box-shadow in tabCaolán McNamara2016-02-101-1/+48
|
* gtk-demo: Add a menu to foreigndrawingCaolán McNamara2016-02-101-8/+52
| | | | | | | and demo that the block arrows require GTK_STATE_FLAG_DIR_LTR or GTK_STATE_FLAG_DIR_RTL set to appear https://bugzilla.gnome.org/show_bug.cgi?id=761828
* gtk-demo: Improve the tag implementationMatthias Clasen2016-02-101-14/+16
| | | | | Add margins and make it so that clicking on margins next to links does not activate them.
* widget-factory: Update levelbar exampleMatthias Clasen2016-02-071-0/+5
| | | | Set reasonable level offsets.
* demos: Modify "Change display" demo to use seat grabsCarlos Garnacho2016-01-281-7/+6
| | | | | The window picking feature was done through a pointer grab, replace it by a seat grab on pointing devices.
* build: Missing build flagsEmmanuele Bassi2016-01-261-2/+2
| | | | | The compiler and linker flags variables were renamed in the previous commit.
* demo: Link against HarfbuzzEmmanuele Bassi2016-01-261-3/+14
| | | | | | | | | | | | | | | | | | | | | | | The font features demo started calling the Harfbuzz API directly starting from commit 9de3b24c205f1c647292a490f92f21a776b931a4. Harfbuzz is an implicit dependency of Pango on some platforms, but it's not part of the public dependencies; this means that we cannot expect to link to Pango and automatically get Harfbuzz symbols to link against — especially when things like --as-needed are in play. This change triggered build failures on non-Unix platforms, fixed by commit 2a9967731a3b77b102ada633c39b5a35efc80957, as well as build failures in Continuous, with this error message: /usr/lib/gcc/x86_64-gnomeostree-linux/4.9.3/../../../../x86_64-gnomeostree-linux/bin/ld: font_features.o: undefined reference to symbol 'hb_tag_to_string' //lib/libharfbuzz.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status In order to get the font features demo to build everywhere we should take an explicit, though optional, check on Harfbuzz, and conditionally build the font features demo with the right compiler and linker flags.
* demos: Don't build font features demo on non-UNIXChun-wei Fan2016-01-261-3/+2
| | | | | | The fonts features demo now uses fontconfig APIs via PangoFT2, which makes the code not build on non-Linux, so only include this demo in the build on UNIX.
* gtk-demo: Expand font features demoMatthias Clasen2016-01-252-352/+1373
| | | | | | | | Add more features to the list, allow selecting script/language from the set that is supported by the font, indicate which features are present in the font for the selected script/language, and expand the default specimen to cover latin, cyrillic and greek.
* One forgotten renameMatthias Clasen2016-01-241-1/+1
| | | | Rename app-menu.ui to menus.ui in EXTRA_DIST too.
* icon browser: Load app menu automagicallyMatthias Clasen2016-01-244-11/+4
| | | | | No need to manually create a builder and pass the resource to it, just follow the conventions and have GtkApplication do it for us.
* widget-factory: Add a color editor exampleMatthias Clasen2016-01-232-5/+40
|