1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

fixed bug with icons of different sizes

made Apply work in window inspector for windows with no WM_CLASS
This commit is contained in:
kojima
2000-01-20 11:51:42 +00:00
parent ae354fc758
commit 34cd5125e3
22 changed files with 1101 additions and 707 deletions

View File

@@ -1102,7 +1102,8 @@ selectSpecification(WMWidget *bPtr, void *data)
char *str;
WWindow *wwin = panel->inspected;
if (bPtr == panel->defaultRb) {
if (bPtr == panel->defaultRb && (wwin->wm_instance || wwin->wm_class)) {
WMSetButtonEnabled(panel->applyBtn, False);
} else {
WMSetButtonEnabled(panel->applyBtn, True);
@@ -1303,9 +1304,6 @@ createInspectorForWindow(WWindow *wwin, int xpos, int ypos,
WMSetButtonAction(panel->clsRb, selectSpecification, panel);
}
if (selectedBtn)
WMSetButtonSelected(selectedBtn, True);
panel->selWinB = WMCreateCommandButton(panel->specFrm);
WMMoveWidget(panel->selWinB, 20, 145-24 - 10);