[Gridflow-cvs] [svn] commit: r6165 - in /trunk: doc/flow_classes/gf/tk_button-help.pd src/classes_gui.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Aug 16 19:28:12 EDT 2010


Author: matju
Date: Mon Aug 16 19:28:12 2010
New Revision: 6165

Log:
make arg optional, and add help file

Added:
    trunk/doc/flow_classes/gf/tk_button-help.pd
Modified:
    trunk/src/classes_gui.cxx

Modified: trunk/src/classes_gui.cxx
==============================================================================
--- trunk/src/classes_gui.cxx (original)
+++ trunk/src/classes_gui.cxx Mon Aug 16 19:28:12 2010
@@ -465,10 +465,10 @@
 
 \class GFTkButton : GUI_FObject {
 	t_symbol *text;
-	\constructor (t_symbol *text) {
+	\constructor (t_symbol *text=0) {
 		sy=32;
 		sx=64;
-		this->text = text;
+		this->text = text?text:gensym("OK");
 		outline = "#eeeeee";
 	}
 	\decl 0 bang () {out[0]();}



More information about the Gridflow-cvs mailing list