Re: Re: Menu Help
| From: | Scott Mattocks | Date: | Mon, 18 Jul 2005 14:42:05 +0000 |
| Subject: | Re: Re: Menu Help | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6057@lists.php.net to get a copy of this message | ||
Sorry for the double post. This originally got set to the dev list but I think it belongs here.
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