MCDE front panel: dock halves, drag to keep, printer and xterm
Konrad, 2026-11-15: "wenn keep in dock angewaehlt, muss das icon nach links
wandern"; icons drag & drop; the print widget back on the right; the
programs not in the dock in a separate area; the panel's terminal is xterm.
- The dock part (WmMcdePanel.c) is two halves now: the kept programs left,
a vertical separator, the running programs that are not in the dock
right. A running icon dragged out to the left (or onto the kept half)
is kept and moves to the left; a kept icon dragged out to the right (or
onto the running half) is removed and moves back.
- The dump separator is an XmSeparator widget, not a gadget: Motif's
XtQueryGeometry/XtTranslateCoords crash on gadgets (one dtwm core dump
measured before the change).
- The Printer control is back in the main row, position 7, left of the
trash (it was in the Desktop drawer); the dock part is inserted left of
it, so the order is switch | dock | printer | trash, and a file dragged
from dtfile onto the printer prints.
- The System (Terminal) control runs Xterm/XTerm, not Terminal/dtterm.
- MCDE_PANEL_DEBUG prints the part's absolute position for tests.
Measured in Xvfb (1280x800, fresh HOME, ttsession + dtwm + dtbar):
xclock kept by dragging its icon out to the left -> ~/.dt/panel-apps has
"XClock 'xclock' '-digital'", debug "2 buttons (1 kept)", area 60 -> 126
wide with the separator at +64; dragging it out to the right again empties
panel-apps ("2 buttons (0 kept)", area 120). Screenshots: two icons with
the divider, the printer and the trash right of them. make mcde-linux
MCDE_DIRS="install programs/dtwm" and "... programs/localized/C/types"
exit=0.
This commit is contained in:
1 parent
a667613ef3
commit
9e137005cd
3 files changed
+187
-62
No files matched your search
+18
-18
@@ -84,8 +84,8 @@ CONTROL System
|
||||
POSITION_HINTS 3
|
||||
ICON Fpterm
|
||||
LABEL %|nls-18014-#Terminal#|
|
||||
PUSH_ACTION Terminal
|
||||
CLIENT_NAME dtterm
|
||||
PUSH_ACTION Xterm
|
||||
CLIENT_NAME XTerm
|
||||
HELP_TOPIC FPOnItemTerm
|
||||
HELP_VOLUME FPanel
|
||||
}
|
||||
@@ -116,12 +116,27 @@ CONTROL Style
|
||||
HELP_VOLUME FPanel
|
||||
}
|
||||
|
||||
CONTROL Trash
|
||||
CONTROL Printer
|
||||
{
|
||||
TYPE icon
|
||||
CONTAINER_NAME Top
|
||||
CONTAINER_TYPE BOX
|
||||
POSITION_HINTS 7
|
||||
LABEL %|nls-18006-#Default#|
|
||||
ICON Fpprnt
|
||||
PUSH_ACTION DtPrint
|
||||
DROP_ACTION DtPrint
|
||||
DROP_ANIMATION PrinterDrop
|
||||
HELP_TOPIC FPOnItemPrinter
|
||||
HELP_VOLUME FPanel
|
||||
}
|
||||
|
||||
CONTROL Trash
|
||||
{
|
||||
TYPE icon
|
||||
CONTAINER_NAME Top
|
||||
CONTAINER_TYPE BOX
|
||||
POSITION_HINTS 8
|
||||
ICON Fptrsh
|
||||
LABEL %|nls-18010-#Trash#|
|
||||
ALTERNATE_ICON Fptrsh7
|
||||
@@ -399,21 +414,6 @@ SUBPANEL DesktopSubpanel
|
||||
TITLE Desktop
|
||||
}
|
||||
|
||||
CONTROL Printer
|
||||
{
|
||||
TYPE icon
|
||||
CONTAINER_NAME DesktopSubpanel
|
||||
CONTAINER_TYPE SUBPANEL
|
||||
POSITION_HINTS 1
|
||||
LABEL %|nls-18006-#Default#|
|
||||
ICON Fpprnt
|
||||
PUSH_ACTION DtPrint
|
||||
DROP_ACTION DtPrint
|
||||
DROP_ANIMATION PrinterDrop
|
||||
HELP_TOPIC FPOnItemPrinter
|
||||
HELP_VOLUME FPanel
|
||||
}
|
||||
|
||||
CONTROL PrintManager
|
||||
{
|
||||
TYPE icon
|
||||
|
||||
Reference in new issue
Block a user