Re: GtkFileChooser
- From: Harring Figueiredo <harringf yahoo com>
- To: John Cupitt <jcupitt gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkFileChooser
- Date: Thu, 2 Dec 2004 12:02:48 -0800 (PST)
John,
Thanks again for the reply. I took a look at the test program as you
suggested. I got my code now to show only folders (it is exactly what I want).
There is little problem though.
Even though I connect the "response" signal to a callback, it seems that the
dialog_run doesn't return until there are no folders selected, i.e if a folder
contains subfolders, a click on the "Open" button "navigates" that folder.
I have tried this:
g_signal_connect (dialog, "response",
G_CALLBACK (dir_response_cb), NULL);
gtk_dialog_run (GTK_DIALOG (dialog));
The problem is that if a folder has subfolders, the "Open" button 'opens' the
folders, an calls the callback function, but does not return from the
dialog_run() call.
I also have tried:
if ( gtk_dialog_run (GTK_DIALOG (dialog)) == ...RESP..._ACCEPT)
get-folder-name
gtk_widget_destroy();
Again, it only returns when there are no more folders to be 'navigated' or
opened.
I am sure I am missing something really stupid somewhere --
Harring.
--- John Cupitt <jcupitt gmail com> wrote:
I think it does work (unless I misunderstand you, in which case sorry), try
gtk+-2.4.x/tests/testfilechooser
set it to SELECT_FOLDER, pick a folder, click OK.
On Thu, 2 Dec 2004 07:08:39 -0800 (PST), Harring Figueiredo
<harringf yahoo com> wrote:
Yes.. except that it does not allow me to pick a folder name. i.e, if I
click
on "Open", it will not close and return the name of the folder, it
actually
naigates the folder contents.. that is not what I want.
__________________________________
Do you Yahoo!?
All your favorites on one personal page ? Try My Yahoo!
http://my.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]