gtk2/testsuite/gtk
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
..
file-chooser-test-dir build: Move gtk/tests to testsuite/gtk 2013-05-15 15:37:16 +02:00
focus-chain menubutton: Drop relief 2020-04-17 10:57:36 -04:00
icons testsuite: add a test for non-square symbolic icons 2015-06-12 08:55:23 -07:00
icons2 icon-theme: Test inheritance vs. generic fallback 2014-09-21 16:34:27 -04:00
ui Add some tests for new GtkBuilder syntax 2020-05-30 19:31:38 -04:00
accel.c Differentiate keypad keysyms in accelerators 2020-05-21 19:38:19 -04:00
accessible.c testsuite: Fix the accessible test 2020-03-20 10:03:04 -04:00
action.c Add a test for the previous fix 2020-06-01 13:52:50 -04:00
adjustment.c adjustment: Remove deprecated API 2016-10-18 00:29:19 +02:00
autotestkeywords.cc testsuite: Update C++ keywords test to GTK 3.0.0 2018-03-18 19:20:46 +01:00
bitmask.c testsuite: Stop using g_test_bug() 2019-05-12 17:28:18 +02:00
builder.c builder: Add support for parsing expressions 2020-05-30 17:47:47 -04:00
builderparser.c Print out the file name we're testing 2020-06-01 21:06:04 +01:00
cellarea.c treeview column: Make final 2019-05-28 23:22:57 -04:00
check-icon-names.c testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
constraint-solver.c Use explicit values for constraint strength 2019-07-01 12:39:24 +01:00
cssprovider.c cssprovider test: Remove style property test case 2017-07-19 21:27:14 -04:00
defaultvalue.c Add GtkMultiSelection 2020-06-03 13:32:57 -04:00
displayclose.c displayclose: Quietly skip if no X available 2020-05-15 14:58:58 -04:00
entry.c entry, spin button: Drop redundant API 2019-02-28 16:34:00 -05:00
expression.c Add some tests for expression binding 2020-05-30 19:26:46 -04:00
filter.c filter: Add tests 2020-05-30 17:42:09 -04:00
filterlistmodel.c filterlistmodel: Rewrite to use GtkFilter 2020-05-30 12:30:23 -04:00
filtermodel.c Replace gtk_widget_destroy everywhere 2020-05-11 12:20:59 -04:00
flattenlistmodel.c testsuite/gtk/flattenlistmodel.c: fix build 2020-03-22 10:53:59 +01:00
floating.c build: Move gtk/tests to testsuite/gtk 2013-05-15 15:37:16 +02:00
flowbox.c Add a test for a flowbox crash 2020-05-13 21:47:11 -04:00
gestures.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
grid-layout.c Fix minor typos 2020-05-28 11:00:03 +03:00
grid.c grid: Remove a test for grid container functionality 2020-05-11 22:21:39 -04:00
gtk.test.in Add a forgotten file 2017-10-18 18:52:06 +02:00
gtktreemodelrefcount.c testsuite: Strip newlines from g_warning and g_error 2016-02-28 12:23:12 -05:00
gtktreemodelrefcount.h build: Move gtk/tests to testsuite/gtk 2013-05-15 15:37:16 +02:00
icontheme.c icontheme: Update the api 2020-02-18 20:32:17 -05:00
listbox.c testsuite: Fix listbox tests 2020-05-11 22:21:39 -04:00
liststore.c build: Move gtk/tests to testsuite/gtk 2013-05-15 15:37:16 +02:00
main.c Fix minor typos 2020-05-28 11:00:03 +03:00
maplistmodel.c Fix leaks in tests 2019-12-04 18:24:56 -05:00
meson.build Make tooltip properties idiomatic 2020-06-05 20:32:26 +01:00
modelrefcount.c Replace gtk_widget_destroy everywhere 2020-05-11 12:20:59 -04:00
multiselection.c multiselection: Fix the select_range implementation 2020-06-05 14:57:59 -04:00
no-gtk-init.c testsuite: Stop using g_test_bug() 2019-05-12 17:28:18 +02:00
notify.c Add GtkMultiSelection 2020-06-03 13:32:57 -04:00
object.c testsuite: Drop the type-hint property from tests 2020-05-26 19:31:12 -04:00
objects-finalize.c Add GtkMultiSelection 2020-06-03 13:32:57 -04:00
papersize.c build: Move gtk/tests to testsuite/gtk 2013-05-15 15:37:16 +02:00
popover.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
propertylookuplistmodel.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
rbtree-crash.c testsuite: Don't g_print from tests 2020-03-20 10:03:04 -04:00
rbtree.c testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
recentmanager.c testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
regression-tests.c Use gtk_window_destroy 2020-05-11 12:20:57 -04:00
revealer-size.c Use gtk_revealer_set_child throughout 2020-05-04 22:53:08 -04:00
scrolledwindow.c Use gtk_scrolled_window_set_child throughout 2020-05-04 22:53:07 -04:00
searchbar.c Add basic searchbar set_key_capture_widget tests 2018-05-19 10:18:50 +02:00
shortcuts.c testsuite: Destroy surfaces 2020-05-16 09:12:18 -04:00
singleselection.c testsuite: Stop using g_test_bug() 2019-05-12 17:28:18 +02:00
slicelistmodel.c slicelistmodel: Fix two wrong computations 2020-02-14 03:15:22 +01:00
sorter.c sorter: Add tests 2020-05-30 19:26:44 -04:00
sortlistmodel.c Redo sort list model with GtkSorter 2020-05-30 19:26:44 -04:00
sortmodel.c Replace gtk_widget_destroy everywhere 2020-05-11 12:20:59 -04:00
spinbutton.c Add some spinbutton tests 2014-08-14 00:04:10 -04:00
templates.c Fix minor typos 2020-05-28 11:00:03 +03:00
test-focus-chain.c testsuite: Add some checks for focus states 2020-04-16 12:31:17 -04:00
textbuffer.c textview: Use paintables instead of textures, and fix the support 2020-02-06 17:47:56 +01:00
textiter.c testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
theme-validate.c testsuite: Add theme-validate test 2019-04-18 02:28:42 +02:00
tooltips.c Make tooltip properties idiomatic 2020-06-05 20:32:26 +01:00
treelistmodel.c Fix treelistmodel tests 2019-12-04 18:30:37 -05:00
treemodel.c testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
treemodel.h testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
treepath.c build: Move gtk/tests to testsuite/gtk 2013-05-15 15:37:16 +02:00
treesorter.c testsuite: Add tests for GtkTreeListSorter 2020-05-30 19:30:14 -04:00
treestore.c testsuite: Stop using g_test_bug() 2019-05-12 17:28:18 +02:00
treeview.c Build print backends with common_cflags 2020-05-19 08:32:33 +02:00
typename.c builder: Improve type name mangling 2019-12-13 14:21:44 -05:00
widget-refcount.c testsuite: add widget refcount test case 2020-05-11 12:20:59 -04:00
widgetorder.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
window.c Use gtk_window_destroy 2020-05-11 12:20:57 -04:00