From 36a77d3c101f8d90c336659d0b407c9d97211030 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 18 Nov 2006 00:36:01 +0000 Subject: [PATCH] enable Enter to activate filedialogs --- src/ui/dialog/filedialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } -- 2.30.2