From 6a2288bb90b4d5bd0fe594d376d516a621254ba1 Mon Sep 17 00:00:00 2001 From: Clinton Freeman Date: Sun, 1 Apr 2012 21:01:18 -0400 Subject: [PATCH] centered about on parent window --- radiant/gtkdlgs.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 ); -- 2.39.2