summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-201-2/+2
| | | | | | | | | | | | | | | This is an automated change doing these command: git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface git sed -f g gtk_widget_set_window gtk_widget_set_surface git sed -f g gtk_widget_get_window gtk_widget_get_surface git sed -f g gtk_widget_register_window gtk_widget_register_surface git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface git checkout NEWS*
* GdkWindow -> GdkSurface initial type renameAlexander Larsson2018-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This renames the GdkWindow class and related classes (impl, backend subclasses) to surface. Additionally it renames related types: GdkWindowAttr, GdkWindowPaint, GdkWindowWindowClass, GdkWindowType, GdkWindowTypeHint, GdkWindowHints, GdkWindowState, GdkWindowEdge This is an automatic conversion using the below commands: git sed -f g GdkWindowWindowClass GdkSurfaceSurfaceClass git sed -f g GdkWindow GdkSurface git sed -f g "gdk_window\([ _\(\),;]\|$\)" "gdk_surface\1" # Avoid hitting gdk_windowing git sed -f g "GDK_WINDOW\([ _\(]\|$\)" "GDK_SURFACE\1" # Avoid hitting GDK_WINDOWING git sed "GDK_\([A-Z]*\)IS_WINDOW\([_ (]\|$\)" "GDK_\1IS_SURFACE\2" git sed GDK_TYPE_WINDOW GDK_TYPE_SURFACE git sed -f g GdkPointerWindowInfo GdkPointerSurfaceInfo git sed -f g "BROADWAY_WINDOW" "BROADWAY_SURFACE" git sed -f g "broadway_window" "broadway_surface" git sed -f g "BroadwayWindow" "BroadwaySurface" git sed -f g "WAYLAND_WINDOW" "WAYLAND_SURFACE" git sed -f g "wayland_window" "wayland_surface" git sed -f g "WaylandWindow" "WaylandSurface" git sed -f g "X11_WINDOW" "X11_SURFACE" git sed -f g "x11_window" "x11_surface" git sed -f g "X11Window" "X11Surface" git sed -f g "WIN32_WINDOW" "WIN32_SURFACE" git sed -f g "win32_window" "win32_surface" git sed -f g "Win32Window" "Win32Surface" git sed -f g "QUARTZ_WINDOW" "QUARTZ_SURFACE" git sed -f g "quartz_window" "quartz_surface" git sed -f g "QuartzWindow" "QuartzSurface" git checkout NEWS* po-properties
* examples, gtk-demo: Fix copy-pasta in signal nameKrzesimir Nowak2018-01-031-3/+3
|
* Port drawing example to gesturesMatthias Clasen2018-01-021-56/+50
| | | | Use a drag and a multi-press gesture.
* Make drawing example work againMatthias Clasen2018-01-021-25/+29
| | | | | | Using ::configure-event and ::draw on a drawing area doesn't work anymore. Use ::size-allocate and a draw function instead.
* Fix fallout from the show-close-button renameMatthias Clasen2017-12-081-1/+1
| | | | | I had overlooked ui files. We should really validate those during build.
* Rename GtkHeaderBar::show-close-buttonMatthias Clasen2017-12-071-1/+1
| | | | | | It is about all window buttons, so rename it to ::show-title-buttons. https://bugzilla.gnome.org/show_bug.cgi?id=779862
* textview: Redo clipboard handlingBenjamin Otte2017-12-032-16/+4
| | | | | | Instead of using GtkClipboard and handling everything ourselves, we now put GtkTextBuffer into the GdkClipboard and register (de)serializers for text/plain.
* widget: gtk_widget_get_clipboard => gtk_widget_get_old_clipboardBenjamin Otte2017-12-032-2/+2
| | | | | Just rename the function, so the previous one can be used for the new clipboard.
* enums: Change GtkIconSize valuesMatthias Clasen2017-11-154-4/+0
| | | | | The new values are the ones we intend to keep. The old ones had duplicated meanings and nobody knew which one to take.
* examples: Use right function to query sizeBenjamin Otte2017-11-101-2/+2
|
* stylecontext: Port to use display instead of screenBenjamin Otte2017-10-311-3/+3
|
* examples: Use GdkEvent APIMatthias Clasen2017-09-191-5/+17
|
* Drop Autotools buildEmmanuele Bassi2017-08-1412-459/+0
| | | | | We are officially switching to Meson as the default build system for GTK+.
* gtk: Mass delete all GtkWidget event mask APICarlos Garnacho2017-05-251-8/+0
| | | | | | | | | | We now rely on toplevels receiving and forwarding all the events the windowing should be able to handle. Event masks are no longer a way to determine whether an event is deliverable ot a widget. Events will always be delivered in the three captured/target/bubbled phases, widgets can now just attach GtkEventControllers and let those handle the events.
* build: Improve consistency of the "coding" styleEmmanuele Bassi2017-05-032-6/+8
| | | | | | We're mixing a lot of styles in the Meson build files. This is an attempt at making everything slightly more consistent in terms of whitespace and indentation.
* meson: examples: updateTim-Philipp Müller2017-05-0313-191/+65
| | | | | Mostly style changes. Don't create resource source files with spaces in them, that's tempting our luck.
* Build examplesTimm Bäder2017-05-0312-0/+271
|
* examples/drawing: Don't call gtk_main_quitTimm Bäder2017-05-031-2/+0
| | | | | This is a GtkApplication so it will do the right thing when closing the window.
* box: Remove fill child propertyTimm Bäder2017-04-251-2/+2
| | | | GtkWidget:halign and GtkWidget:valign are sufficient
* box: Remove expand child propertyTimm Bäder2017-04-251-5/+3
| | | | GtkWidget already has hexpand/vexpand properties.
* Remove gtk_widget_show_allTimm Bäder2017-01-208-15/+10
|
* Update callersMatthias Clasen2017-01-191-1/+1
| | | | Adapt all our tests and examples to the new initialization api.
* Make gdk.la and gsk.la a noninst helper libraryAlexander Larsson2016-10-2611-11/+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