summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* Add appdata for gtk4-widget-factoryMatthias Clasen2018-03-202-0/+37
| | | | This will let us build a better flatpak for gtk4-widget-factory.
* Add appdata for gtk4-demoMatthias Clasen2018-03-202-0/+36
| | | | This will let us build a better flatpak for gtk4-demo.
* Merge branch 'rename-window-to-surface' into 'master'Alexander Larsson2018-03-209-22/+22
|\ | | | | | | | | Rename window to surface See merge request GNOME/gtk!72
| * GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-206-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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*
| * GdkSurface: Rename various functions and variablesAlexander Larsson2018-03-202-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an automatic rename of various things related to the window->surface rename. Public symbols changed by this is: GDK_MODE_WINDOW gdk_device_get_window_at_position gdk_device_get_window_at_position_double gdk_device_get_last_event_window gdk_display_get_monitor_at_window gdk_drag_context_get_source_window gdk_drag_context_get_dest_window gdk_drag_context_get_drag_window gdk_draw_context_get_window gdk_drawing_context_get_window gdk_gl_context_get_window gdk_synthesize_window_state gdk_surface_get_window_type gdk_x11_display_set_window_scale gsk_renderer_new_for_window gsk_renderer_get_window gtk_text_view_buffer_to_window_coords gtk_tree_view_convert_widget_to_bin_window_coords gtk_tree_view_convert_tree_to_bin_window_coords The commands that generated this are: git sed -f g "GDK window" "GDK surface" git sed -f g window_impl surface_impl (cd gdk; git sed -f g impl_window impl_surface) git sed -f g WINDOW_IMPL SURFACE_IMPL git sed -f g GDK_MODE_WINDOW GDK_MODE_SURFACE git sed -f g gdk_draw_context_get_window gdk_draw_context_get_surface git sed -f g gdk_drawing_context_get_window gdk_drawing_context_get_surface git sed -f g gdk_gl_context_get_window gdk_gl_context_get_surface git sed -f g gsk_renderer_get_window gsk_renderer_get_surface git sed -f g gsk_renderer_new_for_window gsk_renderer_new_for_surface (cd gdk; git sed -f g window_type surface_type) git sed -f g gdk_surface_get_window_type gdk_surface_get_surface_type git sed -f g window_at_position surface_at_position git sed -f g event_window event_surface git sed -f g window_coord surface_coord git sed -f g window_state surface_state git sed -f g window_cursor surface_cursor git sed -f g window_scale surface_scale git sed -f g window_events surface_events git sed -f g monitor_at_window monitor_at_surface git sed -f g window_under_pointer surface_under_pointer (cd gdk; git sed -f g for_window for_surface) git sed -f g window_anchor surface_anchor git sed -f g WINDOW_IS_TOPLEVEL SURFACE_IS_TOPLEVEL git sed -f g native_window native_surface git sed -f g source_window source_surface git sed -f g dest_window dest_surface git sed -f g drag_window drag_surface git sed -f g input_window input_surface git checkout NEWS* po-properties po docs/reference/gtk/migrating-3to4.xml
| * GdkWindow -> GdkSurface: File renamesAlexander Larsson2018-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Rename all *window.[ch] source files. This is an automatic operation, done by the following commands: for i in $(git ls-files gdk | grep window); do git mv $i $(echo $i | sed s/window/surface/); git sed -f g $(basename $i) $(basename $i | sed s/window/surface/) ; done git checkout NEWS* po-properties po
| * GdkWindow -> GdkSurface initial type renameAlexander Larsson2018-03-206-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge branch 'accessible-role' into 'master'Matthias Clasen2018-03-202-0/+9
|\ \ | | | | | | | | | | | | | | | | | | gtkbuilder: add accessibility role declaration Closes #109 See merge request GNOME/gtk!69
| * | gtkbuilder: add accessibility role declarationSamuel Thibault2018-03-192-0/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | This allows to override the role declared to the atk stack. For instance, <accessibility> <role type="static"/> </accessibility> allows to tell the accessibility stack that a label is just a message in a message box. Fixes #109
* | Fix some accessibility issues in demosSamuel Thibault2018-03-195-9/+95
|/ | | | Fixes #110
* gtk-demo: Add a simple video player exampleBenjamin Otte2018-03-183-0/+98
| | | | | For now, it's impossible to unfullscreen. Somebody should figure out a way to do this.
* demos: Round up the paintable demos with a media streamBenjamin Otte2018-03-184-0/+315
|
* demos: Add an animated paintable demoBenjamin Otte2018-03-185-19/+274
| | | | This builds on the paintable demo.
* gtk-demo: Add paintable demoBenjamin Otte2018-03-183-0/+151
|
* demos: Add a video benchmark to widgetbowl demoBenjamin Otte2018-03-181-0/+13
|
* gtk-demo: Add a video example (with controls) to the images demoBenjamin Otte2018-03-183-5/+36
|
* widgetbowl: Add a proper descriptionTimm Bäder2018-03-171-3/+3
| | | | Instead of the copy/pasted one from the fishbowl demo.
* image: Remove gtk_image_set_texture()Benjamin Otte2018-03-163-60/+60
| | | | gtk_image_get_paintable() is a perfect replacement, so use that one.
* image: Load resources and files into texturesBenjamin Otte2018-03-161-1/+1
| | | | | | | | | | Instead of loading them into surfaces (which we want to get rid of), we load into textures. In fact, we introduce a new paintable subclass called a GtkScaler that takes care of tracking scaling. This also ideally gets rid of an extra conversion once renderers learn to render textures directly.
* dnd: Make dnd icon API take a paintableBenjamin Otte2018-03-161-1/+4
| | | | ... instead of a texture.
* demos: Unbreak icon for fishbowl demoBenjamin Otte2018-03-161-2/+2
| | | | | 351559fcfae1996143e4c1702aa9fc174c6c345f was to eager in simplifying things.
* demo: Remove an expose_event mentionTimm Bäder2018-02-061-2/+2
|
* iconbrowser: setup image dnd for image6Timm Bäder2018-02-031-0/+1
| | | | Otherwise the we fail to set the drag source icon name later on.
* Replace gdk_threads_add_timeout* with g_timeout_add()Emmanuele Bassi2018-02-031-3/+1
| | | | | | | | | | | | | | | The main GDK thread lock is not portable and deprecated. The only reason why gdk_threads_add_timeout() and gdk_threads_add_timeout_full() exist is to allow invoking a callback with the GDK lock held, in case 3rd party libraries still use the deprecated gdk_threads_enter()/gdk_threads_leave() API. Since we're removing the GDK lock, and we're releasing a new major API, such code cannot exist any more; this means we can use the GLib API for installing timeout callbacks. https://bugzilla.gnome.org/show_bug.cgi?id=793124
* toolpalette: RemoveBenjamin Otte2018-02-033-797/+0
| | | | | The widget was basically unmaintained since GTK 3.0 and the only known user was Glade.
* icon browser: Remove usage of stock-size propertyTimm Bäder2018-01-301-1/+0
| | | | Does not exist anymore.
* Enforce UTF-8 encoding when opening C filesEmmanuele Bassi2018-01-231-1/+1
| | | | | | | | We have a couple of Python 3.x scripts that parse C files, and since C does not have any encoding, we need to force one ourselves, to avoid the case when we're running the build in a non-UTF-8 locale. https://bugzilla.gnome.org/show_bug.cgi?id=792497
* widget-factory: Fix some layout issuesTimm Bäder2018-01-191-1/+2
| | | | | | We have to explicitly set some of these to their default values so expand-set is TRUE and the boxes stop propagating their expansion state up the hierarchy.
* Simplify all ui files againMatthias Clasen2018-01-1824-1342/+762
| | | | Now even simpler!
* gtk-demo: Add gears to the bowlMatthias Clasen2018-01-174-1/+1023
| | | | Just for fun.
* gtk-demo: Stop using ::button-release-eventMatthias Clasen2018-01-161-7/+8
|
* gtk-demo: Stop using ::motion-notify-event in the hypertext demoMatthias Clasen2018-01-161-30/+17
| | | | We already have a generic ::event handler, just use it for this.
* gtk-demo: Stop using ::button-press-eventMatthias Clasen2018-01-161-18/+18
| | | | Use gestures instead.
* Remove a leftover icon-size propertyMatthias Clasen2018-01-161-1/+0
| | | | This made the 'style classes' demo crash.
* gtk-demo: Drop a use of ::event-afterMatthias Clasen2018-01-161-1/+1
| | | | It works just fine with ::event as well.
* icon-browser: Stop connecting to ::delete-eventMatthias Clasen2018-01-161-1/+1
| | | | We can just use GtkWindow::hide-on-delete
* widget-factory: Stop connecting to ::delete-eventMatthias Clasen2018-01-161-4/+4
| | | | We can use GtkWindow::hide-on-close instead
* gtk-demo: Stop using ::delete-eventMatthias Clasen2018-01-162-3/+1
|
* build: Use pkg-config to find iso-codesTing-Wei Lan2018-01-071-1/+0
| | | | | | | Instead of hard-coding the path of iso-codes, we can get the prefix with pkg-config. We still fallback to /usr when it is not available. https://bugzilla.gnome.org/show_bug.cgi?id=792282
* gtk-demo: Update font explorer exampleMatthias Clasen2018-01-0310-1647/+2373
| | | | | Revise the UI (no more double checkboxes), add font variations, update font features from the dialog, allow tweaking ranges.
* examples, gtk-demo: Fix copy-pasta in signal nameKrzesimir Nowak2018-01-031-1/+1
|
* gtk-demo: Port the drawingarea demo to a gestureMatthias Clasen2018-01-021-34/+33
| | | | Use a drag gesture here, just like in the drawing example.
* widgetbowl: Add blurred box shadow demoTimm Bäder2017-12-211-7/+35
|
* gl renderer: Rework once moreTimm Bäder2017-12-211-1/+1
| | | | Last time, I swear.
* gtk4-demo: Fix font-features UI fileTimm Bäder2017-12-191-1/+1
|
* gtk-demo: Stop using GdkEventWindowStateMatthias Clasen2017-12-141-11/+23
| | | | Use GdkWindow::state instead - the event is going away.
* widget-factory: Avoid a legacy event handlerMatthias Clasen2017-12-122-3/+11
| | | | We can use a gesture instead, here.
* dnd: Remove "delete" argument from gtk_drag_finish()Benjamin Otte2017-12-101-1/+1
| | | | | | | The argument is ignored by anything but X11. It's treated like suggested_action == MOVE. So do that in gtk_drag_finish(), too.
* Fix fallout from the show-close-button renameMatthias Clasen2017-12-085-5/+5
| | | | | I had overlooked ui files. We should really validate those during build.
* Rename GtkHeaderBar::show-close-buttonMatthias Clasen2017-12-074-4/+4
| | | | | | It is about all window buttons, so rename it to ::show-title-buttons. https://bugzilla.gnome.org/show_bug.cgi?id=779862