diff options
| author | Manolo Gouy <Manolo> | 2011-01-05 10:21:45 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-01-05 10:21:45 +0000 |
| commit | 4beb3b88e88c3ea070d0437d28b732a6f9d41174 (patch) | |
| tree | bb2aec298637035c42e9bde2d0a428aab19f7f2f /src/Fl_PostScript.cxx | |
| parent | 6320a7c6800ec052720f2117a73698b4360f7977 (diff) | |
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
Diffstat (limited to 'src/Fl_PostScript.cxx')
| -rw-r--r-- | src/Fl_PostScript.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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 <FL/Fl_PostScript.H> #include <FL/Fl_Native_File_Chooser.H> -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 |
