From: Clinton Freeman Date: Mon, 2 Apr 2012 01:01:18 +0000 (-0400) Subject: centered about on parent window X-Git-Tag: xonotic-v0.7.0~16^2~3^2~1^2^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6a2288bb90b4d5bd0fe594d376d516a621254ba1;p=xonotic%2Fnetradiant.git centered about on parent window --- diff --git a/radiant/gtkdlgs.cpp b/radiant/gtkdlgs.cpp index 21237640..eeeab109 100644 --- a/radiant/gtkdlgs.cpp +++ b/radiant/gtkdlgs.cpp @@ -2520,6 +2520,8 @@ void DoAbout(){ // create dialog window GtkWidget *dlg = gtk_window_new( GTK_WINDOW_TOPLEVEL ); + gtk_window_set_transient_for( GTK_WINDOW( dlg ), GTK_WINDOW( g_pParentWnd->m_pWidget ) ); + gtk_window_set_position( GTK_WINDOW( dlg ), GTK_WIN_POS_CENTER_ON_PARENT ); gtk_window_set_title( GTK_WINDOW( dlg ), _( "About GtkRadiant" ) ); gtk_window_set_resizable( GTK_WINDOW( dlg ), FALSE ); gtk_signal_connect( GTK_OBJECT( dlg ), "delete_event", @@ -2668,6 +2670,7 @@ void DoAbout(){ GTK_SIGNAL_FUNC( about_button_changelog ), NULL ); */ + // show it gtk_grab_add( dlg ); gtk_widget_show( dlg );