mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 12:41:07 +00:00
2ff74eb667
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.
83 lines
2.5 KiB
C
83 lines
2.5 KiB
C
/* GDK - The GIMP Drawing Kit
|
|
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/*
|
|
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
|
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
* files for a list of changes. These files are distributed with
|
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
|
*/
|
|
|
|
#ifndef __GDK_H__
|
|
#define __GDK_H__
|
|
|
|
#define __GDK_H_INSIDE__
|
|
|
|
#include <gdk/gdkapplaunchcontext.h>
|
|
#include <gdk/gdkcairo.h>
|
|
#include <gdk/gdkcairocontext.h>
|
|
#include <gdk/gdkclipboard.h>
|
|
#include <gdk/gdkconfig.h>
|
|
#include <gdk/gdkcontentdeserializer.h>
|
|
#include <gdk/gdkcontentformats.h>
|
|
#include <gdk/gdkcontentprovider.h>
|
|
#include <gdk/gdkcontentproviderimpl.h>
|
|
#include <gdk/gdkcontentserializer.h>
|
|
#include <gdk/gdkcursor.h>
|
|
#include <gdk/gdkdevice.h>
|
|
#include <gdk/gdkdevicepad.h>
|
|
#include <gdk/gdkdevicetool.h>
|
|
#include <gdk/gdkdisplay.h>
|
|
#include <gdk/gdkdisplaymanager.h>
|
|
#include <gdk/gdkdrag.h>
|
|
#include <gdk/gdkdragsurface.h>
|
|
#include <gdk/gdkdrawcontext.h>
|
|
#include <gdk/gdkdrop.h>
|
|
#include <gdk/gdkenumtypes.h>
|
|
#include <gdk/gdkevents.h>
|
|
#include <gdk/gdkframeclock.h>
|
|
#include <gdk/gdkframetimings.h>
|
|
#include <gdk/gdkglcontext.h>
|
|
#include <gdk/gdkgltexture.h>
|
|
#include <gdk/gdkkeys.h>
|
|
#include <gdk/gdkkeysyms.h>
|
|
#include <gdk/gdkmemorytexture.h>
|
|
#include <gdk/gdkmonitor.h>
|
|
#include <gdk/gdkpaintable.h>
|
|
#include <gdk/gdkpango.h>
|
|
#include <gdk/gdkpixbuf.h>
|
|
#include <gdk/gdkpopup.h>
|
|
#include <gdk/gdkpopuplayout.h>
|
|
#include <gdk/gdkrectangle.h>
|
|
#include <gdk/gdkrgba.h>
|
|
#include <gdk/gdkseat.h>
|
|
#include <gdk/gdksnapshot.h>
|
|
#include <gdk/gdksurface.h>
|
|
#include <gdk/gdktexture.h>
|
|
#include <gdk/gdktoplevel.h>
|
|
#include <gdk/gdktoplevellayout.h>
|
|
#include <gdk/gdktoplevelsize.h>
|
|
#include <gdk/gdktypes.h>
|
|
#include <gdk/gdkversionmacros.h>
|
|
#include <gdk/gdkvulkancontext.h>
|
|
|
|
#include <gdk/gdk-autocleanup.h>
|
|
|
|
#undef __GDK_H_INSIDE__
|
|
|
|
#endif /* __GDK_H__ */
|