summaryrefslogtreecommitdiffstats
path: root/src/extension/prefdialog.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2008-03-03 04:54:07 +0000
committergouldtj <gouldtj@users.sourceforge.net>2008-03-03 04:54:07 +0000
commit1d93f56ccdad02c9c165a5952ee3eab31b561ad6 (patch)
treeadae0a33471c2d914d6ed47186f3156374b9d0b3 /src/extension/prefdialog.cpp
parentr18237@shi: ted | 2008-03-01 14:41:25 -0800 (diff)
downloadinkscape-1d93f56ccdad02c9c165a5952ee3eab31b561ad6.tar.gz
inkscape-1d93f56ccdad02c9c165a5952ee3eab31b561ad6.zip
r18238@shi: ted | 2008-03-01 14:46:00 -0800
Fixing it so that input/output have OK/Cancel like they used to. (bzr r4935)
Diffstat (limited to 'src/extension/prefdialog.cpp')
-rw-r--r--src/extension/prefdialog.cpp4
1 files changed, 2 insertions, 2 deletions
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();