mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-26 08:22:37 +01:00
updated Makefiles files for po dirs
This commit is contained in:
@@ -3538,7 +3538,13 @@ setSwPOptions(WScreen *scr, WDefaultEntry *entry, WMPropList *array, void *foo)
|
||||
switch (WMGetPropListItemCount(array))
|
||||
{
|
||||
case 4:
|
||||
path= FindImage(wPreferences.pixmap_path, WMGetFromPLString(WMGetFromPLArray(array, 1)));
|
||||
if (!WMIsPLString(WMGetFromPLArray(array, 1))) {
|
||||
wwarning(_("Invalid arguments for option \"%s\""),
|
||||
entry->key);
|
||||
break;
|
||||
} else
|
||||
path= FindImage(wPreferences.pixmap_path, WMGetFromPLString(WMGetFromPLArray(array, 1)));
|
||||
|
||||
if (!path) {
|
||||
wwarning(_("Could not find image \"%s\" for option \"%s\""),
|
||||
WMGetFromPLString(WMGetFromPLArray(array, 1)),
|
||||
@@ -3607,7 +3613,13 @@ setSwPOptions(WScreen *scr, WDefaultEntry *entry, WMPropList *array, void *foo)
|
||||
}
|
||||
|
||||
case 1:
|
||||
path= FindImage(wPreferences.pixmap_path, WMGetFromPLString(WMGetFromPLArray(array, 0)));
|
||||
if (!WMIsPLString(WMGetFromPLArray(array, 0))) {
|
||||
wwarning(_("Invalid arguments for option \"%s\""),
|
||||
entry->key);
|
||||
break;
|
||||
} else
|
||||
path= FindImage(wPreferences.pixmap_path, WMGetFromPLString(WMGetFromPLArray(array, 0)));
|
||||
|
||||
if (!path) {
|
||||
wwarning(_("Could not find image \"%s\" for option \"%s\""),
|
||||
WMGetFromPLString(WMGetFromPLArray(array, 0)),
|
||||
|
||||
@@ -432,7 +432,9 @@ WSwitchPanel *wInitSwitchPanel(WScreen *scr, WWindow *curwin, int workspace)
|
||||
int width, height;
|
||||
int iconsThatFitCount;
|
||||
int count;
|
||||
|
||||
WMRect rect;
|
||||
rect= wGetRectForHead(scr, wGetHeadForPointerLocation(scr));
|
||||
|
||||
memset(panel, 0, sizeof(WSwitchPanel));
|
||||
|
||||
panel->scr= scr;
|
||||
@@ -449,7 +451,7 @@ WSwitchPanel *wInitSwitchPanel(WScreen *scr, WWindow *curwin, int workspace)
|
||||
width= ICON_TILE_SIZE*count;
|
||||
iconsThatFitCount= count;
|
||||
|
||||
if (width > WMScreenWidth(scr->wmscreen)) {
|
||||
if (width > rect.size.width) {
|
||||
iconsThatFitCount = (WMScreenWidth(scr->wmscreen)-SCREEN_BORDER_SPACING)/ICON_TILE_SIZE;
|
||||
width= iconsThatFitCount*ICON_TILE_SIZE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user