On Tuesday 02 October 2007, you wrote:
Hi Tero,
GtkFileChooser uses the current working directory (try to launch your app from the terminal at another directory than home). If you use few GTK+ programs, you could just edit the menu .desktop files to specify the working directory (see http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html , entry Path).
Hi Ricardo! Yes, the File chooser indeed uses the current working directory, and setting it appropriately solves the issue for what my simple needs are concerned.
If you can and would like to help out, making it configurable; the code in question is at file gtkfilechooserdefault.c, function gtk_file_chooser_default_get_current_folder. You specify the gtkrc entry to parse at gtksettings.c, and use its API to get the property from the file at question (grep some property name to see the settings API is used). [1] Now, you can create ~/.gtkrc-2.0 with your entry specified.
Would you like to give it a try, or should I? (this seems to be a fast fix, but I rather not break the system installing some other gtk+ :))
Thanks for you advice and offer for help! Unfortunately, I'm not a programmer, and I'm afraid although I'd like to, I fall at the "if you can" step :( I doubt there'd much to test about this if someone chose to implement it, as it is so simple a job, but if any such help is of any use, I'm available. Thanks again, Tero Pesonen -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org