summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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
* cssprovider: Remove GError out argument from load functionsBenjamin Otte2016-10-171-1/+1
| | | | People should use the GtkCssProvider::parsing-error signal instead.
* API: container: Remove gtk_container_set_border_width()Benjamin Otte2016-10-165-6/+0
|
* plugman: Stop using gtk_override_colorTimm Bäder2016-10-161-16/+34
|
* box: Remove 'padding' child propertyTimm Bäder2016-10-161-2/+2
|
* Rename Makefile references from 3.0 to 4.0Matthias Clasen2016-10-0712-24/+24
| | | | | This is almost certainly incomplete. Needs careful scrutiny
* bloatpad: replace single quotes with double quotes in menus.uiPiotr Drąg2016-09-241-39/+39
| | | | | Double quotes are more friendly to some l10n tools, and this sets a good example for application authors to follow.
* examples: use G_DECLARE_FINAL_TYPE in applicationsMohammed Sadiq2016-09-1050-279/+27
| | | | | | | | 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-0310-10/+10
| | | | | | | Put OBJS before LIBS on the commandline to make things work better. https://bugzilla.gnome.org/show_bug.cgi?id=768142
* bloatpad: Make shortcuts window updateMatthias Clasen2016-04-171-7/+48
| | | | | This tests the just added functionality to make shortcuts track changes in their actions accelerators.
* Add a help overlay to bloatpadMatthias Clasen2016-04-174-1/+56
| | | | | This will let us explore the (non-)interaction between help overlays and editing shortcuts.
* examples: Strip newlines from g_warning and g_errorMatthias Clasen2016-02-281-2/+2
| | | | g_logv adds one for us already.
* tutorial: Drop excessive margin from headerbarMatthias Clasen2016-02-279-9/+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-2610-72/+81
| | | | | Do not hardcode GCC as the compiler; use $(shell) expansion instead of backticks; split the built source into its own variable.
* Update hello-world.c to GtkApplication, documentBastian Ilsø2015-03-091-81/+23
|
* Getting-started: port drawing.c to GtkApplicationBastian Ilsø2015-02-231-19/+28
|
* Updated grid-packing to GtkApplication.Bastian Ilsø2015-02-151-18/+20
|
* Plug another memory leak in plugmanMatthias Clasen2015-02-011-1/+4
|
* plugman: Fix leaking attribute stringFelix Riemann2015-02-011-5/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=743770
* Get started: port example-0.c to GtkApplicationBastian Ilsø2015-01-281-11/+18
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=743638
* GtkMenuTracker: add hidden-when='macos-menubar'Ryan Lortie2014-12-221-0/+2
| | | | | | | | | | | | | | | | Provide a mechanism for hiding the "Quit", "About" and "Preferences" menu items from the normal places in a traditional menubar layout (in the File and Edit menus) when the menu is being rendered in the Mac OS menubar. These items can already be found in the application menu. With this feature, applications can now define a single menu to use in all 'traditional' scenarios. Use this new attribute in Bloatpad. https://bugzilla.gnome.org/show_bug.cgi?id=741610
* Trivial off-by-one fixMatthias Clasen2014-12-081-1/+1
| | | | We have a tenth example.
* examples: Fix clean rule in stand alone MakefilesEmmanuele Bassi2014-12-0610-7/+16
| | | | Remove all the built files, including the exampleapp binary.
* examples: Add stand alone Makefile for application10Emmanuele Bassi2014-12-061-0/+33
| | | | Missed out on the last application examples.