[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Positioning Windows / Dialogs
- From: "Eric M. Pierce" <empierce mtu edu>
- To: gtk-app-devel-list redhat com
- Subject: Re: Positioning Windows / Dialogs
- Date: Mon, 11 Oct 1999 10:44:24 -0400 (EDT)
> I am currently writting an app that has a longish load time due to quite a
> bit of initialization code,
> for this reason i have added a "loading..." window at the start.
>
> The question I have is purely for cosmetic reasons, but how would I go about
> "centering" the window.
> GTK by default puts the window where it wants on the screen, what I want is
> to put it in the center,
> with progress bar etc ( Like the GIMP's loadup ) but I don't know how to
> position the window / dialog box.
>
> Can anyone give me a source snippet ?
>
> thanks
>
I think this should probably do it.
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]