summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* bloatpad: use Gtk's automated menu loadingRyan Lortie2014-07-074-9/+4
| | | | | | | | We move our menus.ui file into Gtk's namespace so that it will get picked up. Accordingly, we no longer have to do any of the work for ourselves... https://bugzilla.gnome.org/show_bug.cgi?id=722092
* bloatpad: use resourcesRyan Lortie2014-07-074-84/+105
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=722092
* bloatpad: move into private subdirRyan Lortie2014-07-073-2/+17
| | | | | | | | | | | Move bloatpad to ./examples/bp/ so that we can start treating it as more of a "normal" app instead of just jamming everything into a single .c file. We don't use the name "bloatpad" for the directory in order not to create 'git pull' pain with the probably-already-existing executable of the same name. https://bugzilla.gnome.org/show_bug.cgi?id=722092
* examples: Don't use gtk_application_add_acceleratorMatthias Clasen2014-05-221-2/+3
| | | | It has been deprecated.
* Bloatpad: port to new accel apiMatthias Clasen2014-05-061-11/+21
|
* example: Use popover for gears menuMatthias Clasen2014-04-173-0/+3
|
* example: Make gears button squareMatthias Clasen2014-04-173-0/+9
| | | | Another application of image-button.
* example: Make search button squareMatthias Clasen2014-04-174-0/+12
| | | | The image-button style class takes care of it.
* example: Modernize the prefs dialogMatthias Clasen2014-04-1710-110/+5
| | | | | We should show the current best practice for this kind of dialog, and use a headerbar with a window close button.
* example: Port to gtk_application_set_accels_for_actionMatthias Clasen2014-04-1714-7/+28
| | | | | Instead of hardcoding an accelerator in the ui file, use gtk_application_set_accels_for_action.
* example: Fix indentationMatthias Clasen2014-04-173-113/+120
|
* example: Fix up marginsMatthias Clasen2014-04-179-0/+9
| | | | | | This makes the code match what we show in the screenshots. This broke when headerbars were changed to allow titles to extend into the margin.
* example: Don't set a nonexisting propertyMatthias Clasen2014-04-171-1/+0
| | | | | The GtkHeaderBar::show-fallback-app-menu property does not exist, and isn't needed anyway.
* bloatpad: test hidden-when=''Ryan Lortie2014-01-081-2/+36
| | | | | | | | | | | | | | | Cook up some silly cases to test out the hidden-when='' attribute. - make sure hidden-when='action-missing' shows/hides items based on actions being created and destroyed - make sure hidden-when='action-disabled' shows/hides items based on actions being enabled and disabled - make sure hidden-when='action-missing' doesn't hide items when the action is merely disabled https://bugzilla.gnome.org/show_bug.cgi?id=688421
* Add icon menu to bloatpad.William Hua2014-01-082-0/+73
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710351
* bloatpad: fix the action associated with the notificationGiovanni Campagna2014-01-061-2/+15
| | | | | | | | Notifications can only be associated with application actions, but clear is a window action. Introduce a "clear-all" action that forwards to clear on all windows. https://bugzilla.gnome.org/show_bug.cgi?id=721633
* bloatpad: test inhibitRyan Lortie2013-12-161-14/+33
| | | | Add an inhibit for logout when there is context in the text buffer.
* headerbar: Support all kinds of CSD decorationsJasper St. Pierre2013-12-121-1/+0
| | | | | | | Move the gtkwindow.c CSD code into GtkHeaderBar, and make it triggerable by the show-close-button property, and remove shows-fallback-app-menu. https://bugzilla.gnome.org/show_bug.cgi?id=720233
* Add the new exampleapp to the docsMatthias Clasen2013-11-161-1/+0
|
* Add another example applicationMatthias Clasen2013-11-1615-1/+932
| | | | | This new step sets the headerbar as titlebar, and enables fallback for the app menu.
* Test headerbar app menu fallbackMatthias Clasen2013-11-161-23/+12
| | | | | | Make the sunny example useful by giving it a header bar with app menu fallback. To test this under gnome-shell, set APP_MENU_FALLBACK=1 in the environment.
* Add some (silly) GNotification exampleMatthias Clasen2013-10-211-1/+37
| | | | Bloatpad can now notify you.
* bloatpad: test dynamic accelsRyan Lortie2013-10-151-5/+115
| | | | ...this stuff will be in the action description soon.
* Add example app for GtkSearchBarXavier Claessens2013-10-102-1/+60
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=709745
* action-namespace example: use non-deprecated functionRyan Lortie2013-10-011-2/+1
| | | | | g_simple_action_group_add_entries() is deprecated since we added the GActionMap interface, so use its equivalent function instead.