summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* widget-factory: Rename outline radius in cssMatthias Clasen2015-12-221-1/+1
| | | | Rename all outline*radius properties to -gtk-outline*radius.
* widget-factory: Make things compile againBenjamin Otte2015-12-161-1/+1
| | | | | | | 1e1064398c7607d197c563c42f8901ac67982a9f broke the build. When I run make, I should make sure to run it in the right directory. And not in the gtk/ subdirectory that will never build widget-factory...
* widget-factory: Disconnect clipboard watcher on closeBenjamin Otte2015-12-161-2/+2
| | | | | | The clipboard emit events after the button we connected it to was already destroyed (on application close for example), so make sure we don't try to use that dead button.
* gtk-demo: Add another shortcuts window exampleMatthias Clasen2015-12-154-0/+210
| | | | | The boxes shortcuts, taken straight from boxes. This demonstrates a problem with view filtering.
* gtk-demo: Add an example for direction-dependent shortcutsMatthias Clasen2015-12-081-0/+18
|
* widget-factory: Add an entry completionMatthias Clasen2015-12-051-0/+14
| | | | This was missing so far.
* gtk-demo: Plug a memory leakMatthias Clasen2015-12-051-0/+1
|
* shortcuts: Extend the accelerator syntax moreMatthias Clasen2015-12-041-0/+38
| | | | | | Cover cases like left+right control, and render them nicely. The gtk3-demo builder shortcuts example shows the new possibilities.
* icon-browser: Stop using GtkMisc propertiesTimm Bäder2015-11-301-22/+2
| | | | | | | Instead of xpad/ypad of 4 for every widget, just increase the row-spacing and column-spacing by 8. https://bugzilla.gnome.org/show_bug.cgi?id=758790
* icon-browser: Use proper "times" characterTimm Bäder2015-11-301-5/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=758790
* icon-browser: baseline-align the icon size labelsTimm Bäder2015-11-301-5/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=758790
* gtk-demo: Stop using GtkShortcutsGestureMatthias Clasen2015-11-235-372/+8
| | | | Use the new predefined gestures, and GtkShortcutsShortcut.
* gtk-demo: Show all built-in gesture imagesMatthias Clasen2015-11-221-0/+51
| | | | | | Show all the predefined gestures which have enum values in GtkShortcutType. This also demonstrates the gesture functionality of GtkShortcutsShortcut.
* gtk-demo: Fix selection in css basics demoTimm Bäder2015-11-211-1/+1
|
* gtk-demo: Fix the CSS examplesMatthias Clasen2015-11-174-15/+13
| | | | The CSS needs small adjustments after all the CSS node changes.
* gtk-demo: Fix the assistant exampleMatthias Clasen2015-11-171-0/+1
| | | | | GtkEntry respects valign now, so we need to set it to something other than fill.
* Add gtk_native_dialog_destroy()Alexander Larsson2015-11-111-0/+1
| | | | | | | Its very easy to get extra references to the NativeDialog so that when you release your last reference any visible dialog is not hidden. We handle this by adding a destroy method similar to how you destroy regular toplevels.
* TextView: Use saner coordinate space in draw_layer.Alexander Larsson2015-11-101-1/+1
| | | | | | | | | | | | | | | | | | When I added the draw_layer vfunc it accidentally got passed a cairo_t that was configured with to draw in the viewport coordinate space (rather than the buffer coordinate space). This makes things unnecessary complex, because you have to convert between the two. The pixel cache is shared between the text and the layers, so there is no way to use draw_layer to get a stationary overlay effect. Thus it makes much more sense for the draw_layer vfunc to draw in the buffer space. Just changing this would break ABI for existing code, so this is fixed by adding new layer types and deprecating the old ones. Also, we use the new layer types to fix gtk3-widget-factory. https://bugzilla.gnome.org/show_bug.cgi?id=757856
* widget-factory: Add another notebook exampleMatthias Clasen2015-11-081-0/+112
| | | | This example shows a scrollable notebook with action widgets.
* gtk3-demo: Add open file to the application demowip/native-file-chooserAlexander Larsson2015-11-051-3/+87
|
* gtk3-demo: Drop .sidebar classMatthias Clasen2015-11-051-3/+0
| | | | | This makes no visual difference at all, and the .sidebar class is causing some complications with the current CSS node transition.
* widget-factory: Stop using deprecated APIMatthias Clasen2015-11-031-1/+1
|
* gdk: Deprecate gdk_display_get_screenRobert Ancell2015-10-271-1/+1
|
* gtk-demo: Add a range example to the shortcuts demoMatthias Clasen2015-10-221-0/+13
| | | | This shows off the new range display capability that I just added.
* widget-factory: Add an automatic help overlayMatthias Clasen2015-10-215-6/+231
| | | | | | This commit add some more keyboard shortcuts to gtk3-widget-factory, and adds a help overlay documenting them. This examle uses the automatic resource loading support in GtkApplication.
* gtk-demo: Add a GtkShortcutsWindow demoMatthias Clasen2015-10-219-0/+1273
| | | | | This example implements the mockups from the help overlay design, showing off the various features of GtkShortcutsWindow.
* Don't use g_list_next in gtk3-demoMatthias Clasen2015-10-201-2/+2
| | | | We generally just use ->next directly.
* Return a value from ::command-line handlerMatthias Clasen2015-09-281-2/+4
| | | | | | The signal expects a return value, so give it one. https://bugzilla.gnome.org/show_bug.cgi?id=755692
* widget-factory: Remove libcanberra supportBenjamin Otte2015-09-212-13/+2
| | | | | | GTK cannot depend on libcanberra-gtk which depends on GTK. This causes a circular dependency and is especially neat if installed GTK is different enough from uninstalled GTK.
* gtkdemo: Plug leaks in listbox demoTimm Bäder2015-09-191-0/+25
|
* Plug another memory leakMatthias Clasen2015-09-151-0/+1
|
* Plug a memory leakMatthias Clasen2015-09-151-0/+1
|
* gtk-demo: Fix drawing of gestures demo feedback on CSD windowsCarlos Garnacho2015-09-151-3/+4
| | | | | It was wiping the translation initially applied to the cairo_t, so pick that up first before applying our own matrix changes.
* build: Clean Up Visual Studio Project GenerationChun-wei Fan2015-09-152-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | Use the common automake module from the previous commit in the Makefile.am's, which means that the Makefile.am's in gdk/ and gtk/ can be cleaned up as a result. As a side effect, the property sheet that is used to "install" the build results and headers can now be generated in terms of the listing of headers to copy during 'make dist', where we can acquire most of the list of headers to "install", so that we can largely avoid the situation where the property sheet files are not updated in time for this, causing missing headers when this build of GTK+ is being used. Also use the Visual Studio Project file generation for the following projects: gtk3-demo gtk3-demo-application gtk3-icon-browser gdk-win32 gdk-broadway gail-util So that the maintenace of these project files can be simplified as well. https://bugzilla.gnome.org/show_bug.cgi?id=681965
* Add missing $(EXEEXT)Kouhei Sutou2015-09-142-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=754629
* gtk-demo: Fix builder exampleMatthias Clasen2015-09-141-0/+5
| | | | | This example is still using a GtkVBox, and it happened to be broken by gtk-builder-tool simplify.
* Update all ui files againMatthias Clasen2015-09-1312-218/+218
| | | | | Replace translatable="1" by translatable="yes" so xgettext stays happy and extracts the strings.
* widget-factory: Simplify the ui fileMatthias Clasen2015-09-121-832/+832
|
* gtk-demo: Simplify ui filesMatthias Clasen2015-09-1213-1281/+709
|
* gtk-demo:Add a --list optionMatthias Clasen2015-09-091-0/+32
| | | | This just shows the available examples and then exists.
* gtk-demo: Make --autoquit a simple optionMatthias Clasen2015-09-091-5/+5
| | | | | No real need to specify the amount of delay, just make this a plain boolean.
* gtk-demo: Add a way to launch individual demosMatthias Clasen2015-09-061-1/+69
| | | | | | Add a --run option which takes the name of an example and launches it. Also add a --autoquit option which can be used to quit after a given number of seconds.
* gtk-demo: Change an accelMatthias Clasen2015-08-291-1/+1
| | | | | | The application demo had a "Blue" and a "Bold" menuitem both with the Ctrl-B accel. This is confusing, since only one of them works. Change the accelerator for bold to Ctrl-Shift-B, so they both work.
* gtk-demo: Update listbox example with longer listBenjamin Otte2015-08-241-8/+388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add all 388 tweets of the @GTKtoolkit account. This shows the performance behavior of the listbox (not good with that many rows) and allows us to quickly notice when things get worse (or better). And just so I have a place where I can dump how I generated this file: First, I got Timm Bäder to download me the json for the twitter feed into a file gtk.json, then I ran the jq tool on it like this: jq ".[] | if .retweeted_status then .retweeted_status.user.name + \"|\" + .retweeted_status.user.screen_name else .user.name + \"|\" + .user.screen_name end + \"|\" + .text" gtk.json | cat -n | sed "s/\\s*\([0-9]*\)\t\"\(.*\)\"/\\1|\\2/" > messages.start jq ".[] | .created_at" gtk.json | sed "s/\"\(.*\)\"/\1/" | while read in; do date +%s -d "$in"; done > dates jq ".[] | \"0|\" + if .retweeted_status then .user.screen_name else \"\" end + \"|\" + (.favorite_count | tostring) + \"|\" + (.retweet_count | tostring)" gtk.json | sed "s/\"\(.*\)\"/\\1/" > messages.end paste -d\| messages.start dates messages.end > messages.txt This whole machinery of going through 3 intermediate files was only necessary to onvert the dates from ISO format to unix timestamps, otherwise this could have been a single line.
* gtk-demo: Order tweets newest first in listbox exampleBenjamin Otte2015-08-241-1/+1
|
* gtk-demo: Add a model button demoMatthias Clasen2015-08-194-0/+242
| | | | | This shows how to hook model buttons up to various action types, or how to create them manually.
* gtk-demo: Use top/bottom-margin for text viewsMatthias Clasen2015-08-172-32/+6
| | | | | This lets us replace the hack of inserting tags in the first and last paragraph to set a above/below-paragraph space.
* widget-factory: Add a lock buttonMatthias Clasen2015-08-102-84/+199
|
* gtk-demo: Add a scale exampleMatthias Clasen2015-07-314-0/+186
|
* widget-factory: Test busy stateMatthias Clasen2015-07-302-1/+37
| | | | | Makes it easy to test insensitive state of widgets.i Also exposes brokenness in the shell busy indicator...