summaryrefslogtreecommitdiffstats
path: root/src/extension/prefdialog.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2006-03-29 05:40:07 +0000
committergouldtj <gouldtj@users.sourceforge.net>2006-03-29 05:40:07 +0000
commitc56aa569246f7c51b6253b0d85fcc9cd12fb9f74 (patch)
treee8df64e7e64ca46d1ad28f13a9d9dc8b7b8bd7b2 /src/extension/prefdialog.cpp
parentr10949@tres: ted | 2006-02-16 08:33:36 -0800 (diff)
downloadinkscape-c56aa569246f7c51b6253b0d85fcc9cd12fb9f74.tar.gz
inkscape-c56aa569246f7c51b6253b0d85fcc9cd12fb9f74.zip
r10950@tres: ted | 2006-02-16 08:36:49 -0800
Instead of showing the help button or not, let's make it so it is sensitive or not. This will be a better UI. (bzr r340)
Diffstat (limited to 'src/extension/prefdialog.cpp')
-rw-r--r--src/extension/prefdialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/extension/prefdialog.cpp b/src/extension/prefdialog.cpp
index ec4ae041f..fea52d4ec 100644
--- a/src/extension/prefdialog.cpp
+++ b/src/extension/prefdialog.cpp
@@ -23,8 +23,9 @@ PrefDialog::PrefDialog (Glib::ustring name, gchar const * help, Gtk::Widget * co
{
this->get_vbox()->pack_start(*controls, true, true, 5);
- if (_help != NULL)
- add_button(Gtk::Stock::HELP, Gtk::RESPONSE_HELP);
+ Gtk::Button * help_button = add_button(Gtk::Stock::HELP, Gtk::RESPONSE_HELP);
+ if (_help == NULL)
+ help_button->set_sensitive(false);
add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
Gtk::Button * ok = add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);