From c23c4881d0f7fb4dbba037affc985e76279b347d Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 31 Jul 2001 09:56:52 +0000
Subject: [PATCH] *** empty log message ***

---
 Common/DefaultOptions.h |  2 +-
 Fltk/GUI.cpp            | 10 +++++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h
index b90f60319b..07ee4658cf 100644
--- a/Common/DefaultOptions.h
+++ b/Common/DefaultOptions.h
@@ -167,7 +167,7 @@ StringXNumber GeneralOptions_Number[] = {
     "Use trackball rotation mode" },
   { F|O, "ZoomFactor" , opt_general_zoom_factor , 1.1 ,
     "'Speed' of the middle mouse button zoom" },
-  { F|O, "DefaultPlugins" , opt_general_default_plugins , 1. ,
+  { F|O, "DefaultPlugins" , opt_general_default_plugins , 0. ,
     "Load default plugins on startup" },
   { F, "Clip0" , opt_general_clip0 , 0. ,
     "Enable clip plane 0" },
diff --git a/Fltk/GUI.cpp b/Fltk/GUI.cpp
index d7d57a97e2..33bc09b9a9 100644
--- a/Fltk/GUI.cpp
+++ b/Fltk/GUI.cpp
@@ -1,4 +1,4 @@
-// $Id: GUI.cpp,v 1.95 2001-07-31 09:51:36 geuzaine Exp $
+// $Id: GUI.cpp,v 1.96 2001-07-31 09:56:52 geuzaine Exp $
 
 // To make the interface as visually consistent as possible, please:
 // - use the BH, BW, WB, IW values for button heights/widths, window borders, etc.
@@ -1689,8 +1689,7 @@ void GUI::set_statistics(){
    the plugin on the top of the window
 */
 
-PluginDialogBox * GUI::create_plugin_window(GMSH_Plugin *p, int iView)
-{
+PluginDialogBox * GUI::create_plugin_window(GMSH_Plugin *p, int iView){
   char buffer[1024],namep[1024],copyright[256],author[256],help[1024];
 
   PluginDialogBox *pdb = new PluginDialogBox;
@@ -1729,6 +1728,11 @@ PluginDialogBox * GUI::create_plugin_window(GMSH_Plugin *p, int iView)
   ok->callback(view_plugin_cb, (void*)pair);
   cancel->labelsize(CTX.fontsize);
   cancel->callback(cancel_cb, (void*)pl_window);
+
+  if(CTX.center_windows)
+    pl_window->position(m_window->x()+m_window->w()/2-width/2,
+			m_window->y()+9*BH-height/2);
+
   pl_window->end();
    
   return pdb;
-- 
GitLab