RE: [gtk-list] Centering windows
- From: "Arjan J. Molenaar" <arjan xirion nl>
- To: "'gtk-list redhat com'" <gtk-list redhat com>
- Subject: RE: [gtk-list] Centering windows
- Date: Thu, 23 Sep 1999 16:48:17 +0200
> -----Original Message-----
> From: Stephen Todd (CAH) [mailto:spt24@mrao.cam.ac.uk]
> Sent: Thursday, September 23, 1999 4:41 PM
> To: gtk-list@redhat.com
> Subject: [gtk-list] Centering windows
>
>
>
> I'm probably missing someting obvious, but how do I make a Gtk window
> appear in the centre of the screen?
>
> I've tried:
>
> gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
>
> but it seems to make no difference whatsoever. Where should it be in
> relation to my gtk_widget_show(dialog) line? Or is it my
> window manager
> (FVWM 2)?
>
> Thanks,
Hi,
Your problem is not a GTK+ problem. It's the window manager that does not grand your request. All you do by assigning a window GTK_WIN_POS_CENTER to the window is asking the enviromment (which is the window manager) to place the window in the center of the screen. So, you should check the config of your FVWM.
regards,
Arjan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]