gtk/testsuite
Emmanuele Bassi 6b096e5c5b Make tooltip properties idiomatic
The tooltip handling in GtkWidget is "special":

 - the string is stored inside the qdata instead of the private
   instance data
 - the accessors call g_object_set() and g_object_get(), and the
   logic is all inside the property implementation, instead of
   being the other way around
 - the getters return a copy of the string
 - the setters don't really notify all the involved properties

The GtkWidgetAccessible uses the (escaped) tooltip text as a source for
the accessible object description, which means it has to store the
tooltip inside the object qdata, and update its copy at construction and
property notification time.

We can simplify this whole circus by making the tooltip properties (text
and markup) more idiomatic:

 - notify all side-effect properties
 - return a constant string from the getter
 - if tooltip-text is set:
   - store the text as is
   - escape the markup and store it separately for the markup getter
 - if tooltip-markup is set:
   - store the markup as is
   - parse the markup and store it separately for the text getter

The part of the testtooltips interactive test that checks that the
getters are doing the right thing is now part of the gtk testsuite, so
we ensure we don't regress in behaviour.
2020-06-05 20:32:26 +01:00
..
a11y tetsuite/a11y: Pass common_cflags to build 2020-05-19 08:32:33 +02:00
css testsuite: Remove window decoration nodes from reference results 2020-05-20 17:06:54 +02:00
gdk tests: Centralize our test setup a bit 2020-05-15 14:11:53 -04:00
gsk compare-render: Fix some memory leaks 2020-05-24 17:14:18 +02:00
gtk Make tooltip properties idiomatic 2020-06-05 20:32:26 +01:00
performance tests: Allow setting a subdir for output 2020-05-15 14:11:53 -04:00
reftests reftest: Clean up reftest_inhibit_snapshot() 2020-06-04 15:45:29 +02:00
tools tests: Centralize our test setup a bit 2020-05-15 14:11:53 -04:00
meson.build testsuite: Remove GDK_DEBUG=misc 2020-05-18 16:38:11 -04:00