Re: how to determine maximum possible window size?
- From: Paul Davis <paul linuxaudiosystems com>
- To: Chris MacGregor <chris-gtk-list bouncingdog com>
- Cc: "'gtk-list gnome org'" <gtk-list gnome org>
- Subject: Re: how to determine maximum possible window size?
- Date: Tue, 05 Feb 2008 23:11:04 -0500
On Tue, 2008-02-05 at 19:41 -0800, Chris MacGregor wrote:
> On 02/05/2008 05:21 PM, Paul Davis wrote:
> > On Tue, 2008-02-05 at 16:36 -0800, Chris MacGregor wrote:
> >> Thanks, but those functions don't account for the space occupied by
> >> things like panels. Any suggestions for how to deal with that? (That was
> >> the question I was trying to ask.)
> >
> > that wouldn't be a part of GTK, but would part of GNOME. GTK is useful
> > on systems without panels, with panels, with permanent (almost) top
> > level menus, etc etc etc. you can even use GTK on a system without any
> > window manager ...
>
> Does GTK not have any way of knowing how big a window will be when maximized?
> Should I be asking this question on a GNOME list? Is there simply no
> portable way of doing this?
my "portable" way to do it is to ask how big the window is *after* the
change has taken place, rather than try to guess ahead of time. This is
particularly important when you want differentiate between "fullscreen"
and "maximized", which are not necessarily equivalent.
> Perhaps this is information that GTK *SHOULD* make available to apps - part of
> the point is to hide the system-dependent hassles from the app, right?
the information you want to hide is not part of the windowing system
(X11, win32/GDI, quartz), its part of the desktop system (GNOME, KDE,
Cocoa+WM etc). GTK itself is a widget toolkit; GNOME provides lots of
cool libraries (as does KDE and others) to interact with the desktop
system.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]