$text->insert( ... - Drives me Nuts

From: Date: Mon, 19 Mar 2001 23:58:58 +0000
Subject: $text->insert( ... - Drives me Nuts
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1001@lists.php.net to get a copy of this message
I'm trying to get some text to insert into a text area. I keep getting the error message: insert() expects argument 1 to be gdkfont, string given in <b>note.php</b> on line <b>47</b><br> for the following: $text = & new GtkText(); $text->freeze(); $text->set_editable(TRUE); $text->insert(defaultfont, $text->style->black, NULL,$labeltext,-1); $text->thaw(); $text->show(); If I change $text->insert(defaultfont, $text->style->black, NULL,$labeltext,-1); to: $text->insert(NULL, $text->style->black, NULL,$labeltext,-1); I get this error: <b>Warning</b>: insert() expects argument 1 to be gdkfont, NULL given in <b>note.php</b> on line <b>47</b><br> Now if NULL isn't NULL, what is. Thanks in advance Martin Cameron

« previous php.gtk (#1001) next »