summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gdk: Remove unused members from surface structBenjamin Otte2018-03-211-5/+0
|
* surface: Stop shaping native children of csw surfacesBenjamin Otte2018-03-211-98/+0
| | | | We don't have them anymore and they are goig away anyway.
* docs: Drop the 'Contributing' section from the READMEEmmanuele Bassi2018-03-211-23/+6
| | | | | We have a whole document for that, and it's up to date with regards to the GitLab workflow.
* Add a template for bug reportsEmmanuele Bassi2018-03-211-0/+39
| | | | | GitLab issues can use templates to guide users when filing new bug reports; we should take advantage of this feature.
* docs: Point at the right place for new bugsEmmanuele Bassi2018-03-211-2/+1
| | | | We use GitLab issues, now.
* Add a build status badgeEmmanuele Bassi2018-03-211-0/+2
| | | | Like all cool kids are doing, these days.
* Add appdata for gtk4-widget-factoryMatthias Clasen2018-03-202-0/+37
| | | | This will let us build a better flatpak for gtk4-widget-factory.
* surface: Remove GSK_SURFACE_ROOTBenjamin Otte2018-03-214-44/+15
| | | | | Root surface have been dead for a while now, no need to keep the enum value around.
* Merge branch 'ci-flatpak'Emmanuele Bassi2018-03-203-16/+160
|\ | | | | | | | | Generate Flatpak bundles for gtk-demo and gtk-widget-factory when running the CI pipeline, and store them as artifacts on the CI server.
| * ci: Add two flatpak jobsEmmanuele Bassi2018-03-201-16/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | When building GTK through the CI infrastructure, it would help to have some ways of testing it; for instance, if we want to verify that theme changes are useful, or if we want to run the result without necessarily build it locally. This is where flatpak comes in handy. By having the CI build a flatpak buundle, and storing it as an artifact, of the GTK demos, we can easily point developers and designers to an installable binary that won't break their system, nor will require development tools and environments to run.
| * Add flatpak builder manifests for our demosEmmanuele Bassi2018-03-202-0/+118
| | | | | | | | | | We can use manifests as targets when building GTK inside a flatpak environment; or we can use them for CI purposes.
* | surface: Remove gdk_surface_invalidate_maybe_recurse()Benjamin Otte2018-03-213-81/+6
| | | | | | | | | | This also means we can now get rid of child funcs because they're not used anymore.
* | surface: Remove gdk_surface_scroll()Benjamin Otte2018-03-214-212/+0
| | | | | | | | | | | | It's yet another fancy way to call gdk_surface_invalidate_region(). Also remove the one testgtk test that was still using it.
* | surface: Remove gdk_surface_move_region()Benjamin Otte2018-03-213-44/+0
| | | | | | | | | | It's just a cute version of gdk_surface_invalidate_region() these days and people can call that function instead.
* | surface: Remove queue_antiexpose()Benjamin Otte2018-03-217-207/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... and its implementation in the X11 backend. GDK does lots of work trying to reduce the region in expose events so that when the server sends multiple expose events, touching the same area we can make sure to only redraw stuff once. However: (1) this is only relevant of there's tons of delay and multiple expose events get sent (2) we coalesce multiple events into a single expose event anyway (3) we do this on the frame clock But most importantly: (4) Since the invention of compositing, servers caches all contents anyway
* | gdk: Remove unused area member from GdkEventExposeBenjamin Otte2018-03-212-2/+0
| |
* | gdk: Remove unused count member from GdkEventExposeBenjamin Otte2018-03-212-6/+0
| |
* | widget: Remove useless macroBenjamin Otte2018-03-211-4/+2
| |
* | Add appdata for gtk4-demoMatthias Clasen2018-03-203-0/+37
|/ | | | This will let us build a better flatpak for gtk4-demo.
* Merge branch 'tests-gdk' into 'master'Emmanuele Bassi2018-03-202-2/+1
|\ | | | | | | | | gitlab-ci: enable gtk+:gdk tests See merge request GNOME/gtk!74
| * gitlab-ci: enable gtk+:gdk testsChristoph Reiter2018-03-202-2/+1
| | | | | | | | | | | | | | | | | | xvfb doesn't like C.utf8 and returns XLocaleNotSupported. While (afaik) C.utf8 and C.UTF.8 should be the same thing, and the former is returned by locale -a on Fedora, switch to C.UTF-8 to make xvfb happy. This makes gtk+:gdk tests pass.
* | tests: Update renamed symbolEmmanuele Bassi2018-03-201-1/+1
| |
* | Merge branch 'detect-synaptics-touchpads-v2' into 'master'Carlos Garnacho2018-03-202-14/+61
|\ \ | | | | | | | | | | | | x11/xi2: Report touchpads as TOUCHPAD, not MOUSE See merge request GNOME/gtk!65
| * | x11/xi2: Report touchpads as TOUCHPAD, not MOUSEDaniel van Vugt2018-03-192-14/+61
| | | | | | | | | | | | | | | | | | | | | is_touchpad_device() for XI2 was hardcoded to look for libinput only. Extend it slightly to correctly identify other Xorg touchpad drivers. https://gitlab.gnome.org/GNOME/gtk/issues/97
* | | Update POTFILES.inPiotr Drąg2018-03-202-2/+2
| | |
* | | Merge branch 'rename-window-to-surface' into 'master'Alexander Larsson2018-03-20320-16753/+16753
|\ \ \ | |_|/ |/| | | | | | | | Rename window to surface See merge request GNOME/gtk!72
| * | Convert all references to GdkEvent->surfaceAlexander Larsson2018-03-209-36/+36
| | |
| * | GtkWidget: Continuer rename of widget->surfaceAlexander Larsson2018-03-203-112/+112
| | | | | | | | | | | | This completes the rename manually.
| * | GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-20119-385/+385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 lots of stuff from window->surfaceAlexander Larsson2018-03-2076-4697/+4697
| | | | | | | | | | | | | | | Mostly these are internal things, but the major public change is that event.window is now event.surface.
| * | GdkSurface: Rename various functions and variablesAlexander Larsson2018-03-20125-1753/+1753
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2077-92/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-20227-7959/+7959
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-206-0/+169
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | gtkbuilder: add accessibility role declaration Closes #109 See merge request GNOME/gtk!69
| * | | gtkbuilder: add accessibility role declarationSamuel Thibault2018-03-196-0/+169
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge branch 'style-context-null-widget-guard-master' into 'master'Benjamin Otte2018-03-201-1/+5
|\ \ \ | | | | | | | | | | | | | | | | gtkstylecontext: guard against gtk_css_widget_node_get_widget() returning NULL in more places See merge request GNOME/gtk!71
| * | | gtkstylecontext: guard against gtk_css_widget_node_get_widget() returning ↵Christoph Reiter2018-03-201-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NULL in more places When the widget gets finalized it clears the widgetnode and gtk_css_widget_node_get_widget returns NULL. Guard against gtk_css_widget_node_get_widget() returning NULL like in other places. See https://gitlab.gnome.org/GNOME/pygobject/issues/28#note_82862
* | | | Merge branch 'a11y-fixes' into 'master'Matthias Clasen2018-03-205-9/+95
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | Fix some accessibility issues in demos Closes #110 See merge request GNOME/gtk!68
| * | | Fix some accessibility issues in demosSamuel Thibault2018-03-195-9/+95
| |/ / | | | | | | | | | Fixes #110
* | | tests: Add testtextureTimm Bäder2018-03-202-1/+146
| | | | | | | | | | | | a test that simply loads a given file as a texture and renders it.
* | | gl renderer: Support large texturesTimm Bäder2018-03-203-33/+178
| | | | | | | | | | | | By tiling them.
* | | snapshot: Limit cairo nodes to clip regionTimm Bäder2018-03-201-0/+14
| | | | | | | | | | | | | | | | | | In certain cases, we might create large cairo nodes, resulting in surfaces so large, cairo can't handle them. Fix this by limiting the cairo node to the current clip region.
* | | gl renderer: add basic code to support texture tilingTimm Bäder2018-03-203-21/+42
| | |
* | | rendernode: Don't use gdk_texture_download_surfaceTimm Bäder2018-03-201-1/+1
| | | | | | | | | | | | It can't handle the texture sizes we'd like to support
* | | rendernode: Don't use gdk_texture_download_surfaceTimm Bäder2018-03-201-6/+7
| | | | | | | | | | | | It can't handle the texture sizes we'd like to support
* | | rendernode: Check cairo surface status after creationTimm Bäder2018-03-201-0/+7
| | |
* | | inspector: Use the attach widget as menu parent objectTimm Bäder2018-03-201-0/+14
| | | | | | | | | | | | Fixes #101
* | | Revert "gl renderer: Limit texture node size to clip"Timm Bäder2018-03-201-54/+13
| | | | | | | | | | | | | | | | | | | | | This reverts commit 0234e8e2c94ff6b0c6f4dfcd0c940910a97eca11. This broke partially clipped-away nodes when they are being transformed, e.g. by a rotation
* | | gldriver: Name driver instances 'self'Timm Bäder2018-03-201-54/+54
| | |
* | | progressbar: Remove priv pointerTimm Bäder2018-03-202-56/+45
| | |