DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2361
Version: 2.0-current


The problem with themes...

Themes rely on two functions, one is hard coded and the other is
a pointer that can never change because it relies on the hard
coded 'result' of a call to fltk_theme on the fltk side, which
does NOT do the same thing as the same named function on the
plugin side.
      
      theme(Theme f){ theme_ = f; }
      
should not set theme_, but instead it should set fltk_theme
which should be changed to a pointer.
    
was
    extern "C" bool fltk_theme();
is
    extern "C" bool (*fltk_theme)() = no_theme_present;

where bool no_theme_present() does what fltk_theme() used to do.
    
Currently testing.  It seems to be working.  The other certainly
didn't.
        
The windows.theme using these mods is loading and doing something 
but it doesn't seem to be doing much and the KDE.theme is crashing 
at INIFile::load(kderc) on the plugin side.
    
But it's coming along.  Stay tuned.

.


Link: http://www.fltk.org/str.php?L2361
Version: 2.0-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to