summaryrefslogtreecommitdiff
path: root/fluid/Fl_Menu_Type.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/Fl_Menu_Type.cxx')
-rw-r--r--fluid/Fl_Menu_Type.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/fluid/Fl_Menu_Type.cxx b/fluid/Fl_Menu_Type.cxx
index e80199429..7cb6f7724 100644
--- a/fluid/Fl_Menu_Type.cxx
+++ b/fluid/Fl_Menu_Type.cxx
@@ -448,6 +448,16 @@ void Fl_Menu_Type::write_code2() {
Fl_Widget_Type::write_code2();
}
+void Fl_Menu_Type::copy_properties() {
+ Fl_Widget_Type::copy_properties();
+ Fl_Menu_ *s = (Fl_Menu_*)o, *d = (Fl_Menu_*)live_widget;
+ d->menu(s->menu());
+ d->down_box(s->down_box());
+ d->textcolor(s->textcolor());
+ d->textfont(s->textfont());
+ d->textsize(s->textsize());
+}
+
////////////////////////////////////////////////////////////////
#include <FL/Fl_Menu_Button.H>
@@ -472,6 +482,16 @@ Fl_Choice_Type Fl_Choice_type;
Fl_Input_Choice_Type Fl_Input_Choice_type;
+void Fl_Input_Choice_Type::copy_properties() {
+ Fl_Widget_Type::copy_properties();
+ Fl_Input_Choice *s = (Fl_Input_Choice*)o, *d = (Fl_Input_Choice*)live_widget;
+ d->menu(s->menu());
+ d->down_box(s->down_box());
+ d->textcolor(s->textcolor());
+ d->textfont(s->textfont());
+ d->textsize(s->textsize());
+}
+
////////////////////////////////////////////////////////////////
Fl_Menu_Bar_Type Fl_Menu_Bar_type;