gtk2/tests
Jonas Ådahl 2ff74eb667 gdk/toplevel: Negotiate surface size via a compute-size signal
GTK will not up front know how to correctly calculate a size, since it
will not be able to reliably predict the constraints that may exist
where it will be mapped.

Thus, to handle this, calculate the size of the toplevel by having GDK
emitting a signal called 'compute-size' that will contain information
needed for computing a toplevel window size.

This signal may be emitted at any time, e.g. during
gdk_toplevel_present(), or spontaneously if constraints change.

This also drops the max size from the toplevel layout, while moving the
min size from the toplevel layout struct to the struct passed via the
signal,

This needs changes to a test case where we make sure we process
GDK_CONFIGURE etc, which means we also needs to show the window and
process all pending events in the test-focus-chain test case.
2020-08-05 15:49:00 +02: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 grid layout: Rename some properties 2020-08-02 17:58:03 -04: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 Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
marble.xpm
merge-1.ui
merge-2.ui
merge-3.ui
meson.build Add a list dnd example 2020-06-19 15:26:10 -04:00
Modeller.xpm
motion-compression.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02: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 "gchar" with "char" 2020-07-25 00:47:36 +02:00
popover2.ui Drop the margin property 2020-02-25 20:59:04 -05:00
popover.ui
portland-rose.jpg Add a test for overlay blur 2017-09-04 14:28:16 -04:00
rendernode-create-tests.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
rendernode.c gdk/toplevel: Negotiate surface size via a compute-size signal 2020-08-05 15:49:00 +02:00
scrolling-performance.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02: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 gdk/toplevel: Negotiate surface size via a compute-size signal 2020-08-05 15:49:00 +02:00
simple.c tests: Add missing margin to simple test 2020-05-11 02:49:09 +05:00
syncscroll.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
test.xpm tests: Add common_cflags to build 2020-03-06 18:21:58 +01:00
testaccel.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testadjustsize.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testappchooser.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testappchooserbutton.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testapplication.desktop
testassistant.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
testbaseline.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02: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 "gchar" with "char" 2020-07-25 00:47:36 +02:00
testcellarea.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testcellrenderertext.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
testcenterbox.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testclipboard2.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
testcolumnview.c listview: Revise constructors 2020-07-26 18:27:23 -04:00
testcombo.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testcombochange.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
testdialog.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testdnd2.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testdnd.c Stop setting GTK_IM_MODULE_FILE 2020-06-28 13:42:02 -04:00
testdropdown.c dropdown: Revise constructors 2020-07-26 18:09:54 -04:00
testellipsise.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
testentrycompletion.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testentryicons.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
testerrors.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testexpand.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testfilechooser.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
testfilechooserbutton.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testflowbox.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testfontchooserdialog.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testfontoptions.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testframe.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
testfullscreen.c gdk/toplevel: Negotiate surface size via a compute-size signal 2020-08-05 15:49:00 +02: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 "gchar" with "char" 2020-07-25 00:47:36 +02:00
testgrid.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
testgridbaseline.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testgrouping.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
testgtk2.css
testgtk.1
testgtk.c testgtk: More GTimeVal eradication 2020-07-31 13:37:29 -04:00
testgtk.css tests: Fix testgtk 2020-05-11 18:12:18 +05:00
testheaderbar.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testheightforwidth.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testhover.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testiconview-keynav.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
testiconview.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02: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 Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testlevelbar.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
testlist2.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testlist3.c Remove ATK 2020-07-26 20:31:14 +01:00
testlist4.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testlist.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testlistdnd.c gridview: Revise constructors 2020-07-26 18:50:50 -04:00
testlistview-animating.c listview: Revise constructors 2020-07-26 18:27:23 -04:00
testlistview.c listview: Revise constructors 2020-07-26 18:27:23 -04:00
testlockbutton.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testlogout.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02: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 Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
testnotebookdnd.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testnouiprint.c
testoutsetshadowdrawing.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testoverlay.c grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
testoverlaystyleclass.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testperf.c build: bump to sysprof 4 ABI 2020-07-28 11:22:33 -07:00
testplacesview.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testpopover.c headerbar: Show title buttons by default 2020-07-02 23:51:16 +05:00
testprint.c
testprintfileoperation.c
testprintfileoperation.h
testrc.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testrevealer2.c headerbar: Show title buttons by default 2020-07-02 23:51:16 +05:00
testrevealer.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testscale.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
testscrolledge.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testscrolledwindow.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
testscrolltofocus.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
testselectionmode.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testsensitive.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testsounds.c Replace most remaining uses of container api 2020-05-11 22:38:21 -04:00
testspinbutton.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
testsplitheaders.ui grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
teststack.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02: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 Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testtexture.c Use gtk_window_set_child throughout 2020-05-04 22:53:08 -04:00
testtextview2.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
testtextview.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
testtooltips.c Replace "gfloat" with "float" 2020-07-25 00:47:36 +02:00
testtreechanging.c scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
testtreecolumns.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testtreecolumnsizing.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testtreednd.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testtreeedit.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testtreeflow.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
testtreefocus.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testtreemodel.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
testtreepos.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
testtreesort.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testtreeview-plan.txt
testtreeview.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testverticalcells.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
testvolumebutton.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
testwidgetfocus.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
testwidgettransforms.c testwidgettransforms: Fix GtkBox casts 2020-07-17 07:14:50 +02:00
testwindowdrag.c Change coordinate translation apis to take doubles 2020-05-17 17:17:31 -04:00
testwindowsize.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
treestoretest.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
variable.c
variable.h
video-timer.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00