Re: Re: Menu Help
| From: | Christopher Logan | Date: | Mon, 18 Jul 2005 15:32:33 +0000 |
| Subject: | Re: Re: Menu Help | ||
| References: | 1 2 3 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1458@lists.php.net to get a copy of this message | ||
But which function would I use to do that? Also no ok or submit button is showing how can I get them added?
Thanks,
Christopher Logan
Scott Mattocks wrote:
Hi Christopher, Christopher Logan wrote:I am trying to create the same thing I got the File -> Open menu and the GtkFileChooserDialog to work. Just trying to figure out now how to get the selected file name and location back from the dialog then I suppose buffer it and add it to the textarea. Here is what I have thus far: http://www.okphp.org/downloads/texteditor.txtWhat you need to do is create a function that is called when the user hits the OK/Submit/Whatever button on the file chooser. That function should be passed the fileChooser and the textView so that it can get the file name, then get the file contents and then put them in the textView. Scott