Remove dtinfo launcher and icons from the default front panel.
authorJon Trulson <jon@radscan.com>
Wed, 20 Jun 2012 01:22:08 +0000 (19:22 -0600)
committerJon Trulson <jon@radscan.com>
Wed, 20 Jun 2012 01:22:08 +0000 (19:22 -0600)
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.

cde/programs/types/Imakefile
cde/programs/types/dtwm.fp.src

index b19e2d47ef97e9d1ec7b19e4374b72b5b3d1d561..2710e85fc2677007d58ae0bb64ec3b54d1b399e6 100644 (file)
@@ -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
index 6599e13818be980110c1a3e6bcbf62c9f5ab362f..69ece3ef2d58d3690188371455cb4fda3bec7324 100644 (file)
@@ -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