RE: [gtk-list] Re: Center a window
- From: Stefan Jeske <jeske braunschweig netsurf de>
- To: federico nuclecu unam mx
- Cc: gtk-list redhat com
- Subject: RE: [gtk-list] Re: Center a window
- Date: Sun, 09 Nov 1997 20:42:29 +0100 (MET)
On 08-Nov-97 Federico Mena wrote:
>> What's the best way to center a window (e.g. a dialog) on the screen ?
>
> Try the following:
>
> gtk_window_position(mywindow, GTK_WIN_POS_CENTER);
That was the first I tried... doesn't work.
I used :
window = gtk_dialog_new ();
[...]
gtk_window_position (window, GTK_WIN_POS_CENTER);
gtk_widget_show_window (window);
---
------------------------------------------------------------
/ Stefan Jeske email: jeske@braunschweig.netsurf.de /
/ Sophienstr. 35 Fido: 2:241/550.5 /
/ 38118 Braunschweig Tel.: +49 531 2809142 /
------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]