From: gouldtj Date: Wed, 29 Mar 2006 05:40:07 +0000 (+0000) Subject: r10950@tres: ted | 2006-02-16 08:36:49 -0800 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aee78213e9f20fc67974eb07e7055fb7a2f2af97;p=inkscape.git 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. --- 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);