From 0a49dd1991669c32933b013eb847f1cbe8b3381d Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 26 Jan 2008 18:26:58 +0000 Subject: [PATCH] at least gray out the remove button if we can't remove it when no grids --- src/ui/dialog/document-properties.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); } -- 2.30.2