From 0c9e3d408929a2b5deed0e2380ac90893cf0821e Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 23 Nov 2001 08:27:37 +0000
Subject: [PATCH] ColorBar_Window->take_focus()

---
 Fltk/GUI.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Fltk/GUI.cpp b/Fltk/GUI.cpp
index 1bf7a21f4f..46b5ce68de 100644
--- a/Fltk/GUI.cpp
+++ b/Fltk/GUI.cpp
@@ -1,4 +1,4 @@
-// $Id: GUI.cpp,v 1.135 2001-11-22 11:33:12 geuzaine Exp $
+// $Id: GUI.cpp,v 1.136 2001-11-23 08:27:37 geuzaine Exp $
 
 // To make the interface as visually consistent as possible, please:
 // - use the IW, BB, BH, BW and WB values
@@ -2341,6 +2341,7 @@ void GUI::create_view_options_window(int num){
       o->hide();
       view_colorbar_window = new Colorbar_Window(2*WB, 2*WB+1*BH,
 						 width-4*WB, height-5*WB-2*BH);
+      view_colorbar_window->take_focus(); //necessary for fltk >= 1.1.0
       view_colorbar_window->end();
       //no set_changed since colorbarwindow has its own callbacks
       o->end();
-- 
GitLab