Re: [gtk-list] GTKDIALOG position



Takdir CHOWDHURY wrote:
> 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.

 Go through the GDK manual. There you will find what you want.
 Hint: gdk_window_get_origin
       gdk_window_get_root_origin
       gdk_window_get_position
       gdk_window_get_geometry

 The GdkWindow of a GtkWidget is called using widget->window.

--
Pedro Medeiros



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