Origin: $NetBSD: patch-src_libimage_gif.c,v 1.4 2019/11/16 17:36:28 ng0 Exp $ Modified by: R Veera Kumar 2020-03-28; change to patch -p1 diff -uNr xplanet-1.3.1/src/libimage/gif.c xplanet-1.3.1.new/src/libimage/gif.c --- xplanet-1.3.1/src/libimage/gif.c 2013-02-17 01:07:47.000000000 +0530 +++ xplanet-1.3.1.new/src/libimage/gif.c 2020-03-28 22:15:24.444309199 +0530 @@ -21,7 +21,7 @@ #include #include #include - +#include #include /* @@ -178,8 +178,12 @@ *BufferP++ = ColorMapEntry->Blue; } } - + +#if GIFLIB_MAJOR >= 5 + if (DGifCloseFile(GifFile, NULL) == GIF_ERROR) { +#else if (DGifCloseFile(GifFile) == GIF_ERROR) { +#endif return(0); } @@ -493,7 +497,11 @@ static void QuitGifError(GifFileType *GifFile) { fprintf(stderr, "Error writing GIF file\n"); +#if GIFLIB_MAJOR >= 5 + if (GifFile != NULL) EGifCloseFile(GifFile, NULL); +#else if (GifFile != NULL) EGifCloseFile(GifFile); +#endif } int @@ -589,7 +597,11 @@ Ptr += width; } +#if GIFLIB_MAJOR >= 5 + if (EGifCloseFile(GifFile, NULL) == GIF_ERROR) +#else if (EGifCloseFile(GifFile) == GIF_ERROR) +#endif { QuitGifError(GifFile); x/tree/gnu/installer/newt/ethernet.scm?id=bbc26afd6198a55109589ed6477f13f1bcea1898'>treecommitdiff
AgeCommit message (Expand)Author
2022-02-02installer: Use named prompt to abort or break installer steps....* gnu/installer/steps.scm (run-installer-steps): Set up 'installer-step prompt. * gnu/installer/newt/ethernet.scm (run-ethernet-page) * gnu/installer/newt/final.scm (run-config-display-page, run-install-failed-page) * gnu/installer/newt/keymap.scm (run-layout-page, run-variant-page) * gnu/installer/newt/locale.scm (run-language-page, run-territory-page, run-codeset-page, run-modifier-page, run-locale-page) * gnu/installer/newt/network.scm (run-technology-page, wait-service-online) * gnu/installer/newt/page.scm (run-listbox-selection-page, run-checkbox-tree-page) * gnu/installer/newt/partition.scm (button-exit-action) * gnu/installer/newt/services.scm (run-desktop-environments-cbt-page, run-networking-cbt-page, run-other-services-cbt-page, run-network-management-page) * gnu/installer/newt/timezone.scm (run-timezone-page) * gnu/installer/newt/user.scm (run-user-page) * gnu/installer/newt/welcome.scm (run-menu-page) * gnu/installer/newt/wifi.scm (run-wifi-page): Use the 'installer-step prompt to abort. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Josselin Poiret
2020-11-07installer: Limit listbox height....Fixes: <https://issues.guix.gnu.org/44428>. * gnu/installer/newt.scm (init): Print screen size. * gnu/installer/newt/page.scm (default-listbox-height): New variable. (run-listbox-selection-page): Use it. * gnu/installer/newt/wifi.scm (wifi-listbox-height): Ditto. * gnu/installer/newt/network.scm (run-technology-page): Set the maximum listbox height to 5. * gnu/installer/newt/ethernet.scm (run-ethernet-page): Ditto. * gnu/installer/newt/final.scm (run-config-display-page): Change listbox height. * gnu/installer/newt/partition.scm (run-disk-page): Ditto. * gnu/installer/newt/welcome.scm (display-logo?): New procedure. (run-menu-page): Use it. * gnu/installer/steps.scm (%configuration-file-width): Remove it. Mathieu Othacehe