language.c lists the UTF-8 locales of locale -a; 'Use for Next Login' writes ~/.dt/language, which Xsession.d/0010.language reads before the desktop starts. Compiled and linked with make mcde-host (build/logs/mcde-host-2026-11-13c.log); not yet run on a display. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
69 lines
2.2 KiB
C
69 lines
2.2 KiB
C
/*
|
|
* panes.c -- dtsystemsettings: the panes and their categories (panes.h)
|
|
*
|
|
* Copyright (c) 2026 The Makronix project. GNU LGPL 2.0 or later, as CDE.
|
|
*
|
|
* One place for the computer's settings, in four rows. A pane is drawn
|
|
* here (sound, network, Bluetooth, date and time, about) when the setting
|
|
* goes through McdeSys; the panes that are CDE's own style manager open it
|
|
* until they are drawn here too.
|
|
*/
|
|
|
|
#include <string.h>
|
|
|
|
#include "panes.h"
|
|
|
|
const char *const categoryNames[CAT_COUNT] = {
|
|
"Personal",
|
|
"Hardware",
|
|
"Internet & Network",
|
|
"System"
|
|
};
|
|
|
|
const Pane panes[] = {
|
|
{ "appearance", "Appearance", CAT_PERSONAL, "DtColor.pm", PANE_OWN,
|
|
NULL },
|
|
{ "desktop", "Desktop", CAT_PERSONAL, "DtBkdrp.pm", PANE_OWN, NULL },
|
|
{ "fonts", "Fonts", CAT_PERSONAL, "DtFont.pm", PANE_OWN, NULL },
|
|
{ "language", "Language", CAT_PERSONAL, "DtI18N.pm", PANE_OWN,
|
|
NULL },
|
|
{ "screensaver", "Screen Saver", CAT_PERSONAL, "DtScrn.pm",
|
|
PANE_OWN, NULL },
|
|
|
|
{ "sound", "Sound", CAT_HARDWARE, "Dtaudio.m.pm", PANE_OWN, NULL },
|
|
{ "displays", "Displays", CAT_HARDWARE, "DtScrn.pm", PANE_OWN,
|
|
NULL },
|
|
{ "keyboard", "Keyboard", CAT_HARDWARE, "DtKeybd.pm", PANE_OWN, NULL },
|
|
{ "mouse", "Mouse", CAT_HARDWARE, "DtMouse.pm", PANE_OWN, NULL },
|
|
{ "printers", "Printers", CAT_HARDWARE, "Dtprint.m.pm", PANE_COMMAND,
|
|
"dtprintinfo -all" },
|
|
|
|
{ "network", "Network", CAT_NETWORK, "McdeWired.m.pm", PANE_OWN, NULL },
|
|
{ "bluetooth", "Bluetooth", CAT_NETWORK, "McdeBluetooth.m.pm",
|
|
PANE_OWN, NULL },
|
|
{ "sharing", "Sharing", CAT_NETWORK, "Dtlink.m.pm", PANE_OWN, NULL },
|
|
|
|
{ "datetime", "Date & Time", CAT_SYSTEM, "Dtdate.m.pm", PANE_OWN, NULL },
|
|
{ "startup", "Startup", CAT_SYSTEM, "DtStart.pm", PANE_OWN, NULL },
|
|
{ "accounts", "Accounts", CAT_SYSTEM, "DtStart.pm", PANE_OWN, NULL },
|
|
{ "update", "Software Update", CAT_SYSTEM, "Dtstyle.m.pm", PANE_OWN,
|
|
NULL },
|
|
{ "backup", "Backup", CAT_SYSTEM, "DtSystem.m.pm", PANE_OWN, NULL },
|
|
{ "about", "About", CAT_SYSTEM, "MakronixDtlogo.m.pm", PANE_OWN, NULL },
|
|
};
|
|
|
|
const int paneCount = (int) (sizeof panes / sizeof panes[0]);
|
|
|
|
const Pane *
|
|
PaneFind(const char *id)
|
|
{
|
|
int i;
|
|
|
|
if (id == NULL)
|
|
return NULL;
|
|
for (i = 0; i < paneCount; i++)
|
|
if (strcmp(panes[i].id, id) == 0)
|
|
return &panes[i];
|
|
return NULL;
|
|
}
|