From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199611270618.XAA07312@panda.mosberger> Date: Tue, 26 Nov 1996 23:18:14 -0700 From: David Mosberger-Tang Subject: small gimp patch Here is a rather small patch that makes gimp work reasonably well. It's relative to the 961001 snapshot in ftp://ftp.xcf.berkeley.edu:/pub/gimp/developers I wouldn't say gimp works perfectly with this patch, but it seems to work about as good as on the x86. So, save often and be happy. Enjoy, --david diff -urN gimp/app/Makefile gimp-axp/app/Makefile --- gimp/app/Makefile Mon Sep 30 01:51:30 1996 +++ gimp-axp/app/Makefile Sat Nov 23 13:00:10 1996 @@ -125,7 +125,7 @@ MAKEDEPEND = $(CC) -MM LIBS = -lgtk -lgdk -lXext -lX11 -lglib -lm -CFLAGS = -g -pipe -Wall -ansi -pedantic -I/usr/X11R6/include -DLIBDIR=\""$(libdir)"\" -I../gtk -I../gtk/glib +CFLAGS = -D_GNU_SOURCE -g -pipe -Wall -ansi -pedantic -I/usr/X11R6/include -DLIBDIR=\""$(libdir)"\" -I../gtk -I../gtk/glib LDFLAGS = -L/usr/X11R6/lib -L../gtk -L../gtk/glib diff -urN gimp/app/fileops.c gimp-axp/app/fileops.c --- gimp/app/fileops.c Mon Sep 30 14:53:53 1996 +++ gimp-axp/app/fileops.c Tue Nov 26 22:51:22 1996 @@ -289,7 +289,7 @@ gtk_file_selection_set_ok_callback (filesel, file_open_ok_callback, open_options); gtk_file_selection_set_cancel_callback (filesel, file_cancel_callback, open_options); - if (gdisp && gdisp->gimage->has_filename) + if (gdisp && gdisp->gimage && gdisp->gimage->has_filename) gtk_file_selection_set_filename (filesel, gimage_filename (gdisp->gimage)); gtk_widget_show (filesel); diff -urN gimp/gtk/Makefile gimp-axp/gtk/Makefile --- gimp/gtk/Makefile Wed Aug 21 22:29:27 1996 +++ gimp-axp/gtk/Makefile Sat Nov 23 12:44:38 1996 @@ -97,7 +97,7 @@ LN_S = ln -s LIBS = -lgtk -lgdk -lXext -lX11 -lglib -lc -lm -CFLAGS = -g -Wall -m486 -ansi -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE -DNO_MESSAGE_CATALOG -DFUNCPROTO=15 -DNARROWPROTO -I./ -Iglib -I/usr/X11R6/include +CFLAGS = -g -Wall -ansi -I/usr/X11R6/include -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE -DNO_MESSAGE_CATALOG -DFUNCPROTO=15 -DNARROWPROTO -I./ -Iglib -I/usr/X11R6/include LDFLAGS = -L./ -Lglib -L/usr/X11R6/lib diff -urN gimp/plug-ins/Makefile gimp-axp/plug-ins/Makefile --- gimp/plug-ins/Makefile Sun Sep 29 21:23:48 1996 +++ gimp-axp/plug-ins/Makefile Tue Nov 26 21:50:25 1996 @@ -105,9 +106,9 @@ INSTALL = ../install-sh -c MAKEDEPEND = $(CC) -MM LIBS = -lgimp -lc -lm -CFLAGS = -g -pipe -Wall -ansi -pedantic -I./ +CFLAGS = -D_GNU_SOURCE -g -pipe -Wall -ansi -pedantic -I./ LDFLAGS = -L./ PLUGINOBJ = $(PLUGINSRC:.c=.o) @@ -132,7 +133,7 @@ -$(CC) $(CFLAGS) -o jpeg jpeg.c $(LDFLAGS) -ljpeg $(LIBS) png: png.c $(LIBGIMP) - -$(CC) $(CFLAGS) -o png png.c $(LDFLAGS) -lpng -lz $(LIBS) + -$(CC) $(CFLAGS) -o png png.c $(LDFLAGS) -lpng -lgz $(LIBS) tiff: tiff.c $(LIBGIMP) -$(CC) $(CFLAGS) -o tiff tiff.c $(LDFLAGS) -ltiff $(LIBS) diff -urN gimp/plug-ins/gimp.c gimp-axp/plug-ins/gimp.c --- gimp/plug-ins/gimp.c Fri Aug 23 19:25:10 1996 +++ gimp-axp/plug-ins/gimp.c Sat Nov 23 19:30:35 1996 @@ -1372,7 +1384,8 @@ p[2] = 0; p[3] = constraint; - return gimp_new_item (dialog_ID, parent_ID, ITEM_IMAGE_MENU, data, 128); + return gimp_new_item (dialog_ID, parent_ID, ITEM_IMAGE_MENU, data, + sizeof(data)); } int @@ -1387,7 +1400,7 @@ data[2] = start; data[3] = prec; - return gimp_new_item (dialog_ID, parent_ID, ITEM_SCALE, data, 16); + return gimp_new_item (dialog_ID, parent_ID, ITEM_SCALE, data, sizeof(data)); } int -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com