summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* enums: Change GtkIconSize valuesMatthias Clasen2017-11-154-4/+0
| | | | | The new values are the ones we intend to keep. The old ones had duplicated meanings and nobody knew which one to take.
* examples: Use right function to query sizeBenjamin Otte2017-11-101-2/+2
|
* stylecontext: Port to use display instead of screenBenjamin Otte2017-10-311-3/+3
|
* examples: Use GdkEvent APIMatthias Clasen2017-09-191-5/+17
|
* Drop Autotools buildEmmanuele Bassi2017-08-1412-459/+0
| | | | | We are officially switching to Meson as the default build system for GTK+.
* gtk: Mass delete all GtkWidget event mask APICarlos Garnacho2017-05-251-8/+0
| | | | | | | | | | We now rely on toplevels receiving and forwarding all the events the windowing should be able to handle. Event masks are no longer a way to determine whether an event is deliverable ot a widget. Events will always be delivered in the three captured/target/bubbled phases, widgets can now just attach GtkEventControllers and let those handle the events.
* build: Improve consistency of the "coding" styleEmmanuele Bassi2017-05-032-6/+8
| | | | | | We're mixing a lot of styles in the Meson build files. This is an attempt at making everything slightly more consistent in terms of whitespace and indentation.
* meson: examples: updateTim-Philipp Müller2017-05-0313-191/+65
| | | | | Mostly style changes. Don't create resource source files with spaces in them, that's tempting our luck.
* Build examplesTimm Bäder2017-05-0312-0/+271
|
* examples/drawing: Don't call gtk_main_quitTimm Bäder2017-05-031-2/+0
| | | | | This is a GtkApplication so it will do the right thing when closing the window.
* box: Remove fill child propertyTimm Bäder2017-04-251-2/+2
| | | | GtkWidget:halign and GtkWidget:valign are sufficient
* box: Remove expand child propertyTimm Bäder2017-04-251-5/+3
| | | | GtkWidget already has hexpand/vexpand properties.
* Remove gtk_widget_show_allTimm Bäder2017-01-208-15/+10
|
* Update callersMatthias Clasen2017-01-191-1/+1
| | | | Adapt all our tests and examples to the new initialization api.
* Make gdk.la and gsk.la a noninst helper libraryAlexander Larsson2016-10-2611-11/+0
| | | | | | | | This merged gtk, gdk and gsk into one library, making it possible to have internal private APIs between gtk them, as well as producing more efficient code. https://bugzilla.gnome.org/show_bug.cgi?id=773100
* cssprovider: Remove GError out argument from load functionsBenjamin Otte2016-10-171-1/+1
| | | | People should use the GtkCssProvider::parsing-error signal instead.
* API: container: Remove gtk_container_set_border_width()Benjamin Otte2016-10-165-6/+0
|
* plugman: Stop using gtk_override_colorTimm Bäder2016-10-161-16/+34
|
* box: Remove 'padding' child propertyTimm Bäder2016-10-161-2/+2
|
* Rename Makefile references from 3.0 to 4.0Matthias Clasen2016-10-0712-24/+24
| | | | | This is almost certainly incomplete. Needs careful scrutiny
* bloatpad: replace single quotes with double quotes in menus.uiPiotr Drąg2016-09-241-39/+39
| | | | | Double quotes are more friendly to some l10n tools, and this sets a good example for application authors to follow.
* examples: use G_DECLARE_FINAL_TYPE in applicationsMohammed Sadiq2016-09-1050-279/+27
| | | | | | | | G_DECLARE_FINAL_TYPE was introduced in glib 2.44. We shall use that now so that lots of boilerplate code can be reduced. https://bugzilla.gnome.org/show_bug.cgi?id=770278
* Fix example MakefilesMatthias Clasen2016-07-0310-10/+10
| | | | | | | Put OBJS before LIBS on the commandline to make things work better. https://bugzilla.gnome.org/show_bug.cgi?id=768142
* bloatpad: Make shortcuts window updateMatthias Clasen2016-04-171-7/+48
| | | | | This tests the just added functionality to make shortcuts track changes in their actions accelerators.
* Add a help overlay to bloatpadMatthias Clasen2016-04-174-1/+56
| | | | | This will let us explore the (non-)interaction between help overlays and editing shortcuts.
* examples: Strip newlines from g_warning and g_errorMatthias Clasen2016-02-281-2/+2
| | | | g_logv adds one for us already.
* tutorial: Drop excessive margin from headerbarMatthias Clasen2016-02-279-9/+0
| | | | | It is no longer necessary to add extra margins around the center child in a headerbar.
* examples: Clean up the standalone MakefilesEmmanuele Bassi2015-05-2610-72/+81
| | | | | Do not hardcode GCC as the compiler; use $(shell) expansion instead of backticks; split the built source into its own variable.
* Update hello-world.c to GtkApplication, documentBastian Ilsø2015-03-091-81/+23
|
* Getting-started: port drawing.c to GtkApplicationBastian Ilsø2015-02-231-19/+28
|
* Updated grid-packing to GtkApplication.Bastian Ilsø2015-02-151-18/+20
|
* Plug another memory leak in plugmanMatthias Clasen2015-02-011-1/+4
|
* plugman: Fix leaking attribute stringFelix Riemann2015-02-011-5/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=743770
* Get started: port example-0.c to GtkApplicationBastian Ilsø2015-01-281-11/+18
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=743638
* GtkMenuTracker: add hidden-when='macos-menubar'Ryan Lortie2014-12-221-0/+2
| | | | | | | | | | | | | | | | Provide a mechanism for hiding the "Quit", "About" and "Preferences" menu items from the normal places in a traditional menubar layout (in the File and Edit menus) when the menu is being rendered in the Mac OS menubar. These items can already be found in the application menu. With this feature, applications can now define a single menu to use in all 'traditional' scenarios. Use this new attribute in Bloatpad. https://bugzilla.gnome.org/show_bug.cgi?id=741610
* Trivial off-by-one fixMatthias Clasen2014-12-081-1/+1
| | | | We have a tenth example.
* examples: Fix clean rule in stand alone MakefilesEmmanuele Bassi2014-12-0610-7/+16
| | | | Remove all the built files, including the exampleapp binary.
* examples: Add stand alone Makefile for application10Emmanuele Bassi2014-12-061-0/+33
| | | | Missed out on the last application examples.
* Use resources for iconsMatthias Clasen2014-12-021-17/+14
| | | | | | This fixes icons after the recent directory reshuffling, and is just the right thing to do, since these icons are in resources anyway.
* Improve action-namespace exampleMatthias Clasen2014-12-021-1/+3
| | | | | This needs to have some space around the button for the popover to show up.
* docs: Add a README to the examples directoryEmmanuele Bassi2014-12-021-0/+12
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=741041
* Add standalone Makefile for the examplesEmmanuele Bassi2014-12-029-0/+257
| | | | | | | We want to allow people to build the examples easily, without necessarily requiring them to build the whole of GTK+. https://bugzilla.gnome.org/show_bug.cgi?id=741041
* Beautify example Makefiles a bitMatthias Clasen2014-11-2910-187/+177
|
* Make include order consistent in example applicationsMatthias Clasen2014-11-2820-20/+40
| | | | | Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=740537
* examples: Add deprecation guardsBenjamin Otte2014-10-121-0/+2
| | | | | | | | Apparently it's not possible in GtkTextView to say "this style should apply to all text, including newly inserted text. Or I'm just too stupid to use its API. So instead, keep using override_color().
* bloatpad: Add a close button to the accel dialogMatthias Clasen2014-07-191-0/+7
|
* Update examples for new open-menu iconMatthias Clasen2014-07-153-21/+3
|
* Use view-content-menu-symbolic in example appsMatthias Clasen2014-07-083-3/+3
|
* build: Fix make distRico Tzschichholz2014-07-081-0/+2
|
* Bloatpad: fix up iconsMatthias Clasen2014-07-071-5/+5
| | | | | | The references to png files were doubly broken: first, by the icon theme changes, and more recently, by the move of bloatpad. Fix them up.