diff --git a/nedit-5.5-scroll.patch b/nedit-5.5-scroll.patch new file mode 100644 index 0000000..ba75aba --- /dev/null +++ b/nedit-5.5-scroll.patch @@ -0,0 +1,22 @@ +diff -up nedit-5.5/util/misc.c.scroll nedit-5.5/util/misc.c +--- nedit-5.5/util/misc.c.scroll 2007-10-29 13:09:28.000000000 +0100 ++++ nedit-5.5/util/misc.c 2007-10-29 13:59:22.000000000 +0100 +@@ -2032,12 +2032,12 @@ void AddMouseWheelSupport(Widget w) + if (XmIsScrolledWindow(XtParent(w))) + { + static const char scrollTranslations[] = +- "Shift,: scrolled-window-scroll-up(1)\n" +- "Shift,: scrolled-window-scroll-down(1)\n" +- "Ctrl,: scrolled-window-page-up()\n" +- "Ctrl,: scrolled-window-page-down()\n" +- ",: scrolled-window-scroll-up(3)\n" +- ",: scrolled-window-scroll-down(3)\n"; ++ "Shift: scrolled-window-scroll-up(1)\n" ++ "Shift: scrolled-window-scroll-down(1)\n" ++ "Ctrl: scrolled-window-page-up()\n" ++ "Ctrl: scrolled-window-page-down()\n" ++ ": scrolled-window-scroll-up(3)\n" ++ ": scrolled-window-scroll-down(3)\n"; + static XtTranslations trans_table = NULL; + + if (trans_table == NULL) diff --git a/nedit.spec b/nedit.spec index 4735ee4..89c61c6 100644 --- a/nedit.spec +++ b/nedit.spec @@ -1,7 +1,7 @@ Summary: A GUI text editor for systems with X Name: nedit Version: 5.5 -Release: 14%{?dist} +Release: 15%{?dist} Source: http://nedit.org/ftp/v5_5/nedit-%{version}-src.tar.bz2 Source1: nedit.desktop Source2: nedit-icon.png @@ -13,6 +13,7 @@ Patch4: nedit-5.5-varfix.patch Patch5: nedit-5.5-nc-manfix.patch Patch6: nedit-5.5-visfix.patch Patch7: nedit-5.5-nocsh.patch +Patch8: nedit-5.5-scroll.patch URL: http://nedit.org License: GPLv2 Group: Applications/Editors @@ -36,6 +37,7 @@ Macintosh(TM) or Microsoft(TM) Windows(TM) style of interface. %patch5 -p1 -b .nc-manfix %patch6 -p1 -b .visfix %patch7 -p1 -b .nocsh +%patch8 -p1 -b .scroll %build make linux LIB=%{_lib} << EOF @@ -76,6 +78,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/pixmaps/nedit-icon.png %changelog +* Tue Oct 30 2007 Jindrich Novy 5.5-15 +- make mouse wheel scrolling compatible with lesstif (#354591) + * Mon Oct 29 2007 Jindrich Novy 5.5-14 - don't use /bin/csh but /bin/sh as default shell (#355441)