summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* examples: Use git.mkJasper St. Pierre2013-08-079-0/+18
|
* Make examples use search-changed signalMatthias Clasen2013-08-023-3/+3
| | | | This updates the examples for the new GtkSearchEntry api.
* example: Use declared callbacks where possibleMatthias Clasen2013-07-2715-82/+118
| | | | | Replace manual signal connections with signal handlers declared in the ui file, where possible.
* Another round of template binding api changesMatthias Clasen2013-07-2611-36/+36
| | | | | | | | | | | We rename the gtk_widget_class_bind_template_child{_internal} macros by appending a _private to their name. Otherwise, it would be too magic to pass the 'public' names as arguments, but affect a member of the Private struct. At the same time, Add two new macros with the old names, gtk_widget_class_bind_template_child{_internal} that operate on members of the instance struct.
* Rename the widget template APIEmmanuele Bassi2013-07-2611-36/+36
| | | | | | | | | | | | | | | | | | | | The macros and functions are inconsistently named, and are not tied to the "template" concept - to the point that it seems plausible to use them without setting the template. The new naming scheme is as follows: gtk_widget_class_bind_template_child_full gtk_widget_class_bind_template_callback_full With the convenience macros: gtk_widget_class_bind_template_child gtk_widget_class_bind_template_child_internal gtk_widget_class_bind_template_callback https://bugzilla.gnome.org/show_bug.cgi?id=700898 https://bugzilla.gnome.org/show_bug.cgi?id=700896
* widget: Use a real offset in gtk_widget_class_automate_childAlexander Larsson2013-07-2611-36/+36
| | | | | | | | | | Using an offset from the struct means you can have children in both the public and private (via G_PRIVATE_OFFSET) parts of the instance. It also matches the new private macros nicer. https://bugzilla.gnome.org/show_bug.cgi?id=702563 Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Getting started: Add an example for property actionsMatthias Clasen2013-07-2415-1/+914
| | | | This example demonstrates property actions and object binding.
* Getting started: Add icon and desktop fileMatthias Clasen2013-07-243-0/+15
| | | | | | | | Setting up the icon and desktop file is a pretty central part of making an application work, so we should do it for our example. The fact that the examples are uninstalled makes this a little more complicated.
* Getting started: Fix a corner caseMatthias Clasen2013-07-241-0/+4
| | | | | When using 'Words' without a loaded document, the example would crash. Thats not nice, so avoid it.
* Getting started: Drop ugly signal handler cleanupMatthias Clasen2013-07-242-45/+16
| | | | | | | | I disconnected signals in dispose() to avoid a visible-tab change notification during destruction, but this is clunky. Instead, make the notify::visible-tab signal handler bail out early when called during destruction.
* Getting started: Use <choices> in the schemaMatthias Clasen2013-07-244-24/+24
| | | | | The use of a manually-specified enum is a little unusual. This is really meant to be done by <choices>.
* Getting started: Coding style updatesMatthias Clasen2013-07-2439-833/+898
| | | | Make the new examples use GTK+ coding style.