From 9bc285409f6ad3e66d0d558cd1131d6494b65a96 Mon Sep 17 00:00:00 2001
From: Jacques Grelet <jacques.grelet@ird.fr>
Date: Thu, 12 Feb 2009 22:01:56 +0000
Subject: [PATCH] move Thermo.jpg use by aboutDialog.m to tsg_icon/Thermo.jpg
 add DEFAULT_PATH_FILE in arg

---
 Thermo.jpg => tsg_icon/Thermo.jpg | Bin
 tsg_util/aboutDialog.m            |   4 ++--
 tsgqc.m                           |   2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
 rename Thermo.jpg => tsg_icon/Thermo.jpg (100%)

diff --git a/Thermo.jpg b/tsg_icon/Thermo.jpg
similarity index 100%
rename from Thermo.jpg
rename to tsg_icon/Thermo.jpg
diff --git a/tsg_util/aboutDialog.m b/tsg_util/aboutDialog.m
index 71715f0..10772ba 100644
--- a/tsg_util/aboutDialog.m
+++ b/tsg_util/aboutDialog.m
@@ -1,4 +1,4 @@
-function aboutDialog(hTsgGUI)
+function aboutDialog(hTsgGUI, DEFAULT_PATH_FILE)
 %
 % Input
 % -----
@@ -41,7 +41,7 @@ hCenterPanel = uipanel( ...
 % properties, to review
 % ---------------------
 axes('parent',hCenterPanel,'DataAspectRatioMode','manual');
-img = image(imread('Thermo.jpg'));
+img = image(imread(strcat(DEFAULT_PATH_FILE, 'tsg_icon', filesep, 'Thermo.jpg')));
 set(img, 'clipping', 'off','ButtonDownFcn', @quitAboutCallback);
 axis off; axis fill;
 axis image;
diff --git a/tsgqc.m b/tsgqc.m
index 9d40b91..6fc504b 100644
--- a/tsgqc.m
+++ b/tsgqc.m
@@ -2822,7 +2822,7 @@ hrbInterpCancel = uicontrol( ...
 % -------------------------------------------------------------------
   function AboutMenuCallback(hObject, eventdata)
     %splash('Thermo.jpg', 3000);
-    aboutDialog(hMainFig);
+    aboutDialog(hMainFig, DEFAULT_PATH_FILE);
   end
 
 %% HeaderMenuCallback
-- 
GitLab