diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-02-22 21:20:30 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-02-22 21:20:30 +0000 |
| commit | df01cba1240932472b939564f1854268a6b0b06f (patch) | |
| tree | bacdbf453dc4a2526ecb27b3cdc8d5880cab68f2 | |
| parent | f32ecc47bab3712e422bc12a8933612956651d9b (diff) | |
Public/private status was not honored for menu items.
git-svn-id: file:///fltk/svn/fltk/trunk@320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | fluid/Fl_Menu_Type.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fluid/Fl_Menu_Type.cxx b/fluid/Fl_Menu_Type.cxx index 3c9c66710..87e286a9b 100644 --- a/fluid/Fl_Menu_Type.cxx +++ b/fluid/Fl_Menu_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Menu_Type.cxx,v 1.14 1999/02/19 14:23:23 mike Exp $" +// "$Id: Fl_Menu_Type.cxx,v 1.15 1999/02/22 21:20:30 mike Exp $" // // Menu item code for the Fast Light Tool Kit (FLTK). // @@ -280,9 +280,10 @@ void Fl_Menu_Item_Type::write_code1() { const char *c = array_name(this); if (c) { - if (class_name()) + if (class_name()) { + write_public(public_); write_h(" static Fl_Menu_Item *%s;\n", c); - else + } else write_h("#define %s (%s+%d)\n", c, name, i); } @@ -528,5 +529,5 @@ void shortcut_in_cb(Shortcut_Button* i, void* v) { } // -// End of "$Id: Fl_Menu_Type.cxx,v 1.14 1999/02/19 14:23:23 mike Exp $". +// End of "$Id: Fl_Menu_Type.cxx,v 1.15 1999/02/22 21:20:30 mike Exp $". // |
