Author: manolo Date: 2011-01-06 00:46:54 -0800 (Thu, 06 Jan 2011) New Revision: 8197 Log: Classes Fl_Printer and Fl_Postscript_Printer: added missing class_name() calls.
Modified: branches/branch-1.3/FL/Fl_Printer.H branches/branch-1.3/src/Fl_Printer.cxx Modified: branches/branch-1.3/FL/Fl_Printer.H =================================================================== --- branches/branch-1.3/FL/Fl_Printer.H 2011-01-06 06:06:57 UTC (rev 8196) +++ branches/branch-1.3/FL/Fl_Printer.H 2011-01-06 08:46:54 UTC (rev 8197) @@ -25,7 +25,7 @@ // http://www.fltk.org/str.php // /** \file Fl_Printer.H - \brief declaration of class Fl_Printer. + \brief declaration of classes Fl_Printer, Fl_System_Printer and Fl_PostScript_Printer. */ #ifndef Fl_Printer_H @@ -108,7 +108,7 @@ friend class Fl_Printer; protected: /** \brief The constructor */ - Fl_PostScript_Printer(void) {}; + Fl_PostScript_Printer(void) {class_name(class_id);}; public: static const char *class_id; int start_job(int pages, int *firstpage = NULL, int *lastpage = NULL); Modified: branches/branch-1.3/src/Fl_Printer.cxx =================================================================== --- branches/branch-1.3/src/Fl_Printer.cxx 2011-01-06 06:06:57 UTC (rev 8196) +++ branches/branch-1.3/src/Fl_Printer.cxx 2011-01-06 08:46:54 UTC (rev 8197) @@ -77,11 +77,12 @@ const char *Fl_Printer::property_cancel = "Cancel"; const char *Fl_Printer::class_id = "Fl_Printer"; -#if defined(__APPLE__) || defined(WIN32) -const char *Fl_System_Printer::class_id = "Fl_Printer"; -#elif !defined(FL_DOXYGEN) -const char *Fl_PostScript_Printer::class_id = "Fl_Printer"; +#if defined(__APPLE__) || defined(WIN32) || defined(FL_DOXYGEN) +const char *Fl_System_Printer::class_id = Fl_Printer::class_id; #endif +#if !( defined(__APPLE__) || defined(WIN32) ) +const char *Fl_PostScript_Printer::class_id = Fl_Printer::class_id; +#endif #if defined(__APPLE__) || defined(WIN32) void Fl_System_Printer::set_current(void) @@ -101,6 +102,7 @@ #else printer = new Fl_PostScript_Printer(); #endif + class_name(class_id); } int Fl_Printer::start_job(int pagecount, int *frompage, int *topage) _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
