Ticket #1273 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

GtkFileChooserButton broken

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

Description

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 2 years ago by guest

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

  Changed 2 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 2 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.