diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 02:26:30 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 02:32:26 +0200 |
commit | 7505e88db66798b2b8fcdff2d92a7136cd826b5b (patch) | |
tree | b6ced565318f8e8112e35cb0ad53abe4212ef8de /iup/srcconsole/console5.lua | |
parent | e9a184546b18cf3b796bd560561f312934004c54 (diff) |
Upgrading to IUP 3.2 - and cleaning up.
Diffstat (limited to 'iup/srcconsole/console5.lua')
-rwxr-xr-x | iup/srcconsole/console5.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/iup/srcconsole/console5.lua b/iup/srcconsole/console5.lua index 0b93641..8373500 100755 --- a/iup/srcconsole/console5.lua +++ b/iup/srcconsole/console5.lua @@ -22,6 +22,9 @@ function iup_console.print_version_info() local mot = iup.GetGlobal("MOTIFVERSION") if (mot) then str = iup_console.concat(str, " Motif Version: ", mot) end + + local gtk = iup.GetGlobal("GTKVERSION") + if (gtk) then str = iup_console.concat(str, " GTK Version: ", gtk) end str = iup_console.concat(str, " Screen Size: " .. iup.GetGlobal("SCREENSIZE")) str = iup_console.concat(str, " Screen Depth: " .. iup.GetGlobal("SCREENDEPTH")) @@ -36,7 +39,7 @@ end -- Console Dialog iup_console.lastfilename = nil -- Last file open -iup_console.mlCode = iup.multiline{expand="YES", size="200x120", font="COURIER_NORMAL_10"} +iup_console.mlCode = iup.multiline{expand="YES", size="200x120", font="Courier, 10"} iup_console.lblPosition = iup.label{title="0:0", size="50x"} iup_console.lblFileName = iup.label{title="", size="50x", expand="HORIZONTAL"} @@ -207,7 +210,7 @@ iup_console.dlgAbout = iup.dialog iup_console.dlgMain:show() iup.SetFocus(iup_console.mlCode) -if (not iup.MainLoopLevel or iup.MainLoopLevel()==0) then +if (iup.MainLoopLevel()==0) then iup.MainLoop() end |