summaryrefslogtreecommitdiff
path: root/examples/drawing.c
Commit message (Collapse)AuthorAgeFilesLines
* examples: Drop a redundant frameMatthias Clasen2021-06-161-5/+1
| | | | | The frame in the drawing example adds nothing and looks wrong.
* Replace "gdouble" with "double"Benjamin Otte2020-07-251-2/+2
|
* 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_window_set_child throughoutMatthias Clasen2020-05-041-1/+1
| | | | | Replace all uses of gtk_container_add on windows by gtk_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.
* 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.
* 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.
* draggesture: Port to new API modelBenjamin Otte2018-04-261-3/+2
|
* multipressgesture: Port to new API modelBenjamin Otte2018-04-261-2/+2
|
* 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.
* examples: Use right function to query sizeBenjamin Otte2017-11-101-2/+2
|
* examples: Use GdkEvent APIMatthias Clasen2017-09-191-5/+17
|
* 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.
* 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.
* Remove gtk_widget_show_allTimm Bäder2017-01-201-1/+1
|
* API: container: Remove gtk_container_set_border_width()Benjamin Otte2016-10-161-2/+0
|
* Getting-started: port drawing.c to GtkApplicationBastian Ilsø2015-02-231-19/+28
|
* examples: Use symbolic names for button numbersCarlos Garcia Campos2012-01-271-2/+2
|
* exanmples: Don't use deprecated APIBenjamin Otte2011-11-091-19/+3
|
* Add a drawing example to the tutorialMatthias Clasen2011-01-181-0/+200