diff options
| author | Ted Gould <ted@gould.cx> | 2006-03-29 05:40:07 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2006-03-29 05:40:07 +0000 |
| commit | c56aa569246f7c51b6253b0d85fcc9cd12fb9f74 (patch) | |
| tree | e8df64e7e64ca46d1ad28f13a9d9dc8b7b8bd7b2 /src/extension/prefdialog.cpp | |
| parent | r10949@tres: ted | 2006-02-16 08:33:36 -0800 (diff) | |
| download | inkscape-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.cpp | 5 |
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); |
