summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Remove a generated Makefile in new example appStefano Facchini2013-07-211-737/+0
|
* Add a new example appMatthias Clasen2013-07-2083-36/+4175
| | | | | | | | | | | | Add a new example to the getting started part of the docs. The focus of this example is on 'new stuff': GtkApplication, templates, settings, gmenu, gaction, GtkStack, GtkHeaderBar, GtkSearchBar, GtkRevealer, GtkListBox, GtkMenuButton, etc. It is being developed in several steps. Each step is put in a separate directory below examples/: application1, ..., application8. This is a little repetitive, but lets us use the code of all examples in the documentation.
* docs: update getting started screenshotsWilliam Jon McCann2013-07-171-0/+1
|
* Don't use stock APIs in the bloatpad exampleWilliam Jon McCann2013-06-241-3/+6
|
* bloatpad: add a test for GApplication's busy stateCosimo Cecchi2013-04-041-0/+28
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=672018
* Add git.mk to more placesJasper St. Pierre2013-01-241-0/+2
|
* Bump GLib dependency to 2.35Matthias Clasen2012-11-043-6/+0
| | | | And drop deprecated g_type_init() calls.
* gtkapplication: fix some crashing "leak fixes"Ryan Lortie2012-09-201-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=684258
* GtkModelMenuItem: add a submenu action attributeRyan Lortie2012-09-171-2/+80
| | | | | | | | | | | | | | | | | | Add support for a stateful action associated with a submenu. The action state is set to TRUE when the menu is shown and FALSE when it is unshown. This is useful to avoid unnecessary processing for menus that have frequently-changing content. A possible future feature is to add support for asynchronously filling the initial state of the menu by waiting until the action actually emits its state-change signal to TRUE before showing the menu. A silly example has been added to Bloatpad to demonstrate the new feature. https://bugzilla.gnome.org/show_bug.cgi?id=682630
* Add example for "action-namespace" attributeLars Uebernickel2012-09-172-0/+135
|
* Add an example for handling app menu fallbackMatthias Clasen2012-07-222-1/+215
| | | | | The example shows how to use a menu button instead of the default menubar when the shell doesn't show the app menu.
* Fix typo replacing action "Parse" with "Paste"Micah Carrick2012-07-111-2/+2
| | | | | | | | The builder XML description has an action for "win.parse" but the application is looking for "win.paste". Rename the label to "_Paste" and the action to "win.paste" in the window action XML. https://bugzilla.gnome.org/show_bug.cgi?id=678829
* Mark strings in embedded XML code in plugman.c as translatablePiotr Drąg2012-05-181-11/+11
| | | | | Just like bloadpad's. Also add plugman.c to POTFILES.skip to *not* actually translate it.
* plugman: Update GtkBuilder markupFlorian Müllner2012-05-171-8/+29
| | | | | The markup for menus was changed in commit eed307713b8ef, update the plugman example to use the new format.
* bloatpad: adjust to G(tk)Application 'quit' changeRyan Lortie2012-02-211-32/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=670485
* Mark strings as translable in bloatpadMatthias Clasen2012-02-051-8/+8
| | | | | We don't have any intention of actually translating bloatpad, but this ends up as example in the docs.
* examples: Use symbolic names for button numbersCarlos Garcia Campos2012-01-271-2/+2
|
* GtkBuilder: change format of menusRyan Lortie2012-01-251-8/+33
| | | | | | | | | | | | | | Change the format of GtkBuilder <menu> to be more in-line with the style of the rest of GtkBuilder so that we can do translation in a consistent way. The format is now substantially more difficult to hand-write, but tools should be along soon. There is an xslt program attached to the bug to help you convert your existing .ui files from the old format to the new one. https://bugzilla.gnome.org/show_bug.cgi?id=668696
* Bloatpad: propertly escape <> in markupMatthias Clasen2012-01-231-4/+4
|
* Bloatpad: Set the application nameMatthias Clasen2012-01-201-0/+5
| | | | | This will be picked up for the app menu label in fallback mode in the near future.
* Don't leak plugin actionsMatthias Clasen2012-01-111-4/+5
| | | | Pointed out by Guillaume Desmottes in bug 667695.
* Add a switchMatthias Clasen2012-01-111-0/+16
| | | | | | | Add a switch. This demonstrates: - that switches can be placed in toolbars - that GtkSwitch is actionable - that actions can be shared between multiple actionables
* Bloatpad: Register with the sessionMatthias Clasen2012-01-101-14/+40
|
* bloatpad: add left/centre/right toolbar buttonsRyan Lortie2012-01-091-2/+51
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=667394
* GtkApplication: add menu APIRyan Lortie2011-12-192-4/+4
| | | | | | | We add the app-menu and menubar public APIs to GtkApplication while leaving the implementation in GApplication. The actual implementation will be moved soon.
* Plugman: Find the plugins menu in a better wayMatthias Clasen2011-12-191-26/+4
| | | | | Now that GtkBuilder finds named submenus, there's no need for the clumsy menumodel navigation anymore.
* Add accelerators to bloatpad.William Hua2011-12-191-3/+3
|
* bloatpad: add 'New Window' menu itemRyan Lortie2011-12-191-1/+12
|
* Another plugin, for good measureMatthias Clasen2011-12-191-37/+61
|
* Something for the eyeMatthias Clasen2011-12-191-2/+18
|
* Add an action tooMatthias Clasen2011-12-191-1/+17
|
* wip example for plugin/gmenu interactionMatthias Clasen2011-12-192-0/+434
|
* Bloatpad: Add an accelerator in the menuMatthias Clasen2011-12-191-1/+1
|
* Bloatpad: Add an acceleratorMatthias Clasen2011-12-191-0/+2
|
* bloatpad: add proper sections to the menusRyan Lortie2011-12-191-5/+13
|
* Whitespace fixesMatthias Clasen2011-12-191-8/+8
|
* bloatpad: move action/menu setup to ::startupRyan Lortie2011-12-191-7/+20
| | | | | No need to waste time doing this in init() if we are not going to become the primary instance.
* bloatpad: port to GActionMap for applicationRyan Lortie2011-12-191-18/+2
| | | | g_application_set_action_group() is now deprecated.