From: Jon Trulson Date: Wed, 20 Jun 2012 01:22:08 +0000 (-0600) Subject: Remove dtinfo launcher and icons from the default front panel. X-Git-Tag: 2.2.0a~26^2~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f7e87eb7f396a122679b9552378d6c7edcc3f00a;p=oweals%2Fcde.git Remove dtinfo launcher and icons from the default front panel. Use the help system instead. Someday, if dtinfo can be made to work, this can be undone easily. Note, you may have to clear out your ~/.dt dir to see the change. --- diff --git a/cde/programs/types/Imakefile b/cde/programs/types/Imakefile index b19e2d47..2710e85f 100644 --- a/cde/programs/types/Imakefile +++ b/cde/programs/types/Imakefile @@ -5,6 +5,8 @@ CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \ #if defined (SunArchitecture) LOCAL_CPP_DEFINES = $(CPP_DEFINES) -D__sun +#elif defined(LinuxArchitecture) || defined(FreeBSDArchitecture) +LOCAL_CPP_DEFINES = $(CPP_DEFINES) -DNO_DTINFO #else LOCAL_CPP_DEFINES = $(CPP_DEFINES) #endif diff --git a/cde/programs/types/dtwm.fp.src b/cde/programs/types/dtwm.fp.src index 6599e138..69ece3ef 100644 --- a/cde/programs/types/dtwm.fp.src +++ b/cde/programs/types/dtwm.fp.src @@ -182,7 +182,21 @@ CONTROL Applications HELP_VOLUME FPanel } - +#ifdef NO_DTINFO +CONTROL Help +{ + TYPE icon + CONTAINER_NAME Top + CONTAINER_TYPE BOX + POSITION_HINTS 12 + ICON Fphelp + LABEL %|nls-18009-#Help Manager#| + PUSH_ACTION Dthelpview + DROP_ACTION Dthelpview + HELP_TOPIC FPOnItemHelpMgr + HELP_VOLUME FPanel +} +#else CONTROL InfoManager { TYPE icon @@ -196,7 +210,7 @@ CONTROL InfoManager HELP_TOPIC FPOnItemInfoMgr HELP_VOLUME FPanel } - +#endif CONTROL Trash { @@ -335,16 +349,28 @@ CONTROL PrintManager HELP_VOLUME Printmgr } +#ifndef NO_DTINFO SUBPANEL InfoManagerSubpanel { CONTAINER_NAME InfoManager TITLE %|nls-18032-#Information#| } +#else +SUBPANEL HelpSubpanel +{ + CONTAINER_NAME Help + TITLE %|nls-18019-#Help#| +} +#endif CONTROL HelpOverview { TYPE icon +#ifndef NO_DTINFO CONTAINER_NAME InfoManagerSubpanel +#else + CONTAINER_NAME HelpSubpanel +#endif CONTAINER_TYPE SUBPANEL POSITION_HINTS 1 ICON Dthover @@ -357,7 +383,11 @@ CONTROL HelpOverview CONTROL FPHelp { TYPE icon +#ifndef NO_DTINFO CONTAINER_NAME InfoManagerSubpanel +#else + CONTAINER_NAME HelpSubpanel +#endif CONTAINER_TYPE SUBPANEL POSITION_HINTS 2 ICON Fpfphlp @@ -367,6 +397,7 @@ CONTROL FPHelp HELP_VOLUME FPanel } +#ifndef NO_DTINFO CONTROL HelpMgr { TYPE icon @@ -379,7 +410,7 @@ CONTROL HelpMgr HELP_TOPIC FPOnItemHelpMgr HELP_VOLUME FPanel } - +#endif XCOMM XCOMM OnItem help uses a pseudo push action FPOnItemHelp. Dtwm is looking for