From 3fb13c36d7f7edf96efb900c76afd25faefb0fc2 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 2 Feb 2007 20:09:53 +0000 Subject: 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 --- fluid/factory.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fluid') diff --git a/fluid/factory.cxx b/fluid/factory.cxx index f45624066..78723a167 100644 --- a/fluid/factory.cxx +++ b/fluid/factory.cxx @@ -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("

Fl_Help_View Widget

" - "

This is a Fl_Help_View widget.

"); + if (!compile_only) { + myo->value("

Fl_Help_View Widget

" + "

This is a Fl_Help_View widget.

"); + } return myo;} Fl_Widget_Type *_make() {return new Fl_Help_View_Type();} int pixmapID() { return 35; } -- cgit v1.2.3