openldev wrote:
I'm assuming that you want to select the file from a dialog, so you should use GtkFileChooserDialog. There is a simple example of how to do what you want in its API:
http://developer.gnome.org/doc/API/2.0/ ... ialog.htmlAlso, to set the default location, you would use gtk_file_chooser_set_current_folder() before running the dialog. Here's the reference for that function:
http://developer.gnome.org/doc/API/2.0/ ... ent-folderHope this helps!
hi
i am using this filechooser to send and receive a file. from one machine to another machine.
using "cp" command.. to receive a file through socket..
my problem is about file chooser...
if i send local files(means actual path of gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (filechooserwidget), "/root");)
from root to other machine it is successfully receiving at the other end.
but when i send non-local file (other than /root)
there is an error showing in the terminal.. at the receiving side
"cp: cannot stat `xxxxx-1.1.1.tar.gz': No such file or directory"
what is the problem with the filechooser..
can you help me
thank you in advance