On Tue, 2006-04-11 at 13:09 +0200, David Necas (Yeti) wrote:
> No, you should not.  GtkFileSelection is the old file
> selector, GtkFileChooser is the new one, they are two
> completely different classes.  You have to use
> GtkFileChooser methods, see
> 
> http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooser.html
> 
> There you can easily find gtk_file_chooser_get_filename()
> and gtk_file_chooser_get_filenames().

Thanks. Instant solution to my problem. I figured it must be something
very simple.

> BTW your typecasting is evil.  You can always disable the
> type checks GTK_FOO(foo) normally performs by defining
> G_DISABLE_CAST_CHECKS, but you can never enable type checks
> for raw (GtkFoo*)foo casts.

This is my first Gtk program, and I was concentrating on getting the
very basic things working. I'll look up the documentation on typecasting
in Gtk and start doing it "properly".

Cheers,

Ross-c

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to