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,

	Stephen Todd

--
Cavendish Astrophysics Group, University of Cambridge, UK



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