diff options
author | erich <erich@FreeBSD.org> | 1997-05-02 02:25:47 +0800 |
---|---|---|
committer | erich <erich@FreeBSD.org> | 1997-05-02 02:25:47 +0800 |
commit | 307c92df0abf1c7a46efc2fbfb841ad24624f956 (patch) | |
tree | 2abfb9963359494394d64cff50e872c387df979c /graphics/gimp-app-devel/files | |
parent | a2802607ae97a211e225af2ee2c067fd1c959b29 (diff) | |
download | freebsd-ports-gnome-307c92df0abf1c7a46efc2fbfb841ad24624f956.tar.gz freebsd-ports-gnome-307c92df0abf1c7a46efc2fbfb841ad24624f956.tar.zst freebsd-ports-gnome-307c92df0abf1c7a46efc2fbfb841ad24624f956.zip |
upgrade to 0.99.9, plus a bunch of patches from the list.
Obtained from: gimp-devel mailing list, in part
Diffstat (limited to 'graphics/gimp-app-devel/files')
-rw-r--r-- | graphics/gimp-app-devel/files/patch-aa | 45 | ||||
-rw-r--r-- | graphics/gimp-app-devel/files/patch-ab | 61 | ||||
-rw-r--r-- | graphics/gimp-app-devel/files/patch-ac | 20 | ||||
-rw-r--r-- | graphics/gimp-app-devel/files/patch-ah | 337 |
4 files changed, 369 insertions, 94 deletions
diff --git a/graphics/gimp-app-devel/files/patch-aa b/graphics/gimp-app-devel/files/patch-aa deleted file mode 100644 index 9049a1722446..000000000000 --- a/graphics/gimp-app-devel/files/patch-aa +++ /dev/null @@ -1,45 +0,0 @@ -**** -**** patches for the libtool in all the directories. -**** These are mostly for linking against the freshly build -**** libraraies rather than the installed ones. -**** - ---- /a/gimp-0.99.6/ltmain.sh Wed Feb 26 03:39:50 1997 -+++ ltmain.sh Wed Mar 12 20:20:40 1997 -@@ -334,7 +335,9 @@ - exit 1 - ;; - esac -- deplibs="$deplibs $arg" -+ compile_shlibpath="$compile_shlibpath$dir:" -+ printf "compile_shlibpath: $compile_shlibpath\n" -+ arg="" - ;; - - -l*) deplibs="$deplibs $arg" ;; ---- /a/gimp-0.99.6/gtk+/ltmain.sh Wed Feb 26 03:39:50 1997 -+++ gtk+/ltmain.sh Wed Mar 12 20:20:40 1997 -@@ -334,7 +335,9 @@ - exit 1 - ;; - esac -- deplibs="$deplibs $arg" -+ compile_shlibpath="$compile_shlibpath$dir:" -+ printf "compile_shlibpath: $compile_shlibpath\n" -+ arg="" - ;; - - -l*) deplibs="$deplibs $arg" ;; ---- /a/gimp-0.99.6/gtk+/glib/ltmain.sh Wed Feb 26 03:39:50 1997 -+++ gtk+/glib/ltmain.sh Wed Mar 12 20:20:40 1997 -@@ -334,7 +335,9 @@ - exit 1 - ;; - esac -- deplibs="$deplibs $arg" -+ compile_shlibpath="$compile_shlibpath$dir:" -+ printf "compile_shlibpath: $compile_shlibpath\n" -+ arg="" - ;; - - -l*) deplibs="$deplibs $arg" ;; diff --git a/graphics/gimp-app-devel/files/patch-ab b/graphics/gimp-app-devel/files/patch-ab index 081000754daa..6a11e5bcd9fa 100644 --- a/graphics/gimp-app-devel/files/patch-ab +++ b/graphics/gimp-app-devel/files/patch-ab @@ -16,17 +16,6 @@ _exit(127); } else ---- plug-ins/ripple.c~ Fri Apr 18 09:21:26 1997 -+++ plug-ins/ripple.c Fri Apr 18 09:21:31 1997 -@@ -1015,7 +1015,7 @@ - switch (rvals.waveform) - { - case SINE: -- return rvals.amplitude*sin(location*(2*PI)/(double)rvals.period); -+ return rvals.amplitude*sin(location*(2*M_PI)/(double)rvals.period); - break; - case SAWTOOTH: - return floor(rvals.amplitude*(fabs((((location%rvals.period)/(double)rvals.period)*4)-2)-1)); The patches for displace ------------------------ @@ -119,24 +108,6 @@ The patches for displace } tile = displace_pixel (drawable, tile, x1, y1, x2, y2, xi, yi, &row, &col, pixel[0]); -*************** -*** 712,718 **** - return TRUE; - - if (gimp_drawable_width (drawable_id) == drawable->width && -! gimp_drawable_height (drawable_id) == drawable->height) - return TRUE; - else - return FALSE; ---- 719,726 ---- - return TRUE; - - if (gimp_drawable_width (drawable_id) == drawable->width && -! gimp_drawable_height (drawable_id) == drawable->height && -! gimp_drawable_type (drawable_id) == GRAY_IMAGE) - return TRUE; - else - return FALSE; --- plug-ins/script-fu/interp_regex.c~ Fri Apr 18 14:00:00 1997 +++ plug-ins/script-fu/interp_regex.c Fri Apr 18 14:00:45 1997 @@ -145,14 +116,24 @@ The patches for displace #include <stdio.h> #include <stdlib.h> #include <string.h> ---- plug-ins/plasma.c~ Fri Apr 18 15:01:43 1997 -+++ plug-ins/plasma.c Fri Apr 18 15:01:53 1997 -@@ -310,7 +310,7 @@ - gtk_widget_set_usize( entry, ENTRY_WIDTH, 0 ); - sprintf( buffer, "%d", pvals.seed ); - gtk_entry_set_text (GTK_ENTRY (entry), buffer ); -- gtk_signal_connect (GTK_OBJECT (entry), "changed_text", -+ gtk_signal_connect (GTK_OBJECT (entry), "changed", - (GtkSignalFunc) plasma_entry_callback, - &pvals.seed); - gtk_widget_show (entry); + +--- plug-ins/dgimp/dgimp.c.orig Wed Apr 30 11:39:18 1997 ++++ plug-ins/dgimp/dgimp.c Wed Apr 30 11:38:42 1997 +@@ -15,6 +15,7 @@ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ ++#include <sys/types.h> + #include <stdlib.h> + #include <stdio.h> + #include <string.h> +--- plug-ins/dgimp/lgp.c.orig Wed Apr 30 11:39:18 1997 ++++ plug-ins/dgimp/lgp.c Wed Apr 30 11:39:00 1997 +@@ -15,6 +15,7 @@ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ ++#include <sys/types.h> + #include <stdlib.h> + #include <stdio.h> + #include <string.h> diff --git a/graphics/gimp-app-devel/files/patch-ac b/graphics/gimp-app-devel/files/patch-ac index 6ee30980df23..ac953a93187e 100644 --- a/graphics/gimp-app-devel/files/patch-ac +++ b/graphics/gimp-app-devel/files/patch-ac @@ -15,6 +15,7 @@ echo "configure:564: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then + --- ./gtk+/configure~ Fri Mar 28 10:58:42 1997 +++ ./gtk+/configure Tue Apr 8 08:05:57 1997 @@ -568,6 +568,7 @@ @@ -25,17 +26,18 @@ echo "configure:572: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then ---- configure.orig Fri Apr 18 03:57:14 1997 -+++ configure Fri Apr 18 08:44:36 1997 -@@ -567,6 +567,7 @@ + +--- configure.orig Sun Apr 27 00:27:09 1997 ++++ configure Mon Apr 28 21:23:51 1997 +@@ -571,6 +571,7 @@ # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 - echo "configure:570: checking for a BSD compatible install" >&5 + echo "configure:574: checking for a BSD compatible install" >&5 +INSTALL="/usr/bin/install -c" if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 -@@ -616,7 +617,7 @@ +@@ -620,7 +621,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' @@ -44,12 +46,12 @@ PACKAGE=gimp -@@ -2172,7 +2173,7 @@ - +@@ -2196,7 +2197,7 @@ + fi gimpdatadir=$datadir/$PACKAGE/$VERSION -gimpplugindir=$libdir/$PACKAGE/$VERSION +gimpplugindir=$libexecdir/$PACKAGE/$VERSION - - + scriptdata=`ls -1 plug-ins/script-fu/scripts | grep -v Makefile` + scriptdata=`echo $scriptdata` diff --git a/graphics/gimp-app-devel/files/patch-ah b/graphics/gimp-app-devel/files/patch-ah new file mode 100644 index 000000000000..97c39b1d7058 --- /dev/null +++ b/graphics/gimp-app-devel/files/patch-ah @@ -0,0 +1,337 @@ +Date: Mon, 28 Apr 1997 13:14:20 -0500 +Message-Id: <199704281814.NAA31815@nuclecu.unam.mx> +From: Federico Mena <federico@nuclecu.unam.mx> +To: gimp-developer@scam.xcf.berkeley.edu +Subject: PATCH: repeat functions added to blend.c +Reply-to: federico@nuclecu.unam.mx + +Hello, everyone + +This patch makes the necessary changes to blend.c so that the blend +tool lets you select among three different repeat functions: + +- None: this is the default, and it is the way the blend tool always +has worked. On either side of the direction vector, the gradient will +use 0 and 1 values, respectively. + +- Sawtooth wave: the gradient will repeat 01->01->01->etc. + +- Triangular wave: the gradient will repeat 01->10->01->10->etc. + +I have thus added the constants REPEAT-NONE, REPEAT-SAWTOOTH and +REPEAT-TRIANGULAR to Script-fu. + +My next patch to blend.c will be to add adaptive supersampling. + + Quartic + +--- app/blend.dist.c Mon Apr 28 09:06:57 1997 ++++ app/blend.c Mon Apr 28 12:51:22 1997 +@@ -65,6 +65,15 @@ + CUSTOM_MODE + } BlendMode; + ++typedef enum ++{ ++ REPEAT_NONE, ++ REPEAT_SAWTOOTH, ++ REPEAT_TRIANGULAR, ++} RepeatMode; ++ ++typedef double (*RepeatFunc)(double); ++ + typedef struct _BlendTool BlendTool; + struct _BlendTool + { +@@ -85,7 +94,7 @@ + BlendMode blend_mode; + int paint_mode; + GradientType gradient_type; +- int repeat; ++ RepeatMode repeat; + }; + + /* local function prototypes */ +@@ -93,7 +102,7 @@ + static void gradient_type_callback (GtkWidget *, gpointer); + static void blend_mode_callback (GtkWidget *, gpointer); + static void paint_mode_callback (GtkWidget *, gpointer); +-static void repeat_toggle_update (GtkWidget *widget, int *value); ++static void repeat_type_callback (GtkWidget *, gpointer); + + static void blend_button_press (Tool *, GdkEventButton *, gpointer); + static void blend_button_release (Tool *, GdkEventButton *, gpointer); +@@ -105,7 +114,7 @@ + BlendMode blend_mode, int paint_mode, + GradientType gradient_type, + double opacity, double offset, +- int repeat, ++ RepeatMode repeat, + double startx, double starty, + double endx, double endy); + +@@ -125,10 +134,14 @@ + static double gradient_calc_shapeburst_spherical_factor (double x, double y); + static double gradient_calc_shapeburst_dimpled_factor (double x, double y); + ++static double gradient_repeat_none(double val); ++static double gradient_repeat_sawtooth(double val); ++static double gradient_repeat_triangular(double val); ++ + static void gradient_precalc_shapeburst (GImage *gimage, int, PixelRegion *PR, double dist); + static void gradient_fill_region (GImage *gimage, int, PixelRegion *PR, + BlendMode blend_mode, GradientType gradient_type, +- double offset, int repeat, int sx, int sy, int ex, int ey); ++ double offset, RepeatMode repeat, int sx, int sy, int ex, int ey); + + static BlendOptions *create_blend_options (void); + static Argument *blend_invoker (Argument *); +@@ -173,6 +186,16 @@ + /* blend options */ + static BlendOptions *blend_options = NULL; + ++/* repeat menu items */ ++ ++static MenuItem repeat_option_items[] = ++{ ++ { "None", 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL }, ++ { "Sawtooth wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL }, ++ { "Triangular wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL }, ++ { NULL, 0, 0, NULL, NULL, NULL, NULL } ++}; ++ + + static void + blend_scale_update (GtkAdjustment *adjustment, +@@ -203,13 +226,10 @@ + } + + static void +-repeat_toggle_update(GtkWidget *widget, +- int *value) ++repeat_type_callback(GtkWidget *widget, ++ gpointer client_data) + { +- if (GTK_TOGGLE_BUTTON(widget)->active) +- *value = TRUE; +- else +- *value = FALSE; ++ blend_options->repeat = (RepeatMode) client_data; + } + + static BlendOptions * +@@ -225,7 +245,8 @@ + GtkWidget *pm_menu; + GtkWidget *gt_option_menu; + GtkWidget *gt_menu; +- GtkWidget *button; ++ GtkWidget *rt_option_menu; ++ GtkWidget *rt_menu; + GtkWidget *opacity_scale; + GtkWidget *table; + GtkWidget *offset_scale; +@@ -239,7 +260,7 @@ + options->blend_mode = FG_BG_RGB_MODE; + options->paint_mode = NORMAL; + options->gradient_type = Linear; +- options->repeat = FALSE; ++ options->repeat = REPEAT_NONE; + + /* the main vbox */ + vbox = gtk_vbox_new (FALSE, 5); +@@ -257,7 +278,7 @@ + gtk_widget_show(frame); + + /* the table */ +- table = gtk_table_new (5, 2, FALSE); ++ table = gtk_table_new (6, 2, FALSE); + gtk_container_border_width (GTK_CONTAINER (table), 5); + gtk_container_add(GTK_CONTAINER(frame), table); + +@@ -336,16 +357,22 @@ + gtk_widget_show (label); + gtk_widget_show (gt_option_menu); + +- gtk_widget_show (table); +- + /* the repeat option */ + +- button = gtk_check_button_new_with_label("Repeat gradient"); +- gtk_box_pack_start(GTK_BOX(vbox), button, TRUE, TRUE, 0); +- gtk_signal_connect(GTK_OBJECT(button), "toggled", +- (GtkSignalFunc) repeat_toggle_update, +- &options->repeat); +- gtk_widget_show(button); ++ label = gtk_label_new("Repeat:"); ++ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); ++ gtk_table_attach(GTK_TABLE(table), label, 0, 1, 5, 6, ++ GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 2); ++ rt_menu = build_menu(repeat_option_items, NULL); ++ rt_option_menu = gtk_option_menu_new(); ++ gtk_table_attach(GTK_TABLE(table), rt_option_menu, 1, 2, 5, 6, ++ GTK_EXPAND | GTK_SHRINK | GTK_FILL, GTK_SHRINK, 4, 2); ++ gtk_widget_show(label); ++ gtk_widget_show(rt_option_menu); ++ ++ /* show the whole table */ ++ ++ gtk_widget_show (table); + + /* Register this selection options widget with the main tools options dialog */ + tools_register_options (BLEND, vbox); +@@ -354,6 +381,7 @@ + gtk_option_menu_set_menu (GTK_OPTION_MENU (bm_option_menu), bm_menu); + gtk_option_menu_set_menu (GTK_OPTION_MENU (gt_option_menu), gt_menu); + gtk_option_menu_set_menu (GTK_OPTION_MENU (pm_option_menu), pm_menu); ++ gtk_option_menu_set_menu (GTK_OPTION_MENU (rt_option_menu), rt_menu); + + return options; + } +@@ -561,7 +589,7 @@ + GradientType gradient_type, + double opacity, + double offset, +- int repeat, ++ RepeatMode repeat, + double startx, + double starty, + double endx, +@@ -865,6 +893,36 @@ + return value; + } + ++static double ++gradient_repeat_none(double val) ++{ ++ return BOUNDS(val, 0.0, 1.0); ++} ++ ++static double ++gradient_repeat_sawtooth(double val) ++{ ++ if (val >= 0.0) ++ return fmod(val, 1.0); ++ else ++ return 1.0 - fmod(-val, 1.0); ++} ++ ++static double ++gradient_repeat_triangular(double val) ++{ ++ int ival; ++ ++ if (val < 0.0) ++ val = -val; ++ ++ ival = (int) val; ++ ++ if (ival & 1) ++ return 1.0 - fmod(val, 1.0); ++ else ++ return fmod(val, 1.0); ++} + + /*****/ + static void +@@ -956,7 +1014,7 @@ + BlendMode blend_mode, + GradientType gradient_type, + double offset, +- int repeat, ++ RepeatMode repeat, + int sx, + int sy, + int ex, +@@ -973,6 +1031,7 @@ + double factor; + unsigned char *data; + void * pr; ++ RepeatFunc repeat_func; + + /* Get foreground and background colors */ + palette_get_foreground(&rf, &gf, &bf); +@@ -1058,6 +1117,26 @@ + break; + } /* switch */ + ++ /* Set repeat function */ ++ ++ switch (repeat) ++ { ++ case REPEAT_NONE: ++ repeat_func = gradient_repeat_none; ++ break; ++ ++ case REPEAT_SAWTOOTH: ++ repeat_func = gradient_repeat_sawtooth; ++ break; ++ ++ case REPEAT_TRIANGULAR: ++ repeat_func = gradient_repeat_triangular; ++ break; ++ ++ default: ++ fatal_error("gradient_fill_region(): unknown repeat mode %d", (int) repeat); ++ break; ++ } /* switch */ + + /* Cycle through the affected tiles and fill */ + for (pr = pixel_regions_register (1, PR); pr != NULL; pr = pixel_regions_process (pr)) +@@ -1116,10 +1195,7 @@ + + /* Adjust for repeat */ + +- if (repeat) +- factor = fmod(factor, 1.0); +- else +- factor = BOUNDS(factor, 0.0, 1.0); ++ factor = (*repeat_func)(factor); + + /* Blend the colors */ + +@@ -1250,7 +1326,7 @@ + }, + { PDB_INT32, + "repeat", +- "Repeat the gradient indefinitely along the direction vector" ++ "Repeat mode: { NONE (0), REPEAT_SAWTOOTH (1), REPEAT_TRIANGULAR (2) }" + }, + { PDB_FLOAT, + "x1", +@@ -1303,7 +1379,7 @@ + GradientType gradient_type; + double opacity; + double offset; +- int repeat; ++ RepeatMode repeat; + double x1, y1; + double x2, y2; + int int_value; +@@ -1387,7 +1463,13 @@ + if (success) + { + int_value = args[7].value.pdb_int; +- repeat = (int_value ? TRUE : FALSE); ++ switch (int_value) ++ { ++ case 0: repeat = REPEAT_NONE; break; ++ case 1: repeat = REPEAT_SAWTOOTH; break; ++ case 2: repeat = REPEAT_TRIANGULAR; break; ++ default: success = FALSE; ++ } + } + /* x1, y1, x2, y2 */ + if (success) +--- plug-ins/script-fu/script-fu.c~ Sun Apr 27 00:31:00 1997 ++++ plug-ins/script-fu/script-fu.c Mon Apr 28 12:58:19 1997 +@@ -493,6 +493,10 @@ + setvar (cintern ("SHAPEBURST-SPHERICAL"), flocons (7), NIL); + setvar (cintern ("SHAPEBURST-DIMPLED"), flocons (8), NIL); + ++ setvar (cintern ("REPEAT-NONE"), flocons(0), NIL); ++ setvar (cintern ("REPEAT-SAWTOOTH"), flocons(1), NIL); ++ setvar (cintern ("REPEAT-TRIANGULAR"), flocons(2), NIL); ++ + setvar (cintern ("FG-BUCKET-FILL"), flocons (0), NIL); + setvar (cintern ("BG-BUCKET-FILL"), flocons (1), NIL); + setvar (cintern ("PATTERN-BUCKET-FILL"), flocons (2), NIL); |