Question about handling GtkFileChooser



Hi All,
I have a app in which there are three GtkFileChooser and based on the file selected by one of them i want to change the contents of the other two. So if i select a foo in any of the file choosers, others should reflect the same filename, but if i choose foobar, all of them should clear their contents.
I am using libglade.

So the solution i am thinking of is have a callback for selection-changed and pass the glade xml to it.
In the callback extract the other two choosers from glade do stuff on them, or do i create a struct for the other two choosers and pas that in the callback, since g_signal_connect does not support more than 4 args.

So any pointers on the best way to handle this would be highly appreciated.

Thanks.
Huzaifa Sidhpurwala.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]