mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
Fix some double newlines
Just a couple that woud now print double (or several more) newlines. Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
committed by
Carlos R. Mafra
parent
8594c39a0b
commit
94a0c7b42f
@@ -3031,7 +3031,7 @@ static void customPaletteMenuRename(W_ColorPanel * panel)
|
||||
}
|
||||
|
||||
if (rename(fromPath, toPath) != 0)
|
||||
werror(_("Couldn't rename palette %s to %s\n"), fromName, toName);
|
||||
werror(_("Couldn't rename palette %s to %s"), fromName, toName);
|
||||
else {
|
||||
WMRemovePopUpButtonItem(panel->customPaletteHistoryBtn, item);
|
||||
WMInsertPopUpButtonItem(panel->customPaletteHistoryBtn, item, toName);
|
||||
@@ -3078,7 +3078,7 @@ static void customPaletteMenuRemove(W_ColorPanel * panel)
|
||||
WMRemovePopUpButtonItem(panel->customPaletteHistoryBtn, item);
|
||||
|
||||
} else {
|
||||
werror(_("Couldn't remove palette %s\n"), tmp);
|
||||
werror(_("Couldn't remove palette %s"), tmp);
|
||||
}
|
||||
|
||||
wfree(tmp);
|
||||
|
||||
@@ -704,7 +704,7 @@ static void storeCommandInScript(char *cmd, char *line)
|
||||
fclose(fo);
|
||||
|
||||
if (rename(tmppath, path) != 0) {
|
||||
werror(_("could not rename file %s to %s\n"), tmppath, path);
|
||||
werror(_("could not rename file %s to %s"), tmppath, path);
|
||||
}
|
||||
wfree(tmppath);
|
||||
}
|
||||
|
||||
@@ -387,7 +387,7 @@ char *LocateImage(char *name)
|
||||
}
|
||||
wfree(tmp);
|
||||
if (!path) {
|
||||
wwarning(_("could not locate image file %s\n"), name);
|
||||
wwarning(_("could not locate image file %s"), name);
|
||||
}
|
||||
|
||||
return path;
|
||||
@@ -962,7 +962,7 @@ int GetSpeedForKey(char *defaultName)
|
||||
else if (strcasecmp(str, "ultrafast") == 0)
|
||||
i = 4;
|
||||
else {
|
||||
wwarning(_("bad speed value for option %s\n. Using default Medium"), defaultName);
|
||||
wwarning(_("bad speed value for option %s; using default Medium"), defaultName);
|
||||
i = 2;
|
||||
}
|
||||
return i;
|
||||
|
||||
@@ -120,42 +120,42 @@ static void x_reset_modifier_mapping(Display * display)
|
||||
int mode_bit = 0;
|
||||
XModifierKeymap *x_modifier_keymap = XGetModifierMapping(display);
|
||||
|
||||
#define modwarn(name,old,other) \
|
||||
wwarning ("%s (0x%x) generates %s, which is generated by %s.\n\n", \
|
||||
name, code, index_to_name (old), other), \
|
||||
#define modwarn(name,old,other) \
|
||||
wwarning ("%s (0x%x) generates %s, which is generated by %s.", \
|
||||
name, code, index_to_name (old), other), \
|
||||
warned_about_overlapping_modifiers = 1
|
||||
|
||||
#define modbarf(name,other) \
|
||||
wwarning ("%s (0x%x) generates %s, which is nonsensical.\n\n", \
|
||||
name, code, other), \
|
||||
#define modbarf(name,other) \
|
||||
wwarning ("%s (0x%x) generates %s, which is nonsensical.", \
|
||||
name, code, other), \
|
||||
warned_about_predefined_modifiers = 1
|
||||
|
||||
#define check_modifier(name,mask) \
|
||||
if ((1<<modifier_index) != mask) \
|
||||
wwarning ("%s (0x%x) generates %s, which is nonsensical.\n\n", \
|
||||
name, code, index_to_name (modifier_index)), \
|
||||
#define check_modifier(name,mask) \
|
||||
if ((1<<modifier_index) != mask) \
|
||||
wwarning ("%s (0x%x) generates %s, which is nonsensical.", \
|
||||
name, code, index_to_name (modifier_index)), \
|
||||
warned_about_predefined_modifiers = 1
|
||||
|
||||
#define store_modifier(name,old) \
|
||||
if (old && old != modifier_index) \
|
||||
wwarning ("%s (0x%x) generates both %s and %s, which is nonsensical.\n\n",\
|
||||
name, code, index_to_name (old), \
|
||||
index_to_name (modifier_index)), \
|
||||
warned_about_duplicate_modifiers = 1; \
|
||||
if (modifier_index == ShiftMapIndex) modbarf (name,"ModShift"); \
|
||||
else if (modifier_index == LockMapIndex) modbarf (name,"ModLock"); \
|
||||
else if (modifier_index == ControlMapIndex) modbarf (name,"ModControl"); \
|
||||
else if (sym == XK_Mode_switch) \
|
||||
mode_bit = modifier_index; /* Mode_switch is special, see below... */ \
|
||||
else if (modifier_index == meta_bit && old != meta_bit) \
|
||||
modwarn (name, meta_bit, "Meta"); \
|
||||
else if (modifier_index == super_bit && old != super_bit) \
|
||||
modwarn (name, super_bit, "Super"); \
|
||||
else if (modifier_index == hyper_bit && old != hyper_bit) \
|
||||
modwarn (name, hyper_bit, "Hyper"); \
|
||||
else if (modifier_index == alt_bit && old != alt_bit) \
|
||||
modwarn (name, alt_bit, "Alt"); \
|
||||
else \
|
||||
#define store_modifier(name,old) \
|
||||
if (old && old != modifier_index) \
|
||||
wwarning ("%s (0x%x) generates both %s and %s, which is nonsensical.", \
|
||||
name, code, index_to_name (old), \
|
||||
index_to_name (modifier_index)), \
|
||||
warned_about_duplicate_modifiers = 1; \
|
||||
if (modifier_index == ShiftMapIndex) modbarf (name,"ModShift"); \
|
||||
else if (modifier_index == LockMapIndex) modbarf (name,"ModLock"); \
|
||||
else if (modifier_index == ControlMapIndex) modbarf (name,"ModControl"); \
|
||||
else if (sym == XK_Mode_switch) \
|
||||
mode_bit = modifier_index; /* Mode_switch is special, see below... */ \
|
||||
else if (modifier_index == meta_bit && old != meta_bit) \
|
||||
modwarn (name, meta_bit, "Meta"); \
|
||||
else if (modifier_index == super_bit && old != super_bit) \
|
||||
modwarn (name, super_bit, "Super"); \
|
||||
else if (modifier_index == hyper_bit && old != hyper_bit) \
|
||||
modwarn (name, hyper_bit, "Hyper"); \
|
||||
else if (modifier_index == alt_bit && old != alt_bit) \
|
||||
modwarn (name, alt_bit, "Alt"); \
|
||||
else \
|
||||
old = modifier_index;
|
||||
|
||||
mkpm = x_modifier_keymap->max_keypermod;
|
||||
@@ -252,8 +252,7 @@ static void x_reset_modifier_mapping(Display * display)
|
||||
else if (mode_bit == alt_bit)
|
||||
warn = "Alt", alt_bit = 0;
|
||||
if (warn) {
|
||||
wwarning
|
||||
("%s is being used for both Mode_switch and %s.\n\n",
|
||||
wwarning("%s is being used for both Mode_switch and %s.",
|
||||
index_to_name(mode_bit), warn), warned_about_overlapping_modifiers = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -865,7 +865,7 @@ static void launchDockedApplication(WAppIcon * btn, Bool withSelection)
|
||||
dockIconPaint(btn);
|
||||
}
|
||||
} else {
|
||||
wwarning(_("could not launch application %s\n"), btn->command);
|
||||
wwarning(_("could not launch application %s"), btn->command);
|
||||
btn->launching = 0;
|
||||
if (!btn->relaunching) {
|
||||
btn->running = 0;
|
||||
|
||||
@@ -494,8 +494,7 @@ static void inotifyWatchConfig()
|
||||
*/
|
||||
inotifyWD = inotify_add_watch(inotifyFD, watchPath, IN_ALL_EVENTS);
|
||||
if (inotifyWD < 0) {
|
||||
wwarning(_("could not add an inotify watch on path\n."
|
||||
"%s\n"
|
||||
wwarning(_("could not add an inotify watch on path %s."
|
||||
"Changes to the defaults database will require"
|
||||
" a restart to take effect."), watchPath);
|
||||
close(inotifyFD);
|
||||
|
||||
@@ -175,7 +175,7 @@ static int catchXError(Display * dpy, XErrorEvent * error)
|
||||
return 0;
|
||||
}
|
||||
FormatXError(dpy, error, buffer, MAXLINE);
|
||||
wwarning(_("internal X error: %s\n"), buffer);
|
||||
wwarning(_("internal X error: %s"), buffer);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -228,13 +228,13 @@ static RETSIGTYPE handleExitSig(int sig)
|
||||
sigprocmask(SIG_BLOCK, &sigs, NULL);
|
||||
|
||||
if (sig == SIGUSR1) {
|
||||
wwarning("got signal %i - restarting\n", sig);
|
||||
wwarning("got signal %i - restarting", sig);
|
||||
SIG_WCHANGE_STATE(WSTATE_NEED_RESTART);
|
||||
} else if (sig == SIGUSR2) {
|
||||
wwarning("got signal %i - rereading defaults\n", sig);
|
||||
wwarning("got signal %i - rereading defaults", sig);
|
||||
SIG_WCHANGE_STATE(WSTATE_NEED_REREAD);
|
||||
} else if (sig == SIGTERM || sig == SIGINT || sig == SIGHUP) {
|
||||
wwarning("got signal %i - exiting...\n", sig);
|
||||
wwarning("got signal %i - exiting...", sig);
|
||||
SIG_WCHANGE_STATE(WSTATE_NEED_EXIT);
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ static void dummyHandler(int sig)
|
||||
*/
|
||||
static RETSIGTYPE handleSig(int sig)
|
||||
{
|
||||
wfatal("got signal %i\n", sig);
|
||||
wfatal("got signal %i", sig);
|
||||
|
||||
/* Setting the signal behaviour back to default and then reraising the
|
||||
* signal is a cleaner way to make program exit and core dump than calling
|
||||
@@ -676,7 +676,7 @@ void StartUp(Bool defaultScreenOnly)
|
||||
|
||||
/* check sanity of some values */
|
||||
if (wPreferences.icon_size < 16) {
|
||||
wwarning(_("icon size is configured to %i, but it's too small. Using 16, instead\n"),
|
||||
wwarning(_("icon size is configured to %i, but it's too small. Using 16 instead"),
|
||||
wPreferences.icon_size);
|
||||
wPreferences.icon_size = 16;
|
||||
}
|
||||
|
||||
@@ -385,7 +385,7 @@ static int bounceDirection(WAppIcon *aicon)
|
||||
break;
|
||||
|
||||
default:
|
||||
wwarning(_("Impossible direction: %d\n"), dir);
|
||||
wwarning(_("Impossible direction: %d"), dir);
|
||||
dir = 3;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2726,7 +2726,7 @@ static void resizebarMouseDown(WCoreWindow *sender, void *data, XEvent *event)
|
||||
#ifndef NUMLOCK_HACK
|
||||
if ((event->xbutton.state & ValidModMask)
|
||||
!= (event->xbutton.state & ~LockMask)) {
|
||||
wwarning(_("the NumLock, ScrollLock or similar key seems to be turned on.\n"
|
||||
wwarning(_("The NumLock, ScrollLock or similar key seems to be turned on. "
|
||||
"Turn it off or some mouse actions and keyboard shortcuts will not work."));
|
||||
}
|
||||
#endif
|
||||
@@ -2884,7 +2884,7 @@ static void titlebarMouseDown(WCoreWindow *sender, void *data, XEvent *event)
|
||||
#ifndef NUMLOCK_HACK
|
||||
if ((event->xbutton.state & ValidModMask)
|
||||
!= (event->xbutton.state & ~LockMask)) {
|
||||
wwarning(_("the NumLock, ScrollLock or similar key seems to be turned on.\n"
|
||||
wwarning(_("The NumLock, ScrollLock or similar key seems to be turned on. "
|
||||
"Turn it off or some mouse actions and keyboard shortcuts will not work."));
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -121,42 +121,42 @@ static void x_reset_modifier_mapping(Display * display)
|
||||
int mode_bit = 0;
|
||||
XModifierKeymap *x_modifier_keymap = XGetModifierMapping(display);
|
||||
|
||||
#define modwarn(name,old,other) \
|
||||
wwarning ("%s (0x%x) generates %s, which is generated by %s.\n\n", \
|
||||
name, code, index_to_name (old), other), \
|
||||
#define modwarn(name,old,other) \
|
||||
wwarning ("%s (0x%x) generates %s, which is generated by %s.", \
|
||||
name, code, index_to_name (old), other), \
|
||||
warned_about_overlapping_modifiers = 1
|
||||
|
||||
#define modbarf(name,other) \
|
||||
wwarning ("%s (0x%x) generates %s, which is nonsensical.\n\n", \
|
||||
name, code, other), \
|
||||
#define modbarf(name,other) \
|
||||
wwarning ("%s (0x%x) generates %s, which is nonsensical.", \
|
||||
name, code, other), \
|
||||
warned_about_predefined_modifiers = 1
|
||||
|
||||
#define check_modifier(name,mask) \
|
||||
if ((1<<modifier_index) != mask) \
|
||||
wwarning ("%s (0x%x) generates %s, which is nonsensical.\n\n", \
|
||||
name, code, index_to_name (modifier_index)), \
|
||||
#define check_modifier(name,mask) \
|
||||
if ((1<<modifier_index) != mask) \
|
||||
wwarning ("%s (0x%x) generates %s, which is nonsensical.", \
|
||||
name, code, index_to_name (modifier_index)), \
|
||||
warned_about_predefined_modifiers = 1
|
||||
|
||||
#define store_modifier(name,old) \
|
||||
if (old && old != modifier_index) \
|
||||
wwarning ("%s (0x%x) generates both %s and %s, which is nonsensical.\n\n",\
|
||||
name, code, index_to_name (old), \
|
||||
index_to_name (modifier_index)), \
|
||||
warned_about_duplicate_modifiers = 1; \
|
||||
if (modifier_index == ShiftMapIndex) modbarf (name,"ModShift"); \
|
||||
else if (modifier_index == LockMapIndex) modbarf (name,"ModLock"); \
|
||||
else if (modifier_index == ControlMapIndex) modbarf (name,"ModControl"); \
|
||||
else if (sym == XK_Mode_switch) \
|
||||
mode_bit = modifier_index; /* Mode_switch is special, see below... */ \
|
||||
else if (modifier_index == meta_bit && old != meta_bit) \
|
||||
modwarn (name, meta_bit, "Meta"); \
|
||||
else if (modifier_index == super_bit && old != super_bit) \
|
||||
modwarn (name, super_bit, "Super"); \
|
||||
else if (modifier_index == hyper_bit && old != hyper_bit) \
|
||||
modwarn (name, hyper_bit, "Hyper"); \
|
||||
else if (modifier_index == alt_bit && old != alt_bit) \
|
||||
modwarn (name, alt_bit, "Alt"); \
|
||||
else \
|
||||
#define store_modifier(name,old) \
|
||||
if (old && old != modifier_index) \
|
||||
wwarning ("%s (0x%x) generates both %s and %s, which is nonsensical.", \
|
||||
name, code, index_to_name (old), \
|
||||
index_to_name (modifier_index)), \
|
||||
warned_about_duplicate_modifiers = 1; \
|
||||
if (modifier_index == ShiftMapIndex) modbarf (name,"ModShift"); \
|
||||
else if (modifier_index == LockMapIndex) modbarf (name,"ModLock"); \
|
||||
else if (modifier_index == ControlMapIndex) modbarf (name,"ModControl"); \
|
||||
else if (sym == XK_Mode_switch) \
|
||||
mode_bit = modifier_index; /* Mode_switch is special, see below... */ \
|
||||
else if (modifier_index == meta_bit && old != meta_bit) \
|
||||
modwarn (name, meta_bit, "Meta"); \
|
||||
else if (modifier_index == super_bit && old != super_bit) \
|
||||
modwarn (name, super_bit, "Super"); \
|
||||
else if (modifier_index == hyper_bit && old != hyper_bit) \
|
||||
modwarn (name, hyper_bit, "Hyper"); \
|
||||
else if (modifier_index == alt_bit && old != alt_bit) \
|
||||
modwarn (name, alt_bit, "Alt"); \
|
||||
else \
|
||||
old = modifier_index;
|
||||
|
||||
mkpm = x_modifier_keymap->max_keypermod;
|
||||
@@ -253,8 +253,7 @@ static void x_reset_modifier_mapping(Display * display)
|
||||
else if (mode_bit == alt_bit)
|
||||
warn = "Alt", alt_bit = 0;
|
||||
if (warn) {
|
||||
wwarning
|
||||
("%s is being used for both Mode_switch and %s.\n\n",
|
||||
wwarning("%s is being used for both Mode_switch and %s.",
|
||||
index_to_name(mode_bit), warn), warned_about_overlapping_modifiers = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -492,7 +492,7 @@ BackgroundTexture *parseTexture(RContext * rc, char *text)
|
||||
GETSTRORGOTO(val, tmp, 2, error);
|
||||
|
||||
if (!XParseColor(dpy, DefaultColormap(dpy, scr), tmp, &color)) {
|
||||
wwarning("could not parse color %s in texture %s\n", tmp, text);
|
||||
wwarning("could not parse color %s in texture %s", tmp, text);
|
||||
RReleaseImage(image);
|
||||
goto error;
|
||||
}
|
||||
@@ -913,7 +913,7 @@ void helperLoop(RContext * rc)
|
||||
buf[4] = 0;
|
||||
workspace = atoi(buf);
|
||||
if (workspace < 0 || workspace >= WORKSPACE_COUNT) {
|
||||
wwarning("received message with invalid workspace number %i\n", workspace);
|
||||
wwarning("received message with invalid workspace number %i", workspace);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@@ -1216,7 +1216,7 @@ int main(int argc, char **argv)
|
||||
} else if (strcmp(argv[i], "-display") == 0) {
|
||||
i++;
|
||||
if (i >= argc) {
|
||||
wfatal("too few arguments for %s\n", argv[i - 1]);
|
||||
wfatal("too few arguments for %s", argv[i - 1]);
|
||||
exit(1);
|
||||
}
|
||||
display = argv[i];
|
||||
@@ -1246,38 +1246,38 @@ int main(int argc, char **argv)
|
||||
update++;
|
||||
i++;
|
||||
if (i >= argc) {
|
||||
wfatal("too few arguments for %s\n", argv[i - 1]);
|
||||
wfatal("too few arguments for %s", argv[i - 1]);
|
||||
exit(1);
|
||||
}
|
||||
domain = wstrdup(argv[i]);
|
||||
} else if (strcmp(argv[i], "-c") == 0 || strcmp(argv[i], "--colors") == 0) {
|
||||
i++;
|
||||
if (i >= argc) {
|
||||
wfatal("too few arguments for %s\n", argv[i - 1]);
|
||||
wfatal("too few arguments for %s", argv[i - 1]);
|
||||
exit(1);
|
||||
}
|
||||
if (sscanf(argv[i], "%i", &cpc) != 1) {
|
||||
wfatal("bad value for colors per channel: \"%s\"\n", argv[i]);
|
||||
wfatal("bad value for colors per channel: \"%s\"", argv[i]);
|
||||
exit(1);
|
||||
}
|
||||
} else if (strcmp(argv[i], "-b") == 0 || strcmp(argv[i], "--back-color") == 0) {
|
||||
i++;
|
||||
if (i >= argc) {
|
||||
wfatal("too few arguments for %s\n", argv[i - 1]);
|
||||
wfatal("too few arguments for %s", argv[i - 1]);
|
||||
exit(1);
|
||||
}
|
||||
back_color = argv[i];
|
||||
} else if (strcmp(argv[i], "-p") == 0 || strcmp(argv[i], "--parse") == 0) {
|
||||
i++;
|
||||
if (i >= argc) {
|
||||
wfatal("too few arguments for %s\n", argv[i - 1]);
|
||||
wfatal("too few arguments for %s", argv[i - 1]);
|
||||
exit(1);
|
||||
}
|
||||
texture = argv[i];
|
||||
} else if (strcmp(argv[i], "-w") == 0 || strcmp(argv[i], "--workspace") == 0) {
|
||||
i++;
|
||||
if (i >= argc) {
|
||||
wfatal("too few arguments for %s\n", argv[i - 1]);
|
||||
wfatal("too few arguments for %s", argv[i - 1]);
|
||||
exit(1);
|
||||
}
|
||||
if (sscanf(argv[i], "%i", &workspace) != 1) {
|
||||
|
||||
Reference in New Issue
Block a user