[Glade-devel] Window mess with glade-3



--=-ORatzSovH2FDucOWhgV/
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wed, 2004-06-30 at 12:36, Micha=C5=82 Byrecki wrote:
On Wed, 30 Jun 2004 01:54:12 +0200
Owen Taylor <otaylor redhat com> wrote:
=20
The GTK+ team discourages the use of GTK_WIN_POS_CENTER. The GTK+
team *strongly* discourages the use of GTK_WIN_POS_CENTER_ALWAYS.
=20
Hello Owen.
=20
Then what should i use? GTK_WIN_POS_MOUSE? I took a snapshoot of the
left upper corner of my crt, so that you could check out how does that
look by the default position: http://www.elektronika.org/windowpos.jpg

Basically, if a window is being positioned offscreen with the default
settings, then you should:

 A) If this is happening with the combination of GTK+ and metacity
    then make sure a bug is filed in GNOME bugzilla, and  use thhe
    least-problematical alternative. (GTK_WIN_POS_CENTER, here), with
    a comment with a reference to that bug number.
   =20
    (This may be related to
     http://bugzilla.gnome.org/show_bug.cgi?id=3D92094)

 B) If this is happening with any other window manager, file a bug
    with your window manager author, and leave the code with the=20
    default settings.=20

And, where and why exactly GTK+ team discourages using
GTK_WIN_POS_CENTER? If it was up to me, i'd better have this dialog
window in the center than in its 2/3 off the screen.

Dialogs should be positioned related to their parent windows and
positioned onscreen. If this isn't happening with the default
settings, then that needs to be fixed in GTK+ and/or metacity, not
worked around in every app.

GTK_WIN_POS_CENTER is a bad idea because it will typically result
in the relationship between the dialog and the window being=20
obscured.

GTK_WIN_POS_CENTER_ALWAYS is a really bad idea because repositioning
windows after they have been mapped typically means fighting the
user.

Regards,
                                                Owen


--=-ORatzSovH2FDucOWhgV/
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQBA4vWwS+2LB0B90LERAvIpAKC+u5iaJJMR7ld5z84yXtd8ypR7AgCgxr87
l9YTDVpfrn3CmSDUhzF6t80=
=26XE
-----END PGP SIGNATURE-----

--=-ORatzSovH2FDucOWhgV/--




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]