From: buliabyak Date: Sat, 26 Jan 2008 18:26:58 +0000 (+0000) Subject: at least gray out the remove button if we can't remove it when no grids X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0a49dd1991669c32933b013eb847f1cbe8b3381d;p=inkscape.git at least gray out the remove button if we can't remove it when no grids --- diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index 5ed737cf7..acbbdb63b 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -405,9 +405,9 @@ DocumentProperties::update_gridspage() _grids_notebook.show_all(); if (grids_present) - _grids_button_remove.show(); + _grids_button_remove.set_sensitive(true); else - _grids_button_remove.hide(); + _grids_button_remove.set_sensitive(false); } /** @@ -441,7 +441,6 @@ DocumentProperties::build_gridspage() _grids_vbox.pack_start(_grids_label_def, false, false); _grids_vbox.pack_start(_grids_notebook, false, false); _grids_vbox.pack_start(_grids_button_remove, false, false); - _grids_button_remove.hide(); update_gridspage(); }