mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Random coding style cleanup in winspector.c
This commit is contained in:
@@ -215,13 +215,12 @@ static void make_keys(void)
|
||||
static void freeInspector(InspectorPanel *panel)
|
||||
{
|
||||
panel->destroyed = 1;
|
||||
|
||||
if (panel->choosingIcon)
|
||||
return;
|
||||
|
||||
WMDestroyWidget(panel->win);
|
||||
|
||||
XDestroyWindow(dpy, panel->parent);
|
||||
|
||||
wfree(panel);
|
||||
}
|
||||
|
||||
@@ -1414,16 +1413,15 @@ static InspectorPanel *createInspectorForWindow(WWindow * wwin, int xpos, int yp
|
||||
WMMoveWidget(panel->wsP, 20, 30);
|
||||
WMResizeWidget(panel->wsP, PWIDTH - (2 * 15) - (2 * 20), 20);
|
||||
WMAddPopUpButtonItem(panel->wsP, _("Nowhere in particular"));
|
||||
for (i = 0; i < wwin->screen_ptr->workspace_count; i++) {
|
||||
|
||||
for (i = 0; i < wwin->screen_ptr->workspace_count; i++)
|
||||
WMAddPopUpButtonItem(panel->wsP, scr->workspaces[i]->name);
|
||||
}
|
||||
|
||||
i = wDefaultGetStartWorkspace(wwin->screen_ptr, wwin->wm_instance, wwin->wm_class);
|
||||
if (i >= 0 && i <= wwin->screen_ptr->workspace_count) {
|
||||
if (i >= 0 && i <= wwin->screen_ptr->workspace_count)
|
||||
WMSetPopUpButtonSelectedItem(panel->wsP, i + 1);
|
||||
} else {
|
||||
else
|
||||
WMSetPopUpButtonSelectedItem(panel->wsP, 0);
|
||||
}
|
||||
|
||||
/* application wide attributes */
|
||||
if (wwin->main_window != None) {
|
||||
@@ -1465,7 +1463,6 @@ static InspectorPanel *createInspectorForWindow(WWindow * wwin, int xpos, int yp
|
||||
WMResizeWidget(panel->appChk[i], 205, 20);
|
||||
WMSetButtonSelected(panel->appChk[i], flag);
|
||||
WMSetButtonText(panel->appChk[i], caption);
|
||||
|
||||
WMSetBalloonTextForView(descr, WMWidgetView(panel->appChk[i]));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user