RE: [gtk-list] Re: Center a window



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]