summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* widget-factory: Remove double border around textviewTimm Bäder2019-10-091-1/+11
| | | | Replace the scrolledwindow border with two separator on top/bottom.
* gtk-demo: Fix up sidebar demo styleTimm Bäder2019-10-091-4/+2
| | | | | Remove a superfluous separator and add the icon-dropshadow class to the gtk logo
* demo: Don't manually add labels to menubuttonsTimm Bäder2019-10-091-18/+3
|
* demo: Fix modelbutton demoTimm Bäder2019-10-091-3/+0
|
* widget-factory: Skip xml files in background selection dialogTimm Bäder2019-10-091-1/+4
| | | | | The default contains a xml file for an animated background, so don't try loading it as a pixbuf.
* modelbutton: ReworkTimm Bäder2019-10-091-3/+0
| | | | | | | Create all the widgets on demand and use a box layout to arrange them instead of manual size allocation. Also don't inherit from GtkButton
* Merge branch 'nested-popover-menu' into 'master'Matthias Clasen2019-09-101-7/+18
|\ | | | | | | | | Nested popover menus See merge request GNOME/gtk!1076
| * widget-factory: Add more submenusMatthias Clasen2019-09-081-7/+18
| | | | | | | | | | Split the "Checks & Radios" submenu in the menubar into two, so we can test opening multiple submenus.
* | icontheme: Remove gtk_icon_info_load_textureTimm Bäder2019-09-091-1/+1
| | | | | | | | It's the same as load_icon now.
* | icontheme: Return paintables from more APITimm Bäder2019-09-092-8/+6
| |
* | icontheme: Return textures from load_icon{,_for_scale}Timm Bäder2019-09-091-9/+6
| |
* | widget-factory: Use proper setter to set has-arrowTimm Bäder2019-09-091-1/+1
| |
* | icontheme: Add error argument to _load_textureTimm Bäder2019-09-091-1/+1
| | | | | | | | Loading an icon might fail.
* | glarea: Fix buffer initializationTimm Bäder2019-09-091-1/+1
| | | | | | | | | | | | | | This only worked when the vao id and the buffer id accidentally matched, for example when running gtk4-demo with --run=glarea Fixes #2042
* | infobar: Inherit from GtkContainerTimm Bäder2019-09-091-1/+1
| | | | | | | | | | | | | | infobars being a GtkBox doesn't make sense. Also implement infobars without exposing internal children. Closes #1957 because it adds the bottom border.
* | widget-factory: Add a spinbutton in a listTimm Bäder2019-09-091-7/+3
| |
* | label: Remove "line" from wrap propertiesTimm Bäder2019-09-094-8/+8
|/ | | | | The property names are "wrap" and "wrap-mode", so it doesn't make sense that the accessors refer to line_wrap and line_wrap_mode.
* Minor typos in the Documentation (a/an)Дилян Палаузов2019-08-253-3/+3
|
* scale: Add a destroy notify to set_format_value_funcTimm Bäder2019-08-151-2/+2
| | | | Closes #2098
* scale: Replace format-value signalTimm Bäder2019-08-092-8/+10
| | | | | | | | | | | | There is no reason for this to be a signal, since multiple handlers don't make sense anyway. It was also broken because the scale needs to know when a signal handler is added so it can update the value representation. Replace the signal with a set_format_value_func function which allows us to do that. Fixes #113
* widget factory: add a tooltip to a button in a popoverTimm Bäder2019-07-301-0/+1
|
* font rendering demo: Make boxes optionalMatthias Clasen2019-07-262-35/+84
|
* font rendering demo: Show unrounded extentsMatthias Clasen2019-07-251-12/+14
| | | | This makes more sense.
* font rendering: Show ink rect tooMatthias Clasen2019-07-251-7/+15
|
* Improve the font rendering demoMatthias Clasen2019-07-251-6/+54
| | | | Show the pixel grid, extents, and baseline.
* Add a font rendering demoMatthias Clasen2019-07-254-0/+401
| | | | | | | | | This renders a magnified version of the text, to make the effect of various font rendering options more visible. It also shows the phases of subpixel rendering, if you have a recent pango and cairo.
* gtk-demo: Fix a crashMatthias Clasen2019-07-251-1/+1
|
* fishbowl: Plug a small leakTimm Bäder2019-07-131-0/+1
|
* node editor: Manually unrealize all created renderersTimm Bäder2019-07-131-0/+8
| | | | This has not been a problem before since we were leaking them.
* Merge branch 'wip/baedert/for-master' into 'master'Matthias Clasen2019-07-091-0/+2
|\ | | | | | | | | Improve the valgrind experience See merge request GNOME/gtk!984
| * widget factory: Plug a memory leakTimm Bäder2019-07-071-0/+2
| |
* | demos/constraint-editor: Fix linking on MSVC buildsChun-wei Fan2019-07-081-0/+1
|/ | | | | | We must apply the /entry:mainCRTStartup linker flag in order to link GTK apps in pure GUI form. This follows what is done in demos/gtk-demo, etc.
* constraint editor: Implement loadingMatthias Clasen2019-07-021-14/+140
| | | | | Allow to reread the ui builder files we write out. Just barely.
* constraints editor: Stop naming constraintsMatthias Clasen2019-07-024-37/+54
| | | | | We don't have a field for the name in ui files, so stop naming constraints.
* constraint editor: Implement savingMatthias Clasen2019-07-027-0/+247
| | | | Save to a ui file.
* constraint editor: Use name propertiesMatthias Clasen2019-07-024-44/+39
|
* constraint editor: Use the list modelsMatthias Clasen2019-07-024-132/+121
| | | | | Instead of handrolling our own list models, use the ones provided by GtkConstraintLayout.
* Merge branch 'wip/ebassi/constraint-layout' into 'master'Matthias Clasen2019-07-0225-0/+3306
|\ | | | | | | | | | | | | Add constraint-based layout manager Closes #1090 See merge request GNOME/gtk!973
| * constraint editor: Allow dragging childrenMatthias Clasen2019-07-011-2/+103
| | | | | | | | | | We add a weak constraint for the position and update it as the widget is dragged.
| * constraint editor: Enable max size for guideMatthias Clasen2019-07-011-28/+97
| | | | | | | | | | Also, use the apis we have now, and make the spin buttons display 'unset' values as such.
| * Add a constraint editor demoMatthias Clasen2019-07-0120-0/+2431
| | | | | | | | | | This is an initial cut at providing a tool for interactive exploration of constraints.
| * constraint guide: Make strength tweakableMatthias Clasen2019-07-011-0/+1
| | | | | | | | | | | | | | The strength for the natural width can be used as a tie-breaker to make instable systems behave in a more predictable way. This can be seen in the simple constraints demo in gtk-demo.
| * constraints demo: Update commentsMatthias Clasen2019-07-011-9/+16
| |
| * constraints demo: Give space a nameMatthias Clasen2019-07-011-0/+1
| | | | | | | | Lets call it 'space'.
| * demo: Use constraint guide apiMatthias Clasen2019-07-011-6/+4
| | | | | | | | | | Use proper api to create and set up the guide, and also try max-width.
| * Add a C convenience function for VFL constraintsEmmanuele Bassi2019-06-301-10/+5
| | | | | | | | | | The dictionary-based function is convenient for language bindings, but C developers will feel more at home with a variadic arguments list.
| * Add Constraints/VFL demoEmmanuele Bassi2019-06-303-0/+172
| | | | | | | | | | Shows how to describe constraints using VFL instead of constructing objects manually.
| * Add an interactive constraints demoMatthias Clasen2019-06-304-1/+248
| |
| * Make the constraints demo more interestingMatthias Clasen2019-06-301-0/+6
| | | | | | | | | | Add a max size to the buttons, to force the space to open up.
| * Add GtkConstraintGuideMatthias Clasen2019-06-301-1/+20
| | | | | | | | This is meant to be a flexible space.