summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-01-26 18:26:58 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-01-26 18:26:58 +0000
commit940853c91ec8772022ace9596d186e3446425407 (patch)
treec20b967c88849c051e50c8155b7f21ce49bc4dc0 /src
parentfix: show lpe parameters when new effect is applied (diff)
downloadinkscape-940853c91ec8772022ace9596d186e3446425407.tar.gz
inkscape-940853c91ec8772022ace9596d186e3446425407.zip
at least gray out the remove button if we can't remove it when no grids
(bzr r4602)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/document-properties.cpp5
1 files 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();
}