mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 22:28:02 +01:00
wmaker: src/dialog cosmetic code change
This patch is just renaming the variable used for the info panel from 'thePanel' to 'infoPanel'.
This commit is contained in:
committed by
Carlos R. Mafra
parent
c92ea52271
commit
b6d48420bb
23
src/dialog.c
23
src/dialog.c
@@ -4,6 +4,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1997-2003 Alfredo K. Kojima
|
* Copyright (c) 1997-2003 Alfredo K. Kojima
|
||||||
* Copyright (c) 1998-2003 Dan Pascu
|
* Copyright (c) 1998-2003 Dan Pascu
|
||||||
|
* Copyright (c) 2014 Window Maker Team
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -1127,7 +1128,7 @@ typedef struct {
|
|||||||
"Copyright \xc2\xa9 1998-2006 Dan Pascu\n"\
|
"Copyright \xc2\xa9 1998-2006 Dan Pascu\n"\
|
||||||
"Copyright \xc2\xa9 2013-2014 Window Maker Developers Team"
|
"Copyright \xc2\xa9 2013-2014 Window Maker Developers Team"
|
||||||
|
|
||||||
static InfoPanel *thePanel = NULL;
|
static InfoPanel *infoPanel = NULL;
|
||||||
|
|
||||||
static void destroyInfoPanel(WCoreWindow *foo, void *data, XEvent *event)
|
static void destroyInfoPanel(WCoreWindow *foo, void *data, XEvent *event)
|
||||||
{
|
{
|
||||||
@@ -1136,11 +1137,11 @@ static void destroyInfoPanel(WCoreWindow *foo, void *data, XEvent *event)
|
|||||||
(void) data;
|
(void) data;
|
||||||
(void) event;
|
(void) event;
|
||||||
|
|
||||||
WMUnmapWidget(thePanel);
|
WMUnmapWidget(infoPanel);
|
||||||
wUnmanageWindow(thePanel->wwin, False, False);
|
wUnmanageWindow(infoPanel->wwin, False, False);
|
||||||
WMDestroyWidget(thePanel->win);
|
WMDestroyWidget(infoPanel->win);
|
||||||
wfree(thePanel);
|
wfree(infoPanel);
|
||||||
thePanel = NULL;
|
infoPanel = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wShowInfoPanel(WScreen *scr)
|
void wShowInfoPanel(WScreen *scr)
|
||||||
@@ -1167,10 +1168,10 @@ void wShowInfoPanel(WScreen *scr)
|
|||||||
"DirectColor"
|
"DirectColor"
|
||||||
};
|
};
|
||||||
|
|
||||||
if (thePanel) {
|
if (infoPanel) {
|
||||||
if (thePanel->scr == scr) {
|
if (infoPanel->scr == scr) {
|
||||||
wRaiseFrame(thePanel->wwin->frame->core);
|
wRaiseFrame(infoPanel->wwin->frame->core);
|
||||||
wSetFocusTo(scr, thePanel->wwin);
|
wSetFocusTo(scr, infoPanel->wwin);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1382,7 +1383,7 @@ void wShowInfoPanel(WScreen *scr)
|
|||||||
wWindowMap(wwin);
|
wWindowMap(wwin);
|
||||||
|
|
||||||
panel->wwin = wwin;
|
panel->wwin = wwin;
|
||||||
thePanel = panel;
|
infoPanel = panel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user