Ticket #1273 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

GtkFileChooserButton broken

Reported by: guest Owned by: somebody
Priority: blocker Milestone:
Component: general (Gtk+, Glib) Version:
Keywords: Cc: exbb2@…


There's no way to connect to "file-set" signal, as such there's no way to actually get selected file/folder.(fileChooserGetFilename returns CURRENT SELECTED filename, meaning that it will change WHILE user is clicking on files, not after he closed the dialog.)

Change History

in reply to: ↑ description   Changed 5 years ago by guest

And there's no way to connect "selection-changed" either. Gtk2hs only allows fileChooserDialogs now.

  Changed 5 years ago by guest

My tests show that fileChooserGetFilename doesn't behave the way you describe: it does return the correct values after the chooser dialog has been closed. Still, it seems reasonable to expose these two signals. (There's even been code to expose selection-changed sitting around in the repository but commented out since 2005, probably just by oversight). Next time I work on gtk2hs, my first task will be to convert file chooser signals to the new style, and I'll expose these signals during the conversion.

  Changed 5 years ago by dmwit

  • status changed from new to closed
  • resolution set to fixed

(copy of message from previous Trac that was missed during migration)

Done. fileSelectionChanged is available in darcs, and will be in the next release of gtk2hs. I don't see "file-set" in the official documentation at http://developer.gnome.org/gtk2/2.24/GtkFileChooser.html#GtkFileChooser.signals so that one will not be available.

Note: See TracTickets for help on using tickets.