fix nc -do ""
[nedit-bw.git] / Folder-scroll.patch
blob857f7e4e7990e41b24593d77d115145756cefeb3
1 ---
3 Microline/XmL/Folder.c | 11 ++++++++++-
4 source/window.c | 1 +
5 2 files changed, 11 insertions(+), 1 deletion(-)
7 diff --quilt old/Microline/XmL/Folder.c new/Microline/XmL/Folder.c
8 --- old/Microline/XmL/Folder.c
9 +++ new/Microline/XmL/Folder.c
10 @@ -932,7 +932,7 @@ LayoutTopBottom(XmLFolderWidget f,
11 tabFit = 0;
16 for (i = 0; i < f->folder.tabCount; i++)
18 tab = f->folder.tabs[i];
19 @@ -953,6 +953,15 @@ LayoutTopBottom(XmLFolderWidget f,
20 XtVaSetValues(tab, XmNwidth, tgtTabWidth, NULL);
23 + else
24 + {
25 + int thisTabWidth;
26 + XtVaGetValues(tab, XmNwidth, &thisTabWidth, NULL);
27 + if (thisTabWidth < f->folder.minTabWidth)
28 + XtVaSetValues(tab, XmNwidth, f->folder.minTabWidth, NULL);
29 + if (thisTabWidth > f->folder.maxTabWidth)
30 + XtVaSetValues(tab, XmNwidth, f->folder.maxTabWidth, NULL);
31 + }
33 fc = (XmLFolderConstraintRec *)(tab->core.constraints);
35 diff --quilt old/source/window.c new/source/window.c
36 --- old/source/window.c
37 +++ new/source/window.c
38 @@ -610,6 +610,7 @@ WindowInfo *CreateWindow(const char *nam
39 XmNbottomAttachment, XmATTACH_FORM,
40 XmNbottomOffset, 0,
41 XmNtopAttachment, XmATTACH_FORM,
42 + XmNmaxTabWidth, 96,
43 NULL);
45 window->tabMenuPane = CreateTabContextMenu(window->tabBar, window);