Mose code cleaning...

This commit is contained in:
K D Hedger
2024-01-08 12:29:20 +00:00
parent 97d1fe74f6
commit 701d0a44ee
32 changed files with 173 additions and 284 deletions

View File

@ -28,9 +28,12 @@ LFSTK_toggleButtonClass *check=NULL;
LFSTK_toggleButtonClass *toggle=NULL;
LFSTK_buttonClass *seperator=NULL;
LFSTK_buttonClass *quit=NULL;
char *iconH=NULL;
char *iconM=NULL;
char *iconL=NULL;
//char *iconH=NULL;
//char *iconM=NULL;
//char *iconL=NULL;
std::string iconH;
std::string iconM;
std::string iconL;
LFSTK_windowClass *scwindow;
@ -129,9 +132,6 @@ int main(int argc, char **argv)
iconH=apc->globalLib->LFSTK_findThemedIcon("gnome","volume-high","");
toggle->LFSTK_setImageFromPath(iconH,TOOLBAR,true);
//toggle->gadgetDetails.showBroken=true;
//toggle->gadgetDetails.showLink=true;
free(iconH);
sy+=YSPACING*3;
windowInitStruct *win;
@ -141,19 +141,13 @@ int main(int argc, char **argv)
win->y=100;
win->w=16;
win->h=100;
//win->wc=wc;
// win->windowType="_NET_WM_WINDOW_TYPE_DOCK";
win->decorated=false;
win->overRide=true;
// win->level=ABOVEALL;
win->app=apc;
win->windowType=apc->appAtomsHashed.at(apc->globalLib->prefs.LFSTK_hashFromKey("_NET_WM_WINDOW_TYPE_TOOL"));
apc->LFSTK_addToolWindow(win);
scwindow=apc->windows->back().window;//TODO//
//XReparentWindow(apc->display,scwindow->window,wc->window,20,20);
vsb=new LFSTK_scrollBarClass(scwindow,true,0,0,16,100);
vsb->LFSTK_setValue(1);
//toggle->LFSTK_setContextWindow(scwindow);