Re: [gtk-list] GTKDIALOG position
- From: Jeroen Benckhuijsen <jeroen benck demon nl>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] GTKDIALOG position
- Date: Tue, 04 Apr 2000 17:42:49 +0200
Takdir CHOWDHURY wrote:
>
> I am working on a GTK+ application.
> If user makes an attempt to shutdown the application, a dialog windows(imple
> mented with gtk_dialog_new) appears
> and asks the user if he is really wanna quit.
>
> But my dialog widget always get postitioned in different places of my deskto
> p.
> It seems that my WM(Enlightenment) chooses a vacant place everytime it
> displays the widget. And almost the corner side of my desktop get selected.
> I want this widget to be displayed at the middle of my main window.
> Is there any way? I have gone thorugh the Gtk+ online manual but found
> nothing relevant.
gtk_window_set_position(GTK_WINDOW(dialog),GTK_WIN_POS_CENTER);
Jeroen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]