summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* examples: Stop using appmenu apisMatthias Clasen2020-05-222-38/+43
| | | | The appmenu-related GtkApplication apis are going away.
* bloatpad: Pass common_cflags to the buildTimm Bäder2020-05-192-1/+2
|
* bloatpad: Avoid a few theoretical compiler warningsTimm Bäder2020-05-181-7/+6
|
* examples: Add common_cflags to executablesTimm Bäder2020-05-189-9/+18
|
* Replace most remaining uses of container apiMatthias Clasen2020-05-116-23/+312
| | | | These are all on GtkBox or enumerating children.
* Use gtk_window_destroyMatthias Clasen2020-05-116-7/+7
| | | | | Replace calls to gtk_widget_destroy on windows with gtk_window_destroy.
* Refresh the tutorial examplesMatthias Clasen2020-05-1161-1035/+263
| | | | | | | | | 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
* examples: Use GtkDrawingArea::resizeMatthias Clasen2020-05-061-6/+5
| | | | | This signal is a replacement for this (ab)use of the ::size-allocate signal, which is going away.
* Use gtk_overlay_set_child throughoutMatthias Clasen2020-05-041-1/+1
| | | | | Replace all uses of gtk_container_add on overlays by gtk_overlay_set_child.
* Use gtk_search_bar_set_child throughoutMatthias Clasen2020-05-041-1/+1
|
* Use gtk_window_set_child throughoutMatthias Clasen2020-05-048-8/+8
| | | | | Replace all uses of gtk_container_add on windows by gtk_window_set_child.
* Use gtk_scrolled_window_set_child throughoutMatthias Clasen2020-05-0411-20/+20
| | | | | Replace all uses of gtk_container_add on popovers by gtk_scrolled_window_set_child.
* Use gtk_frame_set_child throughoutMatthias Clasen2020-05-041-1/+1
| | | | | Replace all uses of gtk_container_add for frames with gtk_frame_set_child.
* headerbar: Remove user-settable titleAlexander Mikhaylenko2020-05-011-2/+0
| | | | | | | | Use window title, or custom title widget if it's set. Remove 'title' property. Update demos and tests to set the title on the window instead of headerbar.
* frame: Drop shadow-typeMatthias Clasen2020-04-171-1/+0
| | | | | Frames that don't draw frames are not very useful, so just drop the shadow-type property.
* Replace most uses of <Primary> with <Control>Matthias Clasen2020-04-061-8/+8
| | | | | | The only place where we are still using <Primary> is in tests, to ensure we keep parsing it. Otherwise, <Control> is now the preferred syntax.
* examples: Add common_cflags to buildTimm Bäder2020-03-063-5/+7
| | | | | | And fix all the warnings and errors generated by doing so. See #2491
* Drop the margin propertyMatthias Clasen2020-02-255-5/+20
| | | | Replace it with margin-start, -end, -top, -bottom throughout.
* Stop using gtk_main_quitMatthias Clasen2020-02-091-3/+17
| | | | | Stop using gtk_main and gtk_main_quit in tests and examples. These APIs are on the way out.
* bloatpad: Use a box, not a toolbarBenjamin Otte2020-02-071-19/+13
|
* Rename GtkGestureMultiPress to GtkGestureClickMatthias Clasen2019-05-291-6/+6
| | | | | The name just made it hard for people to find the right gesture to use.
* Stop using gtk_widget_get_surfaceMatthias Clasen2019-05-281-2/+2
| | | | | Replace all uses of gtk_widget_get_surface by gtk_native_get_surface.
* Remove a few stray <packing/> elementsMatthias Clasen2019-04-054-7/+4
| | | | | These were leftovers from an earlier conversion that did not properly strip empty elements.
* examples: Update GtkGrid definitions in UI filesEmmanuele Bassi2019-04-056-98/+109
|
* Convert all ui filesMatthias Clasen2019-03-274-28/+14
| | | | Run gtk4-builder-tool simplify --3to4 over all ui files.
* entry, spin button: Drop redundant APIMatthias Clasen2019-02-285-9/+9
| | | | Avoid duplicating GtkEditable APIs. Port existing users.
* Fix the search bar exampleMatthias Clasen2019-02-191-1/+1
| | | | More GtkSearchBar entry -> editable fixups.
* Update ui files to new stack syntaxMatthias Clasen2019-02-0824-78/+20
| | | | This conversion was done with the help of gtk4-builder-tool.
* Merge branch 'kill-buttonbox' into 'master'Matthias Clasen2019-02-051-4/+4
|\ | | | | | | | | Drop GtkButtonBox See merge request GNOME/gtk!554
| * Drop GtkButtonBoxMatthias Clasen2019-02-041-4/+4
| | | | | | | | | | This widget does not seem worth keeping, and we want to get rid of child properties.
* | examples: Rename the pkg-config file for GTK 4Emmanuele Bassi2019-02-0511-22/+22
|/ | | | | We dropped the '+' and the major.minor version from the pkg-config file name.
* box: Remove gtk_box_pack_startTimm Bäder2019-01-231-2/+2
|
* examples: Use appliction id as desktop file base nameGuido Günther2018-08-022-2/+2
|
* search bar example: remove unused functionTimm Bäder2018-06-161-11/+0
|
* examples: Simplify handling events in search-barMohammed Sadiq2018-06-141-7/+1
| | | | | In search-bar example, we can use gtk_search_bar_set_key_capture_widget() which would simplify handling keyboard events.
* examples: Fix alignment of search-bar exampleMohammed Sadiq2018-06-141-0/+1
| | | | | The search entry was taking the whole window size. Let's reduce the size so as to have more natural size.
* examples: Remove unused variablesMohammed Sadiq2018-05-122-2/+0
|
* examples: Use icon-name property to set button iconsMohammed Sadiq2018-05-094-32/+4
| | | | Gtk4 added an icon-name property for GtkButton.
* examples: Simplify counting buffer linesMohammed Sadiq2018-05-092-20/+2
| | | | | We do have a gtk_text_buffer_get_line_count() function to get the line count.
* examples: Remove explicit gtk_widget_show()Mohammed Sadiq2018-05-098-19/+0
| | | | In gtk4, widgets are visible by default.
* examples: Take advantage of user_data passedMohammed Sadiq2018-05-084-38/+20
| | | | | | | | | 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-0813-356/+198
| | | | | Only derivable classes are required to have private members so that derived classes can't override them.
* examples: Simplify .ui filesMohammed Sadiq2018-05-0717-212/+82
| | | | Run gtk4-builder-tool recursively
* examples: Fix Makefiles to use gtk4 for buildMohammed Sadiq2018-05-0710-20/+20
|
* eventcontrollerkey: Port to new API modelCarlos Garnacho2018-04-261-1/+2
|
* draggesture: Port to new API modelBenjamin Otte2018-04-261-3/+2
|
* multipressgesture: Port to new API modelBenjamin Otte2018-04-261-2/+2
|
* search bar: Stop using ::key-press-eventMatthias Clasen2018-04-051-6/+12
| | | | Use a key event controller instead.
* widget: Remove clip from size-allocate vfuncBenjamin Otte2018-04-051-1/+0
| | | | As the clip is no longer needed, get rid of it.
* gtk: Remove gtk_widget_queue_draw_region()Benjamin Otte2018-04-051-2/+2
| | | | | | ... and gtk_widget_queue_draw_area(). They don't doi anything anymore.