Re: show window in center screen



Hi

See gtk_window_set_position().

I'm not sure, if you need to realize a window, before using
gtk_window_set_position(), so maybe you need to call:

gtk_widget_realize( widget );
gtk_window_set_position( GTK_WINDOW( widget ), GTK_WIN_POS_CENTER );
gtk_widget_show( widget );

HTH

Jan-Marek



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