From bc84289d25acb976db3efb423dfef29b4d96053e Mon Sep 17 00:00:00 2001 From: lotherk Date: Sun, 22 Nov 2026 09:40:15 +0100 Subject: [PATCH] mcde: the review's loose ends - dtsystemsettings/panes.c: the icon of every pane is unique again (Backup showed the same DtSystem.m.pm as System Information, Default Programs the same Dtmail.t.pm as Internet Accounts) and the dock entry is indented like its neighbours. - startupdisk.c is no longer built: the pane was removed, the file stayed in the SUBDIRS list. - dttoolbox.msg: message 2 says "No dttoolchest menu", like message 1 says "dttoolchest". - dock.c stores the program's class as the command names it (lower case, as WM_CLASS's instance name is), not with an invented capital. dtwm compares classes with strcasecmp (WmMcdePanel.c:144, 233), so matching works either way; the icon lookup by file name is what a made-up case could spoil. --- programs/dtsystemsettings/Makefile.am | 2 +- programs/dtsystemsettings/dock.c | 2 -- programs/dtsystemsettings/panes.c | 6 +++--- programs/dttoolbox/dttoolbox.msg | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/programs/dtsystemsettings/Makefile.am b/programs/dtsystemsettings/Makefile.am index 1a405370..eb46a5ee 100644 --- a/programs/dtsystemsettings/Makefile.am +++ b/programs/dtsystemsettings/Makefile.am @@ -7,7 +7,7 @@ bin_PROGRAMS = dtsystemsettings dtsystemsettings_SOURCES = main.c panes.c panes.h ui.h accounts.c update.c \ network.c \ input.c appearance.c desktop.c timezone.c wifi.c \ - startup.c sharing.c backup.c displays.c language.c sound.c printers.c parental.c cds.c dock.c energy.c internet.c defaults.c sysinfo.c startupdisk.c \ + startup.c sharing.c backup.c displays.c language.c sound.c printers.c parental.c cds.c dock.c energy.c internet.c defaults.c sysinfo.c \ security.c dtsystemsettings_CPPFLAGS = -I$(top_srcdir)/include $(DT_INCDIR) \ -I$(top_builddir)/include $(XFT_CFLAGS) \ diff --git a/programs/dtsystemsettings/dock.c b/programs/dtsystemsettings/dock.c index 153dffac..7c5884be 100644 --- a/programs/dtsystemsettings/dock.c +++ b/programs/dtsystemsettings/dock.c @@ -160,8 +160,6 @@ AddOk(Widget w, XtPointer cd, XtPointer call) base = strrchr(cmd, '/'); base = base != NULL ? base + 1 : cmd; (void) snprintf(cls, sizeof cls, "%s", base); - if (cls[0] >= 'a' && cls[0] <= 'z') - cls[0] = (char) (cls[0] - 'a' + 'A'); if (napps < MAXAPPS) { (void) snprintf(apps[napps], sizeof apps[0], "%s\t%s", cls, cmd); diff --git a/programs/dtsystemsettings/panes.c b/programs/dtsystemsettings/panes.c index af794154..698ac225 100644 --- a/programs/dtsystemsettings/panes.c +++ b/programs/dtsystemsettings/panes.c @@ -31,11 +31,11 @@ const Pane panes[] = { NULL, "language sprache locale region formats datum" }, { "dock", "Dock", CAT_PERSONAL, "Dtapps.m.pm", PANE_OWN, NULL, "dock leiste panel front panel programme programs" }, - { "security", "Security", CAT_PERSONAL, "McdeLock.pm", PANE_OWN, NULL, + { "security", "Security", CAT_PERSONAL, "McdeLock.pm", PANE_OWN, NULL, "security sicherheit firewall lock sperre password passwort " "encryption verschluesselung cgd swap virtual memory npf" }, - { "defaults", "Default Programs", CAT_PERSONAL, "Dtmail.t.pm", + { "defaults", "Default Programs", CAT_PERSONAL, "McdeFile.m.pm", PANE_OWN, NULL, "default programs browser mail image video text " "standardprogramme" }, { "sound", "Sound", CAT_HARDWARE, "Dtaudio.m.pm", PANE_OWN, NULL, @@ -76,7 +76,7 @@ const Pane panes[] = { "accounts benutzer users password passwort" }, { "update", "Software Update", CAT_SYSTEM, "Dtstyle.m.pm", PANE_OWN, NULL, "update software aktualisierung pakete packages" }, - { "backup", "Backup", CAT_SYSTEM, "DtSystem.m.pm", PANE_OWN, NULL, + { "backup", "Backup", CAT_SYSTEM, "IrixDisk.m.pm", PANE_OWN, NULL, "backup sicherung" }, { "accessibility", "Accessibility", CAT_SYSTEM, "Dtmouse.m.pm", PANE_LATER, NULL, "accessibility bedienungshilfen" }, diff --git a/programs/dttoolbox/dttoolbox.msg b/programs/dttoolbox/dttoolbox.msg index f335d569..5206624d 100644 --- a/programs/dttoolbox/dttoolbox.msg +++ b/programs/dttoolbox/dttoolbox.msg @@ -3,4 +3,4 @@ $ $set 1 1 dttoolchest -2 No ToolChest menu +2 No dttoolchest menu