summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add a notify function to GdkContentProviderEmmanuele Bassi2020-02-131-1/+1
| | | | | | The callback-based content providers need a GDestroyNotify function to free the data passed to them on construction, otherwise they are going to leak.
* tests/frame-stats.c: Include stdlib.hChun-wei Fan2020-02-111-0/+1
| | | | It is used for exit().
* Merge branch 'mainloop-cleanup' into 'master'Matthias Clasen2020-02-10115-279/+1174
|\ | | | | | | | | Mainloop cleanup See merge request GNOME/gtk!1404
| * Stop using gtk_main and gtk_main_quitMatthias Clasen2020-02-09115-279/+1174
| | | | | | | | Replace these calls with direct use of GMainContext api.
* | Merge branch 'icon-theme-api-rework' into 'master'Alexander Larsson2020-02-103-20/+108
|\ \ | |/ |/| | | | | Icon theme api rework See merge request GNOME/gtk!1390
| * icon paintable: Replace get_filename and get_resource_path with get_file()Alexander Larsson2020-02-101-9/+6
| | | | | | | | This returns a GFile which can represent both the above.
| * Remove stray spaceAlexander Larsson2020-02-071-1/+1
| |
| * Replace last users of gtk_icon_paintable_download_texture ()Alexander Larsson2020-02-062-12/+103
| | | | | | | | | | | | These now render the paintable to a cairo surface and convert that to a texture. This is sort of a hack, but its only used in two special cases internally and in two hacky test apps.
| * 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.
* | calendar: Remove day-selected-double-click signalTimm Bäder2020-02-071-24/+0
| | | | | | | | | | | | It doesn't really make sense to treat double clicks here different than single clicks (and is bad UX), and it also breaks switching months by quickly trying to single-click the last/first days in the calendar.
* | calendar: Remove month-changed signalTimm Bäder2020-02-071-12/+0
| | | | | | | | Listen to notify::month instead.
* | calendar: Return a GDateTime from get_date()Timm Bäder2020-02-071-45/+36
| |
* | calendar: Add accessors for display propertiesTimm Bäder2020-02-071-71/+43
| | | | | | | | | | Instead of having a display flags enum and bitfield, just add proper accessors for the properties, which is what we do everywhere else.
* | testcalendar: Remove unused functionTimm Bäder2020-02-071-23/+0
| |
* | calendar: Remove detailsTimm Bäder2020-02-071-267/+5
| | | | | | | | | | | | | | This is an unused feature that's way too complicated for a default calendar widget and complicates the implementation a lot. Since we want to eventually replace this with actual widgets, remove the details support now.
* | testcalendar: Close window properlyTimm Bäder2020-02-071-0/+1
| |
* | GtkToolbar: removeBenjamin Otte2020-02-073-801/+0
| |
* | css: Remove .primary-toolbarBenjamin Otte2020-02-071-211/+0
| | | | | | | | It's not used anywhere anymore.
* | css: Remove .inline-toolbarBenjamin Otte2020-02-072-241/+0
|/ | | | It's not used anywhere anymore.
* 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
|