summaryrefslogtreecommitdiff
path: root/fluid/Fl_Window_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-12-20 12:21:24 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-12-20 12:21:24 +0000
commit150fc6e7f79934e6732d0a55966c39e63ad2a9e4 (patch)
tree73996e362fcf8fd1cdeb66afdf872b8e7c2c4a50 /fluid/Fl_Window_Type.cxx
parenta35defedd5bf0b5e5a377a5c311bed6edc4a3f57 (diff)
Used Fluid to generate Fluid files. Fixed two naming issues for the new Fl_Int_Input type, generated by Fluid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
-rw-r--r--fluid/Fl_Window_Type.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index 153b0608f..6bf1e06f0 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -84,7 +84,7 @@ void guides_cb(Fl_Check_Button *i, long) {
}
}
-void grid_cb(Fl_Input *i, long v) {
+void grid_cb(Fl_Int_Input *i, long v) {
int n = atoi(i->value());
if (n < 0) n = 0;
switch (v) {
@@ -165,16 +165,23 @@ void i18n_type_cb(Fl_Choice *c, void *) {
void i18n_text_cb(Fl_Input *i, void *) {
undo_checkpoint();
-
+
if (i == i18n_function_input)
i18n_function = i->value();
else if (i == i18n_file_input)
i18n_file = i->value();
- else if (i == i18n_set_input)
- i18n_set = i->value();
else if (i == i18n_include_input)
i18n_include = i->value();
+
+ set_modflag(1);
+}
+void i18n_int_cb(Fl_Int_Input *i, void *) {
+ undo_checkpoint();
+
+ if (i == i18n_set_input)
+ i18n_set = i->value();
+
set_modflag(1);
}