Re. patches for gimp 1.1.x

2000-05-17 Thread DrMartin.Weber

Yeah !!!


Due to the size of the patches i am not including them in the mailing.

I have uploaded them to ftp.gimp.org/incoming

and made them available at
http://210.169.82.50/gimp-patches.tar.bz2

There are 13 patches for preview modes in various plugins
and one patch for save as filter, GTM, to add a different
HTML save mode.

There is a screenshot of the new plugin look at
http://210.169.82.50/plugins.jpg

- timecop


 



static and forward declaration

2000-05-17 Thread Arnaud Masson

Hi

In Gimp source code, there are many lines like

-

static ProcRecord channel_ops_offset_proc;
static ProcRecord channel_ops_duplicate_proc;

...

void
register_channel_ops_procs (void)
{
  procedural_db_register (channel_ops_offset_proc);
  procedural_db_register (channel_ops_duplicate_proc);
}

...

static ProcRecord channel_ops_offset_proc =
{
...
}

static ProcRecord channel_ops_duplicate_proc =
{
...
}
-

It seems that the first 2 lines are 'forward declarations', before the
variable definitions.
My compiler (CodeWarrior) says "illegal redefinition", which is the normal
behavior for me.

How can this code compile with gcc ?
Is it allowed by the standard ?





Screen Capture Bug

2000-05-17 Thread Carey Bunks


This is a bug I originally reported last fall.  It's still alive in
version 1.1.22.  The bug manifests when trying to perform a screenshot
(Toolbox/File/Acquire/Screen Shot).  Usually the first screenshot
works with no problem.  However, if I try several screenshots one after
another (around 5-6 of 'em) I get the following message:

  ~/gimp/lib/gimp/1.1/plug-ins/screenshot: fatal error: Segmentation fault
  ~/gimp/lib/gimp/1.1/plug-ins/screenshot (pid:29260): [E]xit, [H]alt, show [S]tack 
trace or [P]roceed: 

and the GIMP stops responding.  Typing "p" and some combination of
CRLF and "p" again at this message usually returns control to the
GIMP.

Carey Bunks


Dr. Carey Bunks 
Senior Scientist
BBN Technologies
70 Fawcett St, 15/2A
Cambridge,  MA 02138
tel: 617-873-3028  fax: 617-873-2918
email:  [EMAIL PROTECTED]  




Re: static and forward declaration

2000-05-17 Thread Kevin Cozens

CodeWarrior is correct in its message. The variables are being defined the
first time for use in the procedural_db_register() calls and then later
they are defined again but this time with initial values. Does CodeWarrior
issue the redefinition message as a warning or as an error?

The output from 'gcc -v' on my machine is:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

Even though -Wall is specified, gcc accepts it without even a warning. I
don't know offhand if this behaviour is allowed by the standard. My
personal coding style would put the declaration with initial values before
the first use which would eliminate the two lines at the top of the file.



Re: static and forward declaration

2000-05-17 Thread Sven Neumann

Hi,

 Even though -Wall is specified, gcc accepts it without even a warning. I
 don't know offhand if this behaviour is allowed by the standard. My
 personal coding style would put the declaration with initial values before
 the first use which would eliminate the two lines at the top of the file.
 
 I agree. But I will have to do this myself in all the *_cmds.c files. :-(

Since all the *_cmds.c files are autogenerated I suspect a very small 
change to the code-generator would be sufficient. Yosh?


Salut, Sven





GTK+ 1.2.7

2000-05-17 Thread Pierre Rochefort

Hello all,

Does anyone know where I can find prebuilt packages of GTK+1.2.7 and GLib-1.2.7 for 
Redhat 6.2?

Thanks.
Pierre



Status of help system?

2000-05-17 Thread Kevin Turner

What is the status of the help system these days?

Is there a help browser procedure which calls on extension_web_browser
if the gtkxhtml browser is not available?

How does the help system work for 3rd party plug-ins and scripts?

Do we need a grassroots effort to fill in the help files, or do Karin 
Olof have this one covered?

Can images be included in the help?  If so, what are the naming
conventions?

Just another one of those things to do before 1.2 final...

-- 
Kevin Turner [EMAIL PROTECTED] | OpenPGP encryption welcome here
Plug-ins: They make GIMP do stuff.  http://gimp-plug-ins.sourceforge.net/
This list is archived at http://marc.theaimsgroup.com/?l=gimp-developer
To unsubscribe, mail [EMAIL PROTECTED]