summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* IconTheme: Never fail a lookup or icon loadAlexander Larsson2020-02-062-2/+2
| | | | | | | | | | | | | If icon lookup fails or if loading it fails later, just always fall back to the built in image-missing icon. Nobody is handling missing icons in a sane way anyway. If you *truly* need to handle missing icons, you need to manually use gtk_icon_theme_has_icon(). While changing the loading code I also fixed an issue where it was always passing "png" to pixbuf, now it also handles "xpm" if that is the filename suffix.
* Merge branch 'master.msvc' into 'master'Matthias Clasen2020-02-051-1/+6
|\ | | | | | | | | Fix building recent GTK master on Visual Studio See merge request GNOME/gtk!1369
| * tests/testdnd2.c: Don't include unistd.h unconditionallyChun-wei Fan2020-02-031-1/+6
| | | | | | | | Instead, on Windows when it is not available, include io.h for close()
* | Rename GtkIcon to GtkIconPaintableAlexander Larsson2020-02-043-8/+8
| |
* | icontheme: Remove GENERIC_FALLBACKSBenjamin Otte2020-02-041-1/+1
| | | | | | | | | | | | | | | | | | Instead, rely on people passing fallbacks explicitly. Alternatively, GThemedIcon provides the functionality to create fallbacks, which is what GtkImage and the testsuite now use. That method is slightly better, too, so the expected test results have been updated accordingly.
* | icontheme: Pass fallbacks as optional argument to lookup_icon()Benjamin Otte2020-02-043-2/+5
| | | | | | | | This way, we can remove gtk_icon_theme_choose_icon() completely.
* | icontheme: Remove contextsBenjamin Otte2020-02-041-8/+1
| | | | | | | | | | | | | | | | There is no way to query contexts or do anything useful with them. So don't keep track of them and don't make them an argument in public APIs with the docs saying "I don't know what to use here, maybe read some spec somewhere".
* | icontheme: Remove gtk_icon_get_base_size() and gtk_icon_get_base_dir()Benjamin Otte2020-02-041-1/+0
| | | | | | | | | | | | | | | | Those functions are unused and the documentation says "Returns some random number that the icon theme creator chose" which does not seem at all useful and an implementation detail. So get rid of it.
* | icontheme: Remove GTK_ICON_LOOKUP_USE_BUILTINBenjamin Otte2020-02-041-1/+1
| | | | | | | | It's unused.
* | icontheme: Make text direction a lookup argumentBenjamin Otte2020-02-043-10/+21
| | | | | | | | | | | | Most users were just forgetting to set the proper flags. And flags aren't the right way to set this anyway, it was just acceptable as a workaround during GTK3 to not break API.
* | icontheme: Remove async APIsBenjamin Otte2020-02-041-53/+0
| | | | | | | | | | | | | | Widgets would not use them properly. In fact, the only user was using them wrong. As icons are loaded async by default, this call isn't necessary.
* | icontheme: Remove gtk_icon_theme_get_default()Benjamin Otte2020-02-042-2/+4
|/ | | | | | | The API encouraged wrong usage - most of the users were indeed wrong. Use the correct version instead: gtk_icon_theme_get_for_display (gtk_widget_get_display ())
* Remove primary monitor apiMatthias Clasen2020-01-301-1/+1
| | | | | | | | We only have implementations of this on X11 and Win32, so make it available as backend api there. Update all callers to use either the backend api, or just monitor 0.
* icon-theme: Add i/o priority to choose_icon_async()Alexander Larsson2020-01-301-1/+1
| | | | | This is set on the GTask and lower priority will be loaded before, this can be used to prioritize some icons for preloading.
* Remove final references to "icon info" with just "icon"Alexander Larsson2020-01-302-12/+12
|
* icon-theme: Drop the _for_scale() versions and always take scaleAlexander Larsson2020-01-303-5/+5
|
* icon-theme: Rename GtkIconInfo to GtkIconAlexander Larsson2020-01-303-10/+10
|
* icon-theme: Use gtk_icon_theme_choose_icon_async in testsAlexander Larsson2020-01-291-18/+11
|
* icons: Convert use of load() to download_texture()Alexander Larsson2020-01-292-27/+38
|
* Convert trivial users of icon theme loading to use info as paintableAlexander Larsson2020-01-291-17/+9
|
* testcalendar: Don't do dumb stuff with font sizes.Benjamin Otte2020-01-281-27/+0
| | | | If you want to test font stuff, it's 2020 and we have an inspector.
* stylecontext: Remove GTK_STYLE_PROPERTY_* definesBenjamin Otte2020-01-281-1/+1
| | | | They shouldn't be (and aren't) used anymore.
* Fix testsuite without -Dprofiler=trueMatthias Clasen2020-01-211-4/+4
| | | | Only build and run the performance tests if we have sysprof.
* Prototype a sysprof helperMatthias Clasen2020-01-212-0/+145
| | | | | | | | | | | | | | | | | This is an attempt to see how we can use sysprof data in our tests to extract useful performance numbers. Use it as a wrapper around any GTK+ process: ./testperf ./gtk4-widget-factory Currently, it repeatedly runs the given commandline, extracts the first css validation time from the resulting syscap file, and prints out the min/max/avg of the runs at the end. This relies on the environment variable GTK_DEBUG_AUTO_QUIT to cause the process to exit soon after launch.
* widget: Initialize cssnode name asapBenjamin Otte2020-01-211-3/+0
| | | | That way, it's correct in subclass's init functions.
* Update all callersMatthias Clasen2020-01-113-8/+2
|
* testdnd: Fix up for current apiMatthias Clasen2020-01-091-16/+40
|
* Update all usersMatthias Clasen2020-01-083-4/+38
|
* testdnd2: Fix the text caseMatthias Clasen2020-01-081-0/+1
| | | | We must take mime types into account when checking.
* Add another dnd testcaseMatthias Clasen2020-01-082-0/+401
| | | | | This one tests nested drop sites and interaction between DND and other gestures.
* Update all callersMatthias Clasen2020-01-086-4/+8
|
* testdnd2: Use GDK content formats apiMatthias Clasen2020-01-081-5/+6
|
* testdnd2: Update to the api change in the previous commitMatthias Clasen2020-01-081-2/+2
|
* testtoolbar: Use gtk_widget_add_controller for drag sourceMatthias Clasen2020-01-081-1/+1
|
* testlist3: Use gtk_widget_add_controller for drag sourceMatthias Clasen2020-01-081-1/+1
|
* testdnd2: Use gtk_widget_add_controller for drag sourceMatthias Clasen2020-01-081-2/+2
|
* testdnd: Use gtk_widget_add_controller for drag sourceMatthias Clasen2020-01-081-1/+1
|
* dragsource: Reshuffle api a bitMatthias Clasen2020-01-084-5/+15
| | | | | | | | | | | | Remove arguments from the constructor. For actions, we now default to COPY, which is the most common one that we should enable by default (MOVE requires handling deletion on the the source side, and ASK only makes sense if we have multiple actions). For the content provider, we add a new ::prepare signal where it should be provided just-in-time.
* dragsource: Tweak api, update all callersMatthias Clasen2020-01-082-2/+6
| | | | | Add GdkDrag back to signals, drop ::drag-data-delete, and replace it with a boolean in ::drag-end.
* Remove gtk_drop_target_get_targetMatthias Clasen2020-01-082-2/+2
| | | | | | Now that drop targets are event controllers, we can just use gtk_event_controller_get_widget. Update all callers.
* Replace gtk_drop_target_attach/detachMatthias Clasen2020-01-086-9/+9
| | | | | | Since drop targets are now just event controller, gtk_widget_add/remove_controller works just fine for them.
* droptarget: Drop defaults flagsMatthias Clasen2020-01-086-9/+9
| | | | | | These no longer have any effect. Update all callers.
* testdnd2: Add a test for ASK handlingMatthias Clasen2020-01-081-11/+79
| | | | | | It is a bit unfortunate that we need to extend the lifespan of the drop object by keeping our own ref, but I don't see a better way of doing it.
* testtreednd: Use the new asyn selection readMatthias Clasen2020-01-081-5/+20
|
* testlist3: Use async read api for selectionMatthias Clasen2020-01-081-5/+20
|
* testtreednd: Convert to GtkDropTargetMatthias Clasen2020-01-081-4/+6
|
* testnotebookdnd: Fix, partiallyMatthias Clasen2020-01-081-15/+49
| | | | Make this mostly work again.
* testtoolbar: Convert to GtkDropTargetMatthias Clasen2020-01-081-18/+13
|
* testlist3: Convert to GtkDropTargetMatthias Clasen2020-01-081-8/+6
|
* testdnd: Convert to GtkDropTargetMatthias Clasen2020-01-081-88/+81
|