Re: [gtk-list] Unidentified subject!



On Tue, 7 Jul 1998, Jeff Clement wrote:

> Hey,
> 
> Ok.  So I've got a window and I want it centered on the screen.  So far I know
> how to retreive the screen dimensions but I don't know how to obtain window
> dimenstion nor set them.  I tried the gtk_widget_set_uposition but it didn't
> seem to do anything.  

there is built in support for window centering in the GtkWindow widget.
just call

gtk_window_position (window, GTK_WIN_POS_CENTER);

> 
> Thanks,
> Jeff
>

---
ciaoTJ



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