Re: [PATCH] supportig ->set_uposition
- From: "muppet" <scott asofyet org>
- To: <gtk-perl-list gnome org>
- Subject: Re: [PATCH] supportig -&gt;set_uposition
- Date: Wed, 9 Jul 2003 11:16:08 -0400 (EDT)
muppet said:
Thierry Vignaud said:
this patch had support for gtk_widget_set_uposition().
i do know it's deprecated but we need it for the drakx installer. unlike
some other deprecated api, there's no replacement for setting position
other than centered.
the workaround is to realize and then move the window.
the changes from 1.2 to 2.0 document says "gtk_widget_set_uposition() is
deprecated; use gtk_window_move(), gtk_fixed_put(), or gtk_layout_put()
instead."
gtk_window_move is new since gtk-2.0.x
http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-move
this came up a while back in a discussion about how to restore saved window
positions[1], and isn't specific to gtk2-perl... . the problem is that window
managers can ignore the initial request, and i've had them ignore the
uposition request rather insistently. if you are in control of the window
manager (or, in the case of the installer, you aren't using a window manager?)
then you should be assured that you can get this to work.
[1] http://lists.gnome.org/archives/gtk-perl-list/2003-January/msg00086.html
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]