summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* gdk: Rename GdkDragContext to GdkDragMatthias Clasen2018-07-026-28/+30
| | | | | | | This is to go along with the newly introduced GdkDrop. This commit includes the necessary updates to the X11, Wayland and Broadway backends. Other backends have to be updated separately.
* gtkentry: Use gestures for entry iconsCarlos Garnacho2018-06-211-1/+1
| | | | | | | | | | Instead of doing all handling manually in the ::event vfunc, set up drag/multipress gestures on icon images, and implement emission of ::icon-press/release and DnD there. As a side effect, the GdkEvent field in ::icon-press/release signals has been dropped. Callers that might be interested on it may still use gtk_get_current_event*().
* widget: Remove time argument from drag_data_get() vfuncBenjamin Otte2018-06-185-6/+0
|
* dnd: Make drag-motion and drag-drop signals use GdkDropBenjamin Otte2018-06-182-55/+69
|
* dnd: Make drag-data-received use a GdkDropBenjamin Otte2018-06-184-8/+4
|
* widget: Make GtkWidgetClass::drag_leave() take a GdkDropBenjamin Otte2018-06-181-4/+3
| | | | Drag Contexts are on their way out!
* dnd: Get rid of gtk_drag_finish()Benjamin Otte2018-06-181-4/+4
| | | | It's just a wrapper around gdk_drag_finish(), so use that one instead.
* eventcontrollermotion: Port to new API modelBenjamin Otte2018-04-261-2/+2
|
* draggesture: Port to new API modelBenjamin Otte2018-04-261-1/+2
|
* multipressgesture: Port to new API modelBenjamin Otte2018-04-263-5/+6
|
* testentrycompletion: Use the model we already gotDaniel Boles2018-04-241-1/+1
| | | | cherry-pick of gtk-3-22 commit af350b20b1c396ec55ca6a71eab23fdca6ffb784
* snapshot: Redo debug messagesBenjamin Otte2018-04-244-8/+5
| | | | | Instead of every snapshot function having debug messages, have an explicit gtk_snapshot_push_debug() function that appends a debug node.
* gtk-demo, testgtk: Don't pass an integer to fabswip/lantw/improve-freebsd-build-and-fix-warningsTing-Wei Lan2018-04-221-3/+3
| | | | It looks like a mistake which compilers are likely to warn.
* build: Make the default setting work on non-Linux Unix-like systemsTing-Wei Lan2018-04-221-1/+1
| | | | | | | | | | | | | | | | | | All of the four platform-dependent backends are enabled by default. It is usually a good default because it requires users to explicitly choose backends they want to use. Rules in meson.build also automatically disable unavailable backends for macOS, Windows, Linux, so users on these 3 major platforms don't have to manually disable things when running meson commands. However, meson.build doesn't do the same thing for other Unix-like systems, which is acceptable but not ideal. To make it easier to build GTK+ on these systems, the Linux case, which enables X11 and Wayland and disables Win32 and Quartz, is made the default for all operating systems that are not Windows or macOS. This commit also changes most 'host_machine.system()' calls to os_* variables, which are easier to read and less likely to be used wrongly.
* testgtk: Don't set cairo surfaces as iconsBenjamin Otte2018-04-121-4/+4
| | | | The code expects textures these days, so use those.
* tests: Use gdk_texture_save_to_png() where appropriateBenjamin Otte2018-04-121-10/+1
|
* testmodelbutton: Test :centered, :icon, :invertedDaniel Boles2018-04-081-0/+18
| | | | Test more stuff.
* testmodelbutton: Fix wrongly overridding MB childDaniel Boles2018-04-081-1/+1
| | | | | I was setting a GtkButton:label, which resulted in the ModelButton's own custom children getting lost. That doesn't make for a useful test...
* testmodelbutton: Add explanatory comments to CSSDaniel Boles2018-04-081-13/+15
| | | | and load at an earlier, more sensible place, before creating any widgets
* tests/testmodelbutton: Add thisDaniel Boles2018-04-082-0/+90
| | | | | | and test whether :action-name, :role, and CSS nodes work as expected https://gitlab.gnome.org/GNOME/gtk/issues/163
* testgtk: Drop snapshotMatthias Clasen2018-04-051-296/+0
| | | | | | This needs to be redone with modern snapshotting infrastructure. Lets drop it for now, it is somewhat duplicative with inspector features.
* testgtk: Drop the event watcherMatthias Clasen2018-04-051-93/+0
| | | | | This is not a very useful test, and it is hard to keep working in an event controller world.
* testgtk: Remove draw signal usageBenjamin Otte2018-04-051-82/+11
|
* testgtk: Take an actual snapshot of a widgetBenjamin Otte2018-04-051-19/+4
| | | | Don't just draw the widget, take the paintable of it instead!
* testlist3: Set the actual row as drag iconBenjamin Otte2018-04-051-13/+1
| | | | | (Well, don't do anything actually, because dnd is broken, but in theory...)
* snapshot: Allow passing the bounds of the created paintableBenjamin Otte2018-04-051-1/+1
| | | | | | | | | | | This allows being more specific about the size. It's useful in particular when the resulting render nodes might be too small for the size, not only when they are too large. For the latter case, using a clip node would be enough. It also requires adding a clip node when rendering the resulting paintable, but that should be optimized out by GtkSnapshot when not necessary.
* widget: Remove clip from size-allocate vfuncBenjamin Otte2018-04-053-9/+8
| | | | As the clip is no longer needed, get rid of it.
* snapshot: Remove clip argument from gtk_snapshot_new()Benjamin Otte2018-04-051-1/+1
| | | | | It's not used anymore. And anybody who wants to have a clip on a newly created snapshot can achieve that using gtk_snapshot_push_clip().
* gtk: Remove gtk_widget_queue_draw_region()Benjamin Otte2018-04-051-3/+1
| | | | | | ... and gtk_widget_queue_draw_area(). They don't doi anything anymore.
* testgtk: don't set a focus adjustment on a boxTimm Bäder2018-03-281-2/+0
| | | | | That will make the focus adjustment code in gtkcontainer.c scroll to the wrong coordinates.
* tests: Don't use gtk_drag_set_icon_surface()Benjamin Otte2018-03-261-7/+11
|
* tests: Remove references to long-deleted propertyBenjamin Otte2018-03-261-6/+0
|
* surface: Remove gdk_surface_scroll()Benjamin Otte2018-03-211-155/+0
| | | | | | It's yet another fancy way to call gdk_surface_invalidate_region(). Also remove the one testgtk test that was still using it.
* tests: Update renamed symbolEmmanuele Bassi2018-03-201-1/+1
|
* Merge branch 'detect-synaptics-touchpads-v2' into 'master'Carlos Garnacho2018-03-201-11/+41
|\ | | | | | | | | 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-191-11/+41
| | | | | | | | | | | | | | 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
* | Merge branch 'rename-window-to-surface' into 'master'Alexander Larsson2018-03-209-64/+64
|\ \ | | | | | | | | | | | | Rename window to surface See merge request GNOME/gtk!72
| * | GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-207-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-201-1/+1
| | | | | | | | | | | | | | | 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-204-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 initial type renameAlexander Larsson2018-03-206-45/+45
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | tests: Add testtextureTimm Bäder2018-03-202-1/+146
|/ | | | a test that simply loads a given file as a texture and renders it.
* testgtk: Remove alpha widgets demoTimm Bäder2018-03-171-105/+0
| | | | | | | This used to test that "windowed widgets" and "non-windowed widgets" handle alpha correctly, but none of the mentioned widgets are windowed at all anymore. For the rest, this is more easily and dynamically testable by simply using the inspector.
* testgtk: GtkSpinButton is not a GtkEntry anymoreTimm Bäder2018-03-171-11/+12
|
* image: Remove gtk_image_set_texture()Benjamin Otte2018-03-164-30/+32
| | | | gtk_image_get_paintable() is a perfect replacement, so use that one.
* tests: Port from surface to textureBenjamin Otte2018-03-162-36/+48
|
* dragsource: Replace gtk_drag_source_set_icon_surface()Benjamin Otte2018-03-161-4/+4
| | | | ... with gtk_drag_source_set_icon_paintable().
* entry: Make icons a paintableBenjamin Otte2018-03-161-1/+1
|
* testspinbutton: Add button to toggle wrap on SpinsDaniel Boles2018-03-141-1/+6
| | | | | | | I found myself wanting to test this for something else, so let's test it. It revealed a bug immediately! https://gitlab.gnome.org/GNOME/gtk/issues/88
* testspinbutton: Orient box orthogonally to SpinsDaniel Boles2018-03-141-1/+1
| | | | This makes better use of space.