Skip to content
Snippets Groups Projects
Commit ede7c1db authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

call fl_register_images() explicitly (don't rely on loading the default
icons to initialize the extra image handlers)
parent 9aeb7380
No related branches found
No related tags found
No related merge requests found
// $Id: GUI.cpp,v 1.486 2006-01-28 07:07:11 geuzaine Exp $ // $Id: GUI.cpp,v 1.487 2006-02-02 16:01:13 geuzaine Exp $
// //
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
// //
...@@ -873,7 +873,10 @@ GUI::GUI(int argc, char **argv) ...@@ -873,7 +873,10 @@ GUI::GUI(int argc, char **argv)
Fl::scheme(CTX.scheme); Fl::scheme(CTX.scheme);
Fl_Tooltip::size(fontsize); Fl_Tooltip::size(fontsize);
// load system icons // register image formats not in core fltk library (jpeg/png)
fl_register_images();
// load default system icons (for file browser)
Fl_File_Icon::load_system_icons(); Fl_File_Icon::load_system_icons();
// add callback to respond to the Mac Finder (when you click on a // add callback to respond to the Mac Finder (when you click on a
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
#include <FL/Fl_Color_Chooser.H> #include <FL/Fl_Color_Chooser.H>
#include <FL/fl_ask.H> #include <FL/fl_ask.H>
#include <FL/Fl_Tooltip.H> #include <FL/Fl_Tooltip.H>
#include <FL/Fl_Shared_Image.H>
#include <FL/Fl_File_Icon.H> #include <FL/Fl_File_Icon.H>
#if defined(__APPLE__) && defined(HAVE_FLTK_1_1_5_OR_ABOVE) #if defined(__APPLE__) && defined(HAVE_FLTK_1_1_5_OR_ABOVE)
#include <FL/Fl_Sys_Menu_Bar.H> #include <FL/Fl_Sys_Menu_Bar.H>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment