|
@@ -1,6 +1,6 @@
|
|
|
/*
|
|
|
* Part of LaGUI demonstration programs
|
|
|
-* Copyright (C) 2022 Wu Yiming
|
|
|
+* Copyright (C) 2022-2023 Wu Yiming
|
|
|
*
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
@@ -76,7 +76,7 @@ static void ExamplesCleanUp(){
|
|
|
laShowItemFull(uil,c,0,"EXAMPLE_open_source_code",0,instructions,0,0);\
|
|
|
laEndRow(uil,row);\
|
|
|
laShowSeparator(uil,c);\
|
|
|
- laShowItem(uil,c,This,"code")->Extra->HeightCoeff=-2;\
|
|
|
+ laShowItem(uil,c,This,"base.code")->Extra->HeightCoeff=-2;\
|
|
|
}laElse(uil,bu);{\
|
|
|
row=laBeginRow(uil,c,0,0);\
|
|
|
char instructions[256]; sprintf(instructions,"text=Launch \"%s\";program=%s",ei->Name->Ptr,ei->Path->Ptr);\
|
|
@@ -236,7 +236,7 @@ laPropContainer *pcGeneric,*pcFruits,*pcSimplest,*pcModelling,*pcCalculator,*pcW
|
|
|
void* get_ExampleViewer(void* unused){
|
|
|
return EV;
|
|
|
}
|
|
|
-laPropContainer* get_ExamplesGetType(void* unused, ExampleItem* ei){
|
|
|
+laPropContainer* get_ExamplesGetType(ExampleItem* ei){
|
|
|
if(ei->Define==ui_Fruits) return pcFruits;
|
|
|
if(ei->Define==ui_Simplest) return pcSimplest;
|
|
|
if(ei->Define==ui_Modelling) return pcModelling;
|