gtk2/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 quartz: move atom/pasteboard type conversions functions to GDK 2013-03-28 13:10:38 +01:00
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 gsk: Move gtk/gtkcairoblur.c to gsk/gskcairoblur.c 2016-12-20 18:01:11 +01:00
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 tests/animated-resizing: Split frame statistics out into a separate file 2013-04-23 14:04:40 -04:00
gnome-textfile.png
gradient1.png Make styleexamples work 2011-01-03 12:34:23 -05:00
gtkgears.c Fix minor typos 2020-05-28 11:00:03 +03:00
gtkgears.h tests: Make gtkgears compile without complaints 2014-10-14 14:33:08 +02:00
listmodel.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
marble.xpm
merge-1.ui
merge-2.ui Add UI manager attribute to always show image in menu items 2009-11-27 19:14:43 +01:00
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 GtkMenuSectionBox: Always show separators for labeled sections 2014-04-29 12:19:53 -04:00
portland-rose.jpg Add a test for overlay blur 2017-09-04 14:28:16 -04:00
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 Add GtkApplication 2010-06-07 16:46:30 -04:00
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 tests: Test the x11-specific error trap api 2017-11-17 00:08:24 -05:00
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: fix css 2016-10-16 18:17:21 +02:00
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 Bump GLib dependency to 2.35 2012-11-04 13:01:38 -05:00
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 Update callers 2017-01-19 13:50:17 -05:00
testprintfileoperation.c
testprintfileoperation.h
testrc.c Update callers 2017-01-19 13:50:17 -05:00
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 tests/animated-resizing: Split frame statistics out into a separate file 2013-04-23 14:04:40 -04:00
variable.h Fix another header guard oversight 2014-12-08 19:34:23 -05:00
video-timer.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00