gtk/tests
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
..
dummy-headers
3DRings.xpm
animated-resizing.c display: Remove unneeded getters 2020-05-17 07:32:37 +02:00
animated-revealing.c Use gtk_revealer_set_child throughout 2020-05-04 22:53:08 -04:00
apple-red.png
blur-performance.c
check-n.xpm
check-y.xpm
dialog.ui tests: Fix testdialogtest 2020-05-11 03:36:51 +05:00
FilesQueue.xpm
frame-stats.c tests: Add common_cflags to build 2020-03-06 18:21:58 +01:00
frame-stats.h
gnome-textfile.png
gradient1.png
gtkgears.c Fix minor typos 2020-05-28 11:00:03 +03:00
gtkgears.h
listmodel.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
marble.xpm
merge-1.ui
merge-2.ui
merge-3.ui
meson.build Add GtkDropDown 2020-05-30 19:31:38 -04:00
Modeller.xpm
motion-compression.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
mydialog2.ui tests: Fix testdialogtest 2020-05-11 03:36:51 +05:00
mydialog.ui Drop the can-default property 2019-04-28 23:28:39 +00:00
overlayscroll.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
popover2.ui Drop the margin property 2020-02-25 20:59:04 -05:00
popover.ui
portland-rose.jpg
rendernode-create-tests.c tests: Add common_cflags to build 2020-03-06 18:21:58 +01:00
rendernode.c tests: Use g_free(), not free() 2019-05-21 07:23:30 +02:00
scrolling-performance.c tests: Fix scrolling performance test 2020-05-13 17:10:00 -04:00
selectionmode.ui tests: Fix testselectionmode 2020-05-11 19:21:03 +05:00
service-login.oga Add a quick sound test 2020-04-29 10:54:40 -04:00
service-logout.oga Add a quick sound test 2020-04-29 10:54:40 -04:00
showrendernode.c showrendernode: Set widget overflow 2020-05-16 22:04:00 +02:00
simple.c tests: Add missing margin to simple test 2020-05-11 02:49:09 +05:00
syncscroll.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
test.xpm tests: Add common_cflags to build 2020-03-06 18:21:58 +01:00
testaccel.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testadjustsize.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testappchooser.c tests: Remove gtk_dialog_run() 2020-05-12 13:45:15 +01:00
testappchooserbutton.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testapplication.desktop
testassistant.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testbaseline.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testblur.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testborderdrawing.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testcalendar.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testcellarea.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testcellrenderertext.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testcenterbox.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testclipboard2.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testcolumnview.c Add GtkTreeListRowSorter 2020-05-30 19:30:14 -04:00
testcombo.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testcombochange.c tests: Remove gtk_dialog_run() 2020-05-12 13:45:15 +01:00
testdialog.c tests: Remove gtk_dialog_run() 2020-05-12 13:45:15 +01:00
testdnd2.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testdnd.c tests: Fix testdnd popup 2020-05-11 03:38:10 +05:00
testdropdown.c Add GtkDropDown 2020-05-30 19:31:38 -04:00
testellipsise.c Change coordinate translation apis to take doubles 2020-05-17 17:17:31 -04:00
testentrycompletion.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testentryicons.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testerrors.c
testexpand.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testfilechooser.c tests: Remove gtk_dialog_run() 2020-05-12 13:45:15 +01:00
testfilechooserbutton.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testflowbox.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testfontchooserdialog.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testfontoptions.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testframe.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testfullscreen.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testgaction.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testglarea.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testglblending.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testgmenu.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testgrid.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testgridbaseline.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testgrouping.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testgtk2.css
testgtk.1
testgtk.c Fix minor typos 2020-05-28 11:00:03 +03:00
testgtk.css tests: Fix testgtk 2020-05-11 18:12:18 +05:00
testheaderbar.c tests: Rename testheaderbar2 to testheaderbar 2020-05-14 20:15:59 -04:00
testheightforwidth.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testhover.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testiconview-keynav.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testiconview.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testinfobar.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testinhibitshortcuts.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testkineticscrolling.c testkineticscrolling: Make this work again 2020-05-04 22:53:08 -04:00
testlevelbar.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testlist2.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testlist3.c Change coordinate translation apis to take doubles 2020-05-17 17:17:31 -04:00
testlist4.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testlist.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testlistview-animating.c listview: Expose GtkListItemFactory APIs 2020-05-30 19:26:45 -04:00
testlistview.c listitem: Make this a GObject 2020-05-30 19:26:46 -04:00
testlockbutton.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testlogout.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testmenubutton.c tests: Stop explicitly showing widgets 2020-05-11 20:15:57 +05:00
testmodelbutton.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testmountoperation.c Stop using gtk_main and gtk_main_quit 2020-02-09 23:12:32 -05:00
testnotebookdnd.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testnouiprint.c
testoutsetshadowdrawing.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testoverlay.c Change coordinate translation apis to take doubles 2020-05-17 17:17:31 -04:00
testoverlaystyleclass.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testperf.c Prototype a sysprof helper 2020-01-21 17:31:48 -05:00
testplacesview.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testpopover.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testprint.c
testprintfileoperation.c
testprintfileoperation.h
testrc.c
testrevealer2.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testrevealer.c Use gtk_window_destroy 2020-05-11 12:20:57 -04:00
testscale.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testscrolledge.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testscrolledwindow.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testscrolltofocus.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testselectionmode.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testsensitive.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testsounds.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testspinbutton.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testsplitheaders.ui Drop the margin property 2020-02-25 20:59:04 -05:00
teststack.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
teststackedheaders.ui tests: Fix teststackedheader 2020-05-11 19:33:05 +05:00
testswitch.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testtexthistory.c texthistory: add GtkTextHistory helper 2019-11-05 09:34:29 -08:00
testtexture.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testtextview2.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testtextview.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testtooltips.c Make tooltip properties idiomatic 2020-06-05 20:32:26 +01:00
testtreechanging.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testtreecolumns.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testtreecolumnsizing.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testtreednd.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testtreeedit.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testtreeflow.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testtreefocus.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testtreemodel.c tests: Add common_cflags to build 2020-03-06 18:21:58 +01:00
testtreepos.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testtreesort.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testtreeview-plan.txt
testtreeview.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testverticalcells.c test: Stop using stock-size for teestverticalcells 2020-05-11 19:51:18 +05:00
testvolumebutton.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testwidgetfocus.c Fix minor typos 2020-05-28 11:00:03 +03:00
testwidgettransforms.c Change coordinate translation apis to take doubles 2020-05-17 17:17:31 -04:00
testwindowdrag.c Change coordinate translation apis to take doubles 2020-05-17 17:17:31 -04:00
testwindowsize.c tests: Remove gtk_dialog_run() 2020-05-12 13:45:15 +01:00
treestoretest.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
variable.c
variable.h
video-timer.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00