Re: Gtk::FileChooserDialog



Thanks a lot, it was really a stupid question !!!!






2006/2/27, John Spray <spray lyx org>:
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

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



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