Bug in Filechooserbutton????



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


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