From dda543869acdba66eb530e9ec1adabe338777d93 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 1 Apr 2003 17:14:59 +0000
Subject: [PATCH] Better UI consistency

---
 Fltk/Callbacks.cpp | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/Fltk/Callbacks.cpp b/Fltk/Callbacks.cpp
index c474bd6572..b386c8e203 100644
--- a/Fltk/Callbacks.cpp
+++ b/Fltk/Callbacks.cpp
@@ -1,4 +1,4 @@
-// $Id: Callbacks.cpp,v 1.171 2003-04-01 17:05:31 geuzaine Exp $
+// $Id: Callbacks.cpp,v 1.172 2003-04-01 17:14:59 geuzaine Exp $
 //
 // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
 //
@@ -817,9 +817,16 @@ void general_options_rotation_center_select_cb(CALLBACK_ARGS)
   Msg(STATUS3N, "Select Point ('q'=quit)");
   ib = SelectEntity(ENT_POINT, &v, &c, &s);
   if(ib == 1) {
-    opt_general_rotation_center0(0, GMSH_SET|GMSH_GUI, v->Pos.X);
-    opt_general_rotation_center1(0, GMSH_SET|GMSH_GUI, v->Pos.Y);
-    opt_general_rotation_center2(0, GMSH_SET|GMSH_GUI, v->Pos.Z);
+    // This would bypass the "Apply" button... Not necessarily bad,
+    // but it's not consistent with the rest of the GUI.
+    //opt_general_rotation_center0(0, GMSH_SET|GMSH_GUI, v->Pos.X);
+    //opt_general_rotation_center1(0, GMSH_SET|GMSH_GUI, v->Pos.Y);
+    //opt_general_rotation_center2(0, GMSH_SET|GMSH_GUI, v->Pos.Z);
+
+    // This is more conform to the way we do things elsewhere:
+    WID->gen_value[8]->value(v->Pos.X);
+    WID->gen_value[9]->value(v->Pos.Y);
+    WID->gen_value[10]->value(v->Pos.Z);
   }
   ZeroHighlight(THEM);
   Draw();
-- 
GitLab