]> git.lyx.org Git - features.git/blobdiff - src/frontends/gnome/GUIRunTime.C
add a setDefaults to GUIRuntime + some const changes in tabular + some c_str to work...
[features.git] / src / frontends / gnome / GUIRunTime.C
index 928301224d845a4374338a9528863467f1c98a5b..7a3c4522fe526be08d5f9342df98ffe532474811 100644 (file)
@@ -90,3 +90,25 @@ void GUIRunTime::runTime()
                }
        }
 }
+
+
+void GUIRunTime::setDefaults()
+{
+       FL_IOPT cntl;
+       cntl.buttonFontSize = FL_NORMAL_SIZE;
+       cntl.browserFontSize = FL_NORMAL_SIZE;
+       cntl.labelFontSize = FL_NORMAL_SIZE;
+       cntl.choiceFontSize = FL_NORMAL_SIZE;
+       cntl.inputFontSize = FL_NORMAL_SIZE;
+       cntl.menuFontSize  = FL_NORMAL_SIZE;
+       cntl.borderWidth = -1;
+       cntl.vclass = FL_DefaultVisual;
+       fl_set_defaults(FL_PDVisual
+                       | FL_PDButtonFontSize
+                       | FL_PDBrowserFontSize
+                       | FL_PDLabelFontSize
+                       | FL_PDChoiceFontSize
+                       | FL_PDInputFontSize
+                       | FL_PDMenuFontSize
+                       | FL_PDBorderWidth, &cntl);
+}