Allow '>' and '@' to appear in menu items
[nedit-bw.git] / drag-move-fixes.patch
blob5f8408d0c2237d710f4358ec08fa09c1bd5668ed
1 ---
3 source/tabDragDrop.c | 4 ++--
4 1 file changed, 2 insertions(+), 2 deletions(-)
6 diff --quilt old/source/tabDragDrop.c new/source/tabDragDrop.c
7 --- old/source/tabDragDrop.c
8 +++ new/source/tabDragDrop.c
9 @@ -203,7 +203,7 @@ static void createTabDragCursor(Widget t
11 /* create drag icon widget */
12 Widget topLevelWidget = NULL, x = tabWidget;
13 - while ( (x = XtParent(x)) )
14 + while ((x = XtParent(x)))
15 topLevelWidget = x;
16 diInfo.dragIcon = XmCreateDragIcon(topLevelWidget, "tabDragIcon", dropIconArgs, n);
18 @@ -495,7 +495,7 @@ static void tabDragProc(Widget widget, X
19 lastTabBar = tabBar;
21 /* copy inverted image of the insertion site*/
22 - XGCValues gcVals = {};
23 + XGCValues gcVals;
24 GC gc1 = XCreateGC(TheDisplay, XtWindow(tabBar), 0, &gcVals);
25 gcVals.function = GXnor;
26 XChangeGC(TheDisplay, gc1, GCFunction, &gcVals);