From: gouldtj Date: Mon, 3 Mar 2008 04:54:07 +0000 (+0000) Subject: r18238@shi: ted | 2008-03-01 14:46:00 -0800 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4e543ccf4309bd0bd0bd80e458ddaff3d9626043;p=inkscape.git r18238@shi: ted | 2008-03-01 14:46:00 -0800 Fixing it so that input/output have OK/Cancel like they used to. --- diff --git a/src/extension/prefdialog.cpp b/src/extension/prefdialog.cpp index cf2f12853..9cfa39bd5 100644 --- a/src/extension/prefdialog.cpp +++ b/src/extension/prefdialog.cpp @@ -69,10 +69,10 @@ PrefDialog::PrefDialog (Glib::ustring name, gchar const * help, Gtk::Widget * co if (_help == NULL) help_button->set_sensitive(false); */ - _button_cancel = add_button(Gtk::Stock::CLOSE, Gtk::RESPONSE_CANCEL); + _button_cancel = add_button(_effect == NULL ? Gtk::Stock::CANCEL : Gtk::Stock::CLOSE, Gtk::RESPONSE_CANCEL); _button_cancel->set_use_stock(true); - _button_ok = add_button(Gtk::Stock::APPLY, Gtk::RESPONSE_OK); + _button_ok = add_button(_effect == NULL ? Gtk::Stock::OK : Gtk::Stock::APPLY, Gtk::RESPONSE_OK); _button_ok->set_use_stock(true); set_default_response(Gtk::RESPONSE_OK); _button_ok->grab_focus();