Re: Accessing filenames from file choosers
- From: Ross Clement <rclement dmu ac uk>
- To: "David Necas (Yeti)" <yeti physics muni cz>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Accessing filenames from file choosers
- Date: Tue, 11 Apr 2006 12:54:40 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]