From: buliabyak Date: Sat, 18 Nov 2006 00:36:01 +0000 (+0000) Subject: enable Enter to activate filedialogs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=36a77d3c101f8d90c336659d0b407c9d97211030;p=inkscape.git enable Enter to activate filedialogs --- diff --git a/src/ui/dialog/filedialog.cpp b/src/ui/dialog/filedialog.cpp index 78f6efaf8..4d796ff9b 100644 --- a/src/ui/dialog/filedialog.cpp +++ b/src/ui/dialog/filedialog.cpp @@ -913,7 +913,7 @@ FileOpenDialogImpl::FileOpenDialogImpl(const Glib::ustring &dir, sigc::mem_fun(*this, &FileOpenDialogImpl::updatePreviewCallback) ); add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); - add_button(Gtk::Stock::OPEN, Gtk::RESPONSE_OK); + set_default(*add_button(Gtk::Stock::OPEN, Gtk::RESPONSE_OK)); } @@ -1333,7 +1333,7 @@ FileSaveDialogImpl::FileSaveDialogImpl(const Glib::ustring &dir, // checkbox.set_sensitive(FALSE); add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); - add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_OK); + set_default(*add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_OK)); show_all_children(); } @@ -1978,7 +1978,7 @@ FileExportDialogImpl::FileExportDialogImpl(const Glib::ustring &dir, // checkbox.set_sensitive(FALSE); add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); - add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_OK); + set_default(*add_button(Gtk::Stock::SAVE, Gtk::RESPONSE_OK)); show_all_children(); }