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

Increase height of 'Attributes' window

With the addition of an extra button to the 'Advanced Options' window,
the vertical space of the widget no longer suffices. Increase it from
350 to 360 and adjust other parameters accordingly.

And let's write the button positions as 'PHEIGHT - 40' instead of using
a hardcoded value, avoiding the need to change it everytime PHEIGHT is
changed.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
Carlos R. Mafra
2011-08-13 14:55:21 +02:00
parent 8ba6118c2e
commit 9777b14fb7

View File

@@ -160,7 +160,7 @@ static WMPropList *EmptyString;
static WMPropList *Yes, *No;
#define PWIDTH 290
#define PHEIGHT 350
#define PHEIGHT 360
static char *spec_text;
static void applySettings(WMButton * button, InspectorPanel * panel);
@@ -1143,7 +1143,7 @@ static InspectorPanel *createInspectorForWindow(WWindow * wwin, int xpos, int yp
btn_width = (PWIDTH - (2 * 15) - (2 * 10)) / 3;
panel->saveBtn = WMCreateCommandButton(panel->win);
WMSetButtonAction(panel->saveBtn, (WMAction *) saveSettings, panel);
WMMoveWidget(panel->saveBtn, (2 * (btn_width + 10)) + 15, 310);
WMMoveWidget(panel->saveBtn, (2 * (btn_width + 10)) + 15, PHEIGHT - 40);
WMSetButtonText(panel->saveBtn, _("Save"));
WMResizeWidget(panel->saveBtn, btn_width, 28);
if (wPreferences.flags.noupdates || !(wwin->wm_class || wwin->wm_instance))
@@ -1151,13 +1151,13 @@ static InspectorPanel *createInspectorForWindow(WWindow * wwin, int xpos, int yp
panel->applyBtn = WMCreateCommandButton(panel->win);
WMSetButtonAction(panel->applyBtn, (WMAction *) applySettings, panel);
WMMoveWidget(panel->applyBtn, btn_width + 10 + 15, 310);
WMMoveWidget(panel->applyBtn, btn_width + 10 + 15, PHEIGHT - 40);
WMSetButtonText(panel->applyBtn, _("Apply"));
WMResizeWidget(panel->applyBtn, btn_width, 28);
panel->revertBtn = WMCreateCommandButton(panel->win);
WMSetButtonAction(panel->revertBtn, (WMAction *) revertSettings, panel);
WMMoveWidget(panel->revertBtn, 15, 310);
WMMoveWidget(panel->revertBtn, 15, PHEIGHT - 40);
WMSetButtonText(panel->revertBtn, _("Reload"));
WMResizeWidget(panel->revertBtn, btn_width, 28);
@@ -1334,7 +1334,7 @@ static InspectorPanel *createInspectorForWindow(WWindow * wwin, int xpos, int yp
panel->moreFrm = WMCreateFrame(panel->win);
WMSetFrameTitle(panel->moreFrm, _("Advanced"));
WMMoveWidget(panel->moreFrm, 15, 45);
WMResizeWidget(panel->moreFrm, frame_width, 250);
WMResizeWidget(panel->moreFrm, frame_width, 265);
for (i = 0;
#ifdef XKB_BUTTON_HINT