From 4beb3b88e88c3ea070d0437d28b732a6f9d41174 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 5 Jan 2011 10:21:45 +0000 Subject: Renamed Fl_Device::type() to Fl_Device::class_name() to avoid conflict or confusion with Fl_Widget::type(). Added a setter function Fl_Device::class_name(const char *). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_PostScript.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_PostScript.cxx') diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx index 5e98e899e..712cd3253 100644 --- a/src/Fl_PostScript.cxx +++ b/src/Fl_PostScript.cxx @@ -32,8 +32,8 @@ #include #include -const char *Fl_PostScript_Graphics_Driver::device_type = "Fl_PostScript_Graphics_Driver"; -const char *Fl_PostScript_File_Device::device_type = "Fl_PostScript_File_Device"; +const char *Fl_PostScript_Graphics_Driver::class_id = "Fl_PostScript_Graphics_Driver"; +const char *Fl_PostScript_File_Device::class_id = "Fl_PostScript_File_Device"; /** \brief Label of the PostScript file chooser window */ const char *Fl_PostScript_File_Device::file_chooser_title = "Select a .ps file"; @@ -47,7 +47,7 @@ Fl_PostScript_Graphics_Driver::Fl_PostScript_Graphics_Driver(void) lang_level_ = 2; mask = 0; ps_filename_ = NULL; - type_ = device_type; + class_name(class_id); scale_x = scale_y = 1.; bg_r = bg_g = bg_b = 255; } @@ -62,7 +62,7 @@ Fl_PostScript_Graphics_Driver::~Fl_PostScript_Graphics_Driver() { */ Fl_PostScript_File_Device::Fl_PostScript_File_Device(void) { - type_ = device_type; + class_name(class_id); #ifdef __APPLE__ gc = fl_gc; // the display context is used by fl_text_extents() #endif -- cgit v1.2.3