summaryrefslogtreecommitdiff
path: root/testsuite/gtk
Commit message (Collapse)AuthorAgeFilesLines
* tests: Make GSETTINGS_SCHEMA_DIR point to the compiled schemas in the build dirChristoph Reiter2018-02-176-40/+4
| | | | | | | | | | | With autotools the schemas were compiled into each test suite directory and the tests set GSETTINGS_SCHEMA_DIR to the test build directory. With meson's gnome.compile_schemas() we can not define a target directory so just make sure it is built in the gtk directory and set GSETTINGS_SCHEMA_DIR to the gtk build directory when running the tests. This makes the gtk+:gtk suite pass when no gtk is installed on the system.
* gtk testsuite: Stop using gtk_widget_show_nowMatthias Clasen2018-02-041-1/+1
| | | | If this is a problem, it needs to be handled explicitly.
* rbtree: Privatize headerBenjamin Otte2018-02-031-1/+1
| | | | | | | According to meson it's the only private header that doesn't conform to the *private.h naming. Fix that.
* gtk: Remove GtkRecentChooserBenjamin Otte2018-02-021-11/+0
| | | | | It's not used any more, recent files are only used by the filtchooser and that one uses GtkRecentManager directly.
* Add a test for ::row-changed vs node refsMatthias Clasen2018-01-191-0/+71
| | | | | | | | Test that filter models propagate ::row-changed if there is an external reference on the node, and not otherwise. This is showing up in buggy icon view behaviour, where the icon view is not redrawing if the content changes in a model that is below a filter model.
* tree model sort: Fix set_sort_columnMatthias Clasen2018-01-161-0/+89
| | | | | | | | | | We were failing to change the sort order for the default sort column in some cases. Fix that, and add a testcase for this issue. https://bugzilla.gnome.org/show_bug.cgi?id=792459 Add a testcase for the previous fix
* Fix the icontheme testMatthias Clasen2018-01-161-0/+1
| | | | | | We rely on log messages here. Since logging is per-display now, we need to set a display on our custom icontheme object to get the expected log messages.
* testsuite: Stop using ::button-press-eventMatthias Clasen2018-01-161-7/+12
| | | | We can use the generic ::event signal instead.
* Drop GtkPlacesSidebar from public APIMatthias Clasen2018-01-081-2/+4
| | | | | | This is a bit of filechooser internals that gets shared with nautilus, which is fine, but it shouldn't be part of our public API. There are no other users than nautilus.
* testsuite: Drop commented out and useless codeMatthias Clasen2018-01-022-31/+1
| | | | These two uses of ::delete-event were pointless.
* Fix the textbuffer testMatthias Clasen2017-12-261-0/+21
| | | | | The test was assuming that gtk_text_buffer_paste_clipboard is synchronous, which is no longer the case.
* Fix objects-finalize testMatthias Clasen2017-12-261-0/+4
| | | | | This test needs similar fixes to the notify test to pass a display to GDK objects when instantiating them.
* Fix notify testMatthias Clasen2017-12-261-1/+5
| | | | We need to pass a display when creating more GDK objects now.
* Replace gdk_keymap_get_for_display by gdk_display_get_keymapMatthias Clasen2017-12-151-5/+5
| | | | | Replace all uses of the old function by the new one. No functional change.
* Drop gdk_keymap_get_default()Matthias Clasen2017-12-141-7/+21
| | | | | It is better to use the explicit keymap getter - the default display may not even use the current gdk backend.
* Fix a few overlooked castsTimm Bäder2017-12-091-3/+3
| | | | glib warns about these now.
* gtk: Remove GtkClipboardBenjamin Otte2017-12-032-89/+0
|
* textview: Redo clipboard handlingBenjamin Otte2017-12-031-2/+2
| | | | | | Instead of using GtkClipboard and handling everything ourselves, we now put GtkTextBuffer into the GdkClipboard and register (de)serializers for text/plain.
* textview: Replace pixbufs by texturesMatthias Clasen2017-11-291-8/+11
| | | | | | | | This affects a few apis, such as gtk_text_iter_get_pixbuf, gtk_text_buffer_insert_pixbuf and GtkTextBuffer::insert-pixbuf, which have all been replaced by texture equivalents. Update all callers.
* contentformats: Rename GtkTargetListBenjamin Otte2017-11-201-3/+3
| | | | It's now called GdkContentsFormat
* dnd: Remove GtkTargetEntry and GtkTargetFlagsBenjamin Otte2017-11-201-1/+1
| | | | | | | warning: We don't do any same-app checks anymore so you currently can copy local data into external apps. This will be fixed later.
* Remove gdk/gdkx.hMatthias Clasen2017-11-162-2/+2
| | | | It was just a kludge.
* selection: Remove the info uintBenjamin Otte2017-11-161-4/+1
| | | | | | | | | Instead of allowing people to pass a uint user-data, insist on them comparing mime types. The user data was a uint instead of a pointer anyway, so uniqueness could not be guaranteed and it caused more issues than it was worth. And that's ignoring the fact that it basically wasn't used.
* scalebutton: Remove icon sizeBenjamin Otte2017-11-151-2/+1
|
* toolbar: Remove icon sizesBenjamin Otte2017-11-151-1/+0
|
* clipboard: Consistently use GtkTargetListBenjamin Otte2017-11-151-1/+4
| | | | | Some code was using GtkTargetList, some used GtkTargetEntry and some GtkTargetPair.
* cellrendererpixbuf: Remove stock-detail propertyBenjamin Otte2017-11-141-2/+1
| | | | GTK3 didn't use that property already...
* gdkwindow: Remove event_mask arguments from constructorsBenjamin Otte2017-11-131-1/+0
|
* testsuite: Remove cursor testsBenjamin Otte2017-11-042-66/+0
| | | | | Cursors always exist now, it does not make sense to test that their creation fails anymore.
* x11: Redo cursor handling completelyBenjamin Otte2017-11-041-1/+0
| | | | | | | | | | Instead of creating a GdkX11Cursor, create GdkCursors. Cache the XCursor in a hash table instead. Also, make use of the new fallback mechanism for fallback code: Make sure to provide cursors for the names that are guaranteed to exist, but do not do bad attempts at displaying texture surfaces. Black/White/transparent is not a replacement for those.
* testsuite: Update for screen => display property changesBenjamin Otte2017-10-312-5/+5
|
* window: Turn gtk_window_set_screen() into gtk_window_set_display()Benjamin Otte2017-10-311-1/+1
| | | | | | | And have a priv->display instead of a priv->screen. Includes turning gtk_menu_set_screen() into gtk_menu_set_display(), because that function just forwards to its window.
* stylecontext: Port to use display instead of screenBenjamin Otte2017-10-311-40/+40
|
* Add a forgotten fileMatthias Clasen2017-10-181-0/+4
|
* Use the cairo renderer for gtk tests for nowMatthias Clasen2017-10-181-0/+1
| | | | | We haven't tracked down yet why the window size tests fail with Vulkan, so use cairo for now.
* Fix test environmentsMatthias Clasen2017-10-181-2/+14
|
* Install gtk testsMatthias Clasen2017-10-181-113/+42
| | | | Some of these currently fail on my system.
* More testsuite cosmeticsMatthias Clasen2017-10-181-2/+2
| | | | Unify the test naming some more.
* testsuite: Use the cairo renderer for nowMatthias Clasen2017-10-181-0/+1
|
* testsuite: Make all gesture test touches happen in the middle of the windowCarlos Garnacho2017-10-121-14/+14
| | | | | | | | | The event coordinates are (so far) irrelevant to what we are testing here, just make all events happen in the middle of the window in order to ensure all widgets receive it. More importantly, avoid using fixed pixel distances, since we don't get guarantees about window sizes. Fixes the gestures testsuite on X11.
* testsuite: Update gestures test to pointer emulation removalCarlos Garnacho2017-10-121-2/+2
| | | | | | | Now all widgets are mandated to handle the real thing, which means no pointer events are emulated for the pointer emulating touch. The output of these tests relied on this fact, so update to the tests handling real touch events.
* testsuite: Fix gesture test inconsistencies due to legacy event handlingCarlos Garnacho2017-10-121-5/+6
| | | | | | | | | | Legacy GtkWidget vmethods are now handled on an event controller, which due to being the very first controller added to every widget, runs in a different order than the previously hardcoded. Probably testing legacy events is not really futurible, specially after we stop installing this legacy controller by default. I'll leave the choice to remove these specific tests for later though.
* testsuite: Add test case for previous commitTimm Bäder2017-09-291-1/+42
| | | | This previously led to a loop in the child widgets.
* build: Add widgetorder unit test to build systemTimm Bäder2017-09-291-0/+1
|
* GtkBuilder: Enforce "class" as a mandatory attribute for <object>Debarshi Ray2017-09-251-2/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=786931
* testsuite: Use GdkEvent APIMatthias Clasen2017-09-191-0/+3
|
* testsuite: Fix builder test on Windows/MSVCChun-wei Fan2017-09-152-12/+24
| | | | | | | | Visual Studio does not support things like -Wl,export-dynamic, so we need to export those symbols by using __declspec(dllexport). So, we decorate these with macros which we define accordingly for this purpose. https://bugzilla.gnome.org/show_bug.cgi?id=785210
* GtkBuilder: Prefer "type-func" over "class" when looking for the GTypeDebarshi Ray2017-08-291-1/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=786932
* Drop Autotools buildEmmanuele Bassi2017-08-141-303/+0
| | | | | We are officially switching to Meson as the default build system for GTK+.
* testsuite: Don't use GtkEventBox in gestures testBenjamin Otte2017-08-021-14/+14
|