Re: Gtk::FileChooserDialog



On Mon, 2006-02-27 at 09:52 +0100, Mickael Drean wrote:
>   That's seem to be stupid but in a Gtk::FileChooserDialog there is no
> "ok" or "cancel" button?

  Gtk::FileChooserDialog chooser (_("Open Something"),
    Gtk::FILE_CHOOSER_ACTION_OPEN);

  chooser.add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
  chooser.add_button (Gtk::Stock::OPEN, Gtk::RESPONSE_OK);
  chooser.set_default_response (Gtk::RESPONSE_OK);

John




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