summaryrefslogtreecommitdiff
path: root/fluid/Fl_Window_Type.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-03-20 00:12:21 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-03-20 00:12:21 +0000
commit2cef7d91d3332ace57efeb10c820552938c45f6d (patch)
tree751db4e0d5cf86724130cbe4920bbd9a0d8ad26f /fluid/Fl_Window_Type.cxx
parent46476b4e37c9fd63d0fe258e1cb148fe5d76e279 (diff)
Hide/Show Widget Bin and Overlays, instead of checks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
-rw-r--r--fluid/Fl_Window_Type.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index e5a038657..d348ee158 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -922,12 +922,11 @@ void Fl_Window_Type::draw_overlay() {
fl_rectf(mybx,mybt-5,5,5);
}
-extern Fl_Menu_Bar *main_menubar;
+extern Fl_Menu_Item Main_Menu[];
// Calculate new bounding box of selected widgets:
void Fl_Window_Type::fix_overlay() {
- Fl_Menu_Item *item = (Fl_Menu_Item *)main_menubar->find_item("&Edit/O&verlays");
- if (item) item->set();
+ Main_Menu[36].label("Hide O&verlays");
overlays_invisible = 0;
recalc = 1;
((Overlay_Window *)(this->o))->redraw_overlay();
@@ -941,6 +940,10 @@ void redraw_overlays() {
void toggle_overlays(Fl_Widget *,void *) {
overlays_invisible = !overlays_invisible;
+
+ if (overlays_invisible) Main_Menu[36].label("Show O&verlays");
+ else Main_Menu[36].label("Hide O&verlays");
+
for (Fl_Type *o=Fl_Type::first; o; o=o->next)
if (o->is_window()) {
Fl_Widget_Type* w = (Fl_Widget_Type*)o;