Hello.

Look at this code:

   Gtk::Main kit(argc, argv);
   Gtk::Window w;
   Gtk::FileChooserButton b;

   b.set_filename("/home/jamf/Desktop/file.txt");
   w.add(b);
   w.show_all_children();
   kit.run(w);

   return 0;

The label in FileChooserButton is empty when the set_filename is called with a file in Desktop. This happens only in Desktop directory, ie, there is no problem with files in subdirectories, "/home/jamf/Desktop/test/file.txt" work ok for me.

Regards:
Juan Ángel Moreno Fernández
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to