gtk2/testsuite/gtk
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
..
file-chooser-test-dir
focus-chain grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
icons testsuite: add a test for non-square symbolic icons 2015-06-12 08:55:23 -07:00
icons2
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
action.c Add a test for the previous fix 2020-06-01 13:52:50 -04:00
adjustment.c Replace "gint" with "int" 2020-07-25 00:47:36 +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: Fix a memory leak in the bitmask tests 2020-07-08 17:44:16 -04:00
bitset.c bitset: Fix typo: gtk_bitset_slice() => gtk_bitset_splice() 2020-07-06 03:42:43 +02:00
builder.c grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
builderparser.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02: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 gdk/toplevel: Negotiate surface size via a compute-size signal 2020-08-05 15:49:00 +02:00
displayclose.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
entry.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
expression.c filterlistmodel: Make constructor transfer full 2020-07-26 18:04:40 -04:00
filter.c Merge branch 'list-constructors' into 'master' 2020-07-26 23:56:21 +00:00
filterlistmodel-exhaustive.c filterlistmodel: Make constructor transfer full 2020-07-26 18:04:40 -04:00
filterlistmodel.c filterlistmodel: Make constructor transfer full 2020-07-26 18:04:40 -04:00
filtermodel.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
flattenlistmodel.c flattenlistmodel: Make the constructor transfer full 2020-07-26 18:02:44 -04:00
floating.c
flowbox.c Add a test for a flowbox crash 2020-05-13 21:47:11 -04:00
gestures.c Replace "gdouble" with "double" 2020-07-25 00:47:36 +02:00
grid-layout.c grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
grid.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
gtk.test.in Add a forgotten file 2017-10-18 18:52:06 +02:00
gtktreemodelrefcount.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
gtktreemodelrefcount.h Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
icontheme.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
listbox.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
liststore.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
main.c Fix minor typos 2020-05-28 11:00:03 +03:00
maplistmodel.c maplistmodel: Make constructor transfer full 2020-07-26 18:02:51 -04:00
meson.build installed-tests: Fix the icontheme test 2020-08-01 23:24:36 -04:00
modelrefcount.c Replace gtk_widget_destroy everywhere 2020-05-11 12:20:59 -04:00
multiselection.c selectionfiltermodel: Make constructor allow-none 2020-07-26 18:04:40 -04:00
no-gtk-init.c testsuite: Stop using g_test_bug() 2019-05-12 17:28:18 +02:00
notify.c gdk/toplevel: Negotiate surface size via a compute-size signal 2020-08-05 15:49:00 +02:00
object.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
objects-finalize.c testsuite: Skip the skipping 2020-07-29 16:35:36 -04:00
papersize.c
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 Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
recentmanager.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02: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 scrolledwindow: Don't take adjustments in new() 2020-06-24 11:25:09 -04:00
searchbar.c Add basic searchbar set_key_capture_widget tests 2018-05-19 10:18:50 +02:00
shortcuts.c gdk/toplevel: Negotiate surface size via a compute-size signal 2020-08-05 15:49:00 +02:00
singleselection.c singleselection: Make constructor transfer full 2020-07-26 18:04:40 -04:00
slicelistmodel.c slicelistmodel: Make constructor transfer full 2020-07-26 18:04:40 -04:00
sorter.c sortlistmodel: Make constructor transfer full 2020-07-26 18:04:40 -04:00
sortlistmodel-exhaustive.c sortlistmodel: Make constructor transfer full 2020-07-26 18:04:40 -04:00
sortlistmodel.c sortlistmodel: Make constructor transfer full 2020-07-26 18:04:40 -04:00
sortmodel.c Replace gtk_widget_destroy everywhere 2020-05-11 12:20:59 -04:00
spinbutton.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
stringlist.c stringlist: Remove n_additions argument from gtk_string_list_splice() 2020-07-05 02:59:21 +02:00
templates.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
test-focus-chain.c gdk/toplevel: Negotiate surface size via a compute-size signal 2020-08-05 15:49:00 +02:00
textbuffer.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
textiter.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
theme-validate.c testsuite: Add theme-validate test 2019-04-18 02:28:42 +02:00
timsort.c timsort: Add change tracking to gtk_tim_sort_step() 2020-07-22 14:04:40 +02:00
tooltips.c Make tooltip properties idiomatic 2020-06-05 20:32:26 +01:00
treelistmodel.c treelistmodel: Make constructor transfer full 2020-07-26 18:04:40 -04:00
treemodel.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
treemodel.h Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
treepath.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
treesorter.c treelistmodel: Make constructor transfer full 2020-07-26 18:04:40 -04:00
treestore.c Replace "gint" with "int" 2020-07-25 00:47:36 +02:00
treeview.c Build print backends with common_cflags 2020-05-19 08:32:33 +02:00
typename.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02: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 Replace "gint" with "int" 2020-07-25 00:47:36 +02:00