summaryrefslogtreecommitdiff
path: root/examples/application8
Commit message (Collapse)AuthorAgeFilesLines
* examples: Fix multiple small problemsMatthias Clasen2020-08-131-1/+1
| | | | | | | Add a paragraph about running the example apps uninstalled in the README, and verify that the standalone Makefiles actually work. Hint: some didn't.
* grid layout: Rename some propertiesMatthias Clasen2020-08-021-8/+8
| | | | | | | Rename GtkGridLayoutChild:left-attach/top-attach to GtkGridLayoutChild:column/row. Update all users. Fixes: #2967
* Replace "gchar" with "char"Benjamin Otte2020-07-252-7/+7
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-1/+1
|
* headerbar: Show title buttons by defaultAlexander Mikhaylenko2020-07-021-1/+0
| | | | | Most of the time show-title-buttons is set to TRUE. Go ahead and make that the default.
* scrolledwindow: Don't take adjustments in new()Matthias Clasen2020-06-241-1/+1
| | | | | | | In 99.9% of all cases, these are just NULL, NULL. So just do away with these arguments, people can use the setters for the rare cases where they want the scrolled window to use a different adjustment.
* examples: Add common_cflags to executablesTimm Bäder2020-05-181-1/+2
|
* Replace most remaining uses of container apiMatthias Clasen2020-05-111-6/+4
| | | | These are all on GtkBox or enumerating children.
* Refresh the tutorial examplesMatthias Clasen2020-05-118-61/+48
| | | | | | | | | Redo this series of examples from 2013, and adapt it to modern way of doing things. The biggest differences are that we use a headerbar right from the start, and don't mention the app menu. Fixes: #2730
* Use gtk_scrolled_window_set_child throughoutMatthias Clasen2020-05-041-3/+3
| | | | | Replace all uses of gtk_container_add on popovers by gtk_scrolled_window_set_child.
* Drop the margin propertyMatthias Clasen2020-02-251-1/+4
| | | | Replace it with margin-start, -end, -top, -bottom throughout.
* Remove a few stray <packing/> elementsMatthias Clasen2019-04-051-2/+1
| | | | | These were leftovers from an earlier conversion that did not properly strip empty elements.
* examples: Update GtkGrid definitions in UI filesEmmanuele Bassi2019-04-051-17/+19
|
* Convert all ui filesMatthias Clasen2019-03-271-8/+4
| | | | Run gtk4-builder-tool simplify --3to4 over all ui files.
* entry, spin button: Drop redundant APIMatthias Clasen2019-02-281-2/+2
| | | | Avoid duplicating GtkEditable APIs. Port existing users.
* Update ui files to new stack syntaxMatthias Clasen2019-02-084-12/+3
| | | | This conversion was done with the help of gtk4-builder-tool.
* examples: Rename the pkg-config file for GTK 4Emmanuele Bassi2019-02-051-2/+2
| | | | | We dropped the '+' and the major.minor version from the pkg-config file name.
* examples: Use icon-name property to set button iconsMohammed Sadiq2018-05-091-8/+1
| | | | Gtk4 added an icon-name property for GtkButton.
* examples: Remove explicit gtk_widget_show()Mohammed Sadiq2018-05-091-3/+0
| | | | In gtk4, widgets are visible by default.
* examples: Take advantage of user_data passedMohammed Sadiq2018-05-081-10/+5
| | | | | | | | | The last parameter of the signal callback from .ui is the template's object from which the class is derived. And so, we already have access to the window object. Let's just use it.
* examples: Don't use private members for final classesMohammed Sadiq2018-05-082-69/+41
| | | | | Only derivable classes are required to have private members so that derived classes can't override them.
* examples: Simplify .ui filesMohammed Sadiq2018-05-072-31/+11
| | | | Run gtk4-builder-tool recursively
* examples: Fix Makefiles to use gtk4 for buildMohammed Sadiq2018-05-071-2/+2
|
* enums: Change GtkIconSize valuesMatthias Clasen2017-11-151-1/+0
| | | | | The new values are the ones we intend to keep. The old ones had duplicated meanings and nobody knew which one to take.
* Drop Autotools buildEmmanuele Bassi2017-08-141-48/+0
| | | | | We are officially switching to Meson as the default build system for GTK+.
* meson: examples: updateTim-Philipp Müller2017-05-031-13/+4
| | | | | Mostly style changes. Don't create resource source files with spaces in them, that's tempting our luck.
* Build examplesTimm Bäder2017-05-031-0/+23
|
* Make gdk.la and gsk.la a noninst helper libraryAlexander Larsson2016-10-261-1/+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
* Rename Makefile references from 3.0 to 4.0Matthias Clasen2016-10-071-2/+2
| | | | | This is almost certainly incomplete. Needs careful scrutiny
* examples: use G_DECLARE_FINAL_TYPE in applicationsMohammed Sadiq2016-09-106-33/+3
| | | | | | | | 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-031-1/+1
| | | | | | | Put OBJS before LIBS on the commandline to make things work better. https://bugzilla.gnome.org/show_bug.cgi?id=768142
* tutorial: Drop excessive margin from headerbarMatthias Clasen2016-02-271-1/+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-261-8/+9
| | | | | Do not hardcode GCC as the compiler; use $(shell) expansion instead of backticks; split the built source into its own variable.
* examples: Fix clean rule in stand alone MakefilesEmmanuele Bassi2014-12-061-1/+2
| | | | Remove all the built files, including the exampleapp binary.
* Add standalone Makefile for the examplesEmmanuele Bassi2014-12-021-0/+33
| | | | | | | 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-291-23/+22
|
* Make include order consistent in example applicationsMatthias Clasen2014-11-282-2/+4
| | | | | Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=740537
* Update examples for new open-menu iconMatthias Clasen2014-07-151-7/+1
|
* Use view-content-menu-symbolic in example appsMatthias Clasen2014-07-081-1/+1
|
* example: Use popover for gears menuMatthias Clasen2014-04-171-0/+1
|
* example: Make gears button squareMatthias Clasen2014-04-171-0/+3
| | | | Another application of image-button.
* example: Make search button squareMatthias Clasen2014-04-171-0/+3
| | | | The image-button style class takes care of it.
* example: Modernize the prefs dialogMatthias Clasen2014-04-172-22/+1
| | | | | 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-172-1/+4
| | | | | Instead of hardcoding an accelerator in the ui file, use gtk_application_set_accels_for_action.
* example: Fix up marginsMatthias Clasen2014-04-171-0/+1
| | | | | | 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.
* examples: Use git.mkJasper St. Pierre2013-08-071-0/+2
|
* Make examples use search-changed signalMatthias Clasen2013-08-021-1/+1
| | | | This updates the examples for the new GtkSearchEntry api.
* example: Use declared callbacks where possibleMatthias Clasen2013-07-274-14/+25
| | | | | Replace manual signal connections with signal handlers declared in the ui file, where possible.
* Another round of template binding api changesMatthias Clasen2013-07-262-10/+10
| | | | | | | | | | | 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-262-10/+10
| | | | | | | | | | | | | | | | | | | | 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