Don't open display when generating source code for Fl_Help_View

widget (STR #1318)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5658 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2007-02-02 20:09:53 +00:00
parent a4814c41c3
commit 3fb13c36d7
2 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -624,8 +624,10 @@ public:
virtual const char *type_name() {return "Fl_Help_View";}
Fl_Widget *widget(int x,int y,int w,int h) {
Fl_Help_View *myo = new Fl_Help_View(x,y,w,h);
myo->value("<HTML><BODY><H1>Fl_Help_View Widget</H1>"
"<P>This is a Fl_Help_View widget.</P></BODY></HTML>");
if (!compile_only) {
myo->value("<HTML><BODY><H1>Fl_Help_View Widget</H1>"
"<P>This is a Fl_Help_View widget.</P></BODY></HTML>");
}
return myo;}
Fl_Widget_Type *_make() {return new Fl_Help_View_Type();}
int pixmapID() { return 35; }