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 quartz: move atom/pasteboard type conversions functions to GDK 2013-03-28 13:10:38 +01:00
3DRings.xpm Initial revision 1997-11-24 22:37:52 +00:00
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 Insert cast to fix warning. Assign something to old_value to quiet gcc 2003-07-03 01:02:04 +00:00
blur-performance.c gsk: Move gtk/gtkcairoblur.c to gsk/gskcairoblur.c 2016-12-20 18:01:11 +01:00
check-n.xpm reworked the redrawing heuristics somewhat, this fixed a bunch of existing 1999-01-12 15:12:14 +00:00
check-y.xpm reworked the redrawing heuristics somewhat, this fixed a bunch of existing 1999-01-12 15:12:14 +00:00
dialog.ui grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
FilesQueue.xpm Initial revision 1997-11-24 22:37:52 +00:00
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 Add testiconview. A test for GtkIconView ...which uses this image. 2004-08-04 14:32:45 +00:00
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 Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
marble.xpm Initial revision 1997-11-24 22:37:52 +00:00
merge-1.ui Test handling of empty menus. 2003-09-30 20:55:24 +00:00
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 Change the XML format: <Root> element is replaced by <ui>, <menu> element 2003-08-27 22:22:28 +00:00
meson.build Add a list dnd example 2020-06-19 15:26:10 -04:00
Modeller.xpm Initial revision 1997-11-24 22:37:52 +00:00
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 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 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 Add GtkApplication 2010-06-07 16:46:30 -04:00
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: fix css 2016-10-16 18:17:21 +02:00
testgtk.1 Added gtk/testgtk.1 man page for testgtk 1998-03-24 04:01:21 +00:00
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 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 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 Update callers 2017-01-19 13:50:17 -05:00
testprintfileoperation.c Further updates from the GtkPrintContext functions rename. 2006-05-31 14:06:02 +00:00
testprintfileoperation.h perf/widgets.h tests/print-editor.c tests/prop-editor.h 2008-05-23 14:55:43 +00:00
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 handle case where there are no rows in the model 2001-01-09 17:45:34 +00:00
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 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 Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00