Package: xxgdb Severity: wishlist Version: 1.12-13.2 Tags: patch
The filemenu is not sorted on linux systems. This makes searching for particular files difficult. So here is the patch! :) Greetings from the Linuxhotel
diff -u xxgdb-1.12/filemenu.c xxgdb-1.12/filemenu.c --- xxgdb-1.12/filemenu.c +++ xxgdb-1.12/filemenu.c @@ -222,2 +222,11 @@ +#ifdef NO_SCANDIR +/* This function is used by qsort + */ +int filenamecomp(const void *a, const void *b) { + return strcmp(*(char **)a, *(char **)b); +} +#endif + + /* Scans the working directory for files selected by InList(), sorted @@ -307,6 +316,8 @@ #ifdef NO_SCANDIR closedir(WorkingDir); + nfiles = i; + qsort(filelist, nfiles-1, sizeof(filelist[0]), filenamecomp); #else XtFree((XtPointer) namelist); #endif diff -u xxgdb-1.12/debian/changelog xxgdb-1.12/debian/changelog --- xxgdb-1.12/debian/changelog +++ xxgdb-1.12/debian/changelog @@ -1,3 +1,9 @@ +xxgdb (1.12-13.3) unstable; urgency=low + + * added sorting for the filemenu on linux (if NO_SCANDIR is defined) + + -- mrmuh, ulf, joey <[EMAIL PROTECTED]> Thu, 8 May 2008 22:26:49 +0200 + xxgdb (1.12-13.2) unstable; urgency=high * Non-maintainer upload.