Re: [Gimp-user] stegano compile

2003-06-14 Thread Sven Neumann
Hi,

Below is a patch that makes the plug-in compile against the GIMP 1.2
API. Forget the Makefile that is included with the tarball and instead
use gimptool-1.2 to compile the plug-in. So in order to build it,
change to the Stegano source tree, apply the patch:

 patch -p0  stegano.diff

compile and install using gimptool-1.2:

 gimptool-1.2 --install stegano.c

I haven't even tested if the plug-in works but at least you should get
it compiled now.


Sven


--- stegano.c.orig  1998-12-01 20:15:53.0 +0100
+++ stegano.c   2003-06-14 11:37:29.0 +0200
@@ -7,6 +7,10 @@
  **
  */
 
+/*  Applied some Search-and-Replace rules to make it compile
+ *  against the GIMP-1.2 API.   -- June 2003, Sven Neumann [EMAIL PROTECTED]
+ */
+
  
 /* The GIMP -- an image manipulation program
  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
@@ -28,6 +32,7 @@
 
 #include stdlib.h
 #include string.h
+#include stdio.h
 #include math.h
 #include sys/stat.h
 
@@ -52,11 +57,11 @@ typedef struct {
  */
 static void query(void);
 static void run(char *name, int nparams,
-   GParam *param,
+   GimpParam *param,
int *nreturn_vals,
-   GParam **return_vals);
-static void drawstegano(GDrawable *drawable);
-static void readstegano(GDrawable *drawable);
+   GimpParam **return_vals);
+static void drawstegano(GimpDrawable *drawable);
+static void readstegano(GimpDrawable *drawable);
 static gint stegano_dialog(void);
 static gint stegano_save_dialog(void);
 static gint stegano_warning_dialog(void);
@@ -78,14 +83,14 @@ GtkTooltips *tips;
 GdkColor tips_fg,tips_bg;  
 gchar filename[128];
 gint saverun;
-  static GParam values[1];
-  GDrawable *drawable;
-  GRunModeType run_mode;
-  GStatusType status = STATUS_SUCCESS;
+  static GimpParam values[1];
+  GimpDrawable *drawable;
+  GimpRunModeType run_mode;
+  GimpPDBStatusType status = GIMP_PDB_SUCCESS;
 
 
 
-GPlugInInfo PLUG_IN_INFO =
+GimpPlugInInfo PLUG_IN_INFO =
 {
   NULL, /* init_proc */
   NULL, /* quit_proc */
@@ -108,16 +113,16 @@ MAIN()
 static void
 query(void)
 {
-  static GParamDef args[] =
+  static GimpParamDef args[] =
   {
-{ PARAM_INT32, run_mode, Interactive, non-interactive },
-{ PARAM_IMAGE, image, Input image (unused) },
-{ PARAM_DRAWABLE, drawable, Input drawable },
-{ PARAM_INT8, mode, FALSE: Hide file in image; TRUE: Get hidden file },
-{ PARAM_STRING, filename[128], Name of the file to hide in an image (only of 
importance if mode=FALSE },
+{ GIMP_PDB_INT32, run_mode, Interactive, non-interactive },
+{ GIMP_PDB_IMAGE, image, Input image (unused) },
+{ GIMP_PDB_DRAWABLE, drawable, Input drawable },
+{ GIMP_PDB_INT8, mode, FALSE: Hide file in image; TRUE: Get hidden file },
+{ GIMP_PDB_STRING, filename[128], Name of the file to hide in an image (only 
of importance if mode=FALSE },
   };
 
-  static GParamDef *return_vals = NULL;
+  static GimpParamDef *return_vals = NULL;
   static int nargs = sizeof(args)/ sizeof(args[0]);
   static int nreturn_vals = 0;
 
@@ -129,7 +134,7 @@ query(void)
 December, 1998,
 Image/Filters/Image/Stegano,
 RGB*, GRAY*, INDEXED*,
-PROC_PLUG_IN,
+GIMP_PLUGIN,
 nargs, nreturn_vals,
 args, return_vals);
 }
@@ -137,16 +142,16 @@ query(void)
 static void
 run(char *name,
 int nparams,
-GParam *param,
+GimpParam *param,
 int *nreturn_vals,
-GParam **return_vals)
+GimpParam **return_vals)
 {
   gchar **argv;
   gint argc;
 
   run_mode = param[0].data.d_int32;
 
-  values[0].type = PARAM_STATUS;
+  values[0].type = GIMP_PDB_STATUS;
   values[0].data.d_status = status;
   
   *nreturn_vals = 1;
@@ -156,7 +161,7 @@ run(char *name,
   
 
   switch(run_mode) {
-  case RUN_INTERACTIVE:
+  case GIMP_RUN_INTERACTIVE:
/* Possibly retrieve data */
gimp_get_data(plug_in_stegano, wvals);
/* Get information from the dialog */
@@ -169,11 +174,11 @@ run(char *name,
stegano_dialog();
return;
 
-  case RUN_NONINTERACTIVE:
+  case GIMP_RUN_NONINTERACTIVE:
/* Make sure all the arguments are present */
if (nparams != 5)
-   status = STATUS_CALLING_ERROR;
-   if (status == STATUS_SUCCESS)
+   status = GIMP_PDB_CALLING_ERROR;
+   if (status == GIMP_PDB_SUCCESS)
wvals.mode = param[3].data.d_int8;
   strncpy (wvals.filename,param[4].data.d_string, 128);
   wvals.filename[127]='\0';
@@ -186,7 +191,7 @@ run(char *name,
   gtk_tooltips_set_delay(tips, 2500);
 
   break;
-  case RUN_WITH_LAST_VALS:
+  case GIMP_RUN_WITH_LAST_VALS:
/* Possibly retrieve data */
   argc = 1;
argv = g_new(gchar *, 1);
@@ -202,18 +207,18 @@ run(char *name,
   

[Gimp-user] PSD saving problem

2003-06-14 Thread Fabien3D
I've got a very huge XCF file (130 Mo), with multiple layers, and I'd like to 
convert it to a PSD file, but the plug-in always warns me about a gmem module 
(as far as I can remember). I thought it was a WinXP problem, but the same 
error message appears on a Win98SE platform. Is there any other way to 
convert an XCF file to PSD ?
I use the 1.2.3 release.

-- 
   Fabien3D

CREAFab, la création numérique autrement...
http://creafab.free.fr

___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Fonts

2003-06-14 Thread John Culleton
On Friday 06 June 2003 07:25 am, Sven Neumann wrote:
 Hi,

 Donna Robinson [EMAIL PROTECTED] writes:
  I've just recently installed Suse 8.2, and am having trouble with
  fonts :-) Most of the Script Fu examples won't work - they fail
  horribly 'cos they can't find the fonts.

 Did you install the freefonts package? Most scripts refer to fonts
 found in that collection.


 Sven
The directions for installing the freefonts collection are very explicit and 
clear, but they aren't sufficient for installing other fonts one may have. Is 
there guidance availble on that subject?

-- 
John Culleton
Able Typesetters and Indexers
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


[Gimp-user] GIMP-1.2.5 Compile Fails

2003-06-14 Thread Jeff Trefftzs
Hi All -

I just downloaded and began compiling the latest stable gimp, 1.2.5. 
Configure worked properly, but the compile failed with the following
output:

gcc -DHAVE_CONFIG_H -I. -I. -I..
-I..-I../intl   -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/local/include
-DLIBDIR=\/usr/local/lib/gimp/1.2\  
-DLOCALEDIR=\/usr/local/share/locale\   -DREGEX_MALLOC 
 -DG_LOG_DOMAIN=\Gimp\  
-DGTK_DISABLE_COMPAT_H  -g -O2 -Wall -c parasitelist.c
In file included from
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
 from
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
 from
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
 from /usr/lib/glib/include/glibconfig.h:9,
 from /usr/include/glib-1.2/glib.h:66,
 from /usr/include/gtk-1.2/gdk/gdktypes.h:33,
 from /usr/include/gtk-1.2/gdk/gdk.h:31,
 from /usr/include/gtk-1.2/gtk/gtk.h:31,
 from parasitelist.c:22:
/usr/include/limits.h:-6358: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

Any ideas what might cause this?  I'm on RH9, with a previously
installed Gimp-1.2.3.  Is it my system (not impossible) or is this a
real bug?

-- 

--Jeff

Jeff Trefftzs [EMAIL PROTECTED]
http://www.tcsn.net/trefftzsHome Page
http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery
http://trefftzs.topcities.com/  Photo Gallery 

___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


[Gimp-user] Setting Up Wilber

2003-06-14 Thread Carol Spears
Wilber is the name of the computer housed at berkeley.  

Looks like we will be planning what will become of Wilber tomorrow.

I apologize as this is short notice for something that is long overdue,
but there you go.

Sorry about the weekend notice also, probably i followed the WrongMethod
like they did to notify poor Arthur Dent of his homes demise in the
first of the hitchiker books.  

Please send your ideas or needs to this list or any other.

Lets call this 24 hour notice.

carol


-- 
The sooner you fall behind, the more time you have to catch up.
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user