Greetings.

The 1.3.2 of the sample plug-in (gimp-plugin-template) uses some
features that are deprecated in the latest CVS version of the GIMP. It
is also missing an argument to one function call. The attached patch
allows the template plugin to compile.

-- 
Cheers!
 
Kevin.  (http://www.interlog.com/~kcozens/)
 
Owner of Elecraft K2 #2172        |"What are we going to do today, Borg?"
E-mail:kcozens at interlog dot com|"Same thing we always do, Pinkutus:
Packet:[EMAIL PROTECTED]|  Try to assimilate the world!"
#include <disclaimer/favourite>   |              -Pinkutus & the Borg
diff -ur gimp-plugin-template-1.3.2.orig/configure gimp-plugin-template-1.3.2/configure
--- gimp-plugin-template-1.3.2.orig/configure	2003-11-29 07:28:10.000000000 -0500
+++ gimp-plugin-template-1.3.2/configure	2004-01-31 23:11:53.000000000 -0500
@@ -6244,7 +6244,7 @@
   esac
 fi
 
-CPPFLAGS="$CPPFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
+CPPFLAGS="$CPPFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED"
 
 
 
diff -ur gimp-plugin-template-1.3.2.orig/configure.in gimp-plugin-template-1.3.2/configure.in
--- gimp-plugin-template-1.3.2.orig/configure.in	2003-11-06 12:26:39.000000000 -0500
+++ gimp-plugin-template-1.3.2/configure.in	2004-01-31 23:11:59.000000000 -0500
@@ -73,7 +73,7 @@
 fi
 changequote([,])dnl
 
-CPPFLAGS="$CPPFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
+CPPFLAGS="$CPPFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED"
 
 AC_SUBST(PLUGIN_MAJOR_VERSION)
 AC_SUBST(PLUGIN_MINOR_VERSION)
diff -ur gimp-plugin-template-1.3.2.orig/src/interface.c gimp-plugin-template-1.3.2/src/interface.c
--- gimp-plugin-template-1.3.2.orig/src/interface.c	2003-11-29 07:17:14.000000000 -0500
+++ gimp-plugin-template-1.3.2/src/interface.c	2004-01-31 23:17:50.000000000 -0500
@@ -89,6 +89,7 @@
   GtkWidget *sep;
   GtkObject *adj;
   gint       row;
+  gboolean   random_seed = FALSE;
   gboolean   run = FALSE;
   GimpUnit   unit;
   gdouble    xres, yres;
@@ -162,7 +163,7 @@
   gtk_container_add (GTK_CONTAINER (frame), hbox);
   gtk_widget_show (hbox);
 
-  hbox2 = gimp_random_seed_new (&vals->seed);
+  hbox2 = gimp_random_seed_new (&vals->seed, &random_seed);
   gtk_widget_set_size_request (GTK_WIDGET (GIMP_RANDOM_SEED_SPINBUTTON (hbox2)),
                                RANDOM_SEED_WIDTH, -1);
   gtk_box_pack_start (GTK_BOX (hbox), hbox2, FALSE, FALSE, 0);
_______________________________________________
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer

Reply via email to