[Gimp-developer] configure error in cvs

2001-09-13 Thread safemode

I'm not on the list so if you know what's wrong here dont forget to cc me.  
I'm using debian unstable and have compiled gimp many times before.  For the 
past few weeks, however, i've been getting this error.  pkg-config is found 
so it seems like there is a problem with automake.   i've rerun autogen.sh 
and i dont get any unusual errors.  I'll add that to the bottom of the mail.  
I'm using automake (GNU automake) 1.4-p4 and Autoconf version 2.13 .  Any 
other info needed?  

-- Errors from running configure
configure.in:46: AC_PROG_CPP was called before AC_PROG_CC
checking for pkg-config... /usr/bin/pkg-config
./configure: line 8536: syntax error near unexpected token 
`AM_PATH_GTK_2_0(1.3.7,,'
./configure: line 8536: `AM_PATH_GTK_2_0(1.3.7,,'

Now type 'make' to compile GIMP.

-- autogen.sh output warnings. 

Adding an entry to po/ChangeLog (backup is in po/ChangeLog~)

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

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



Re: [Gimp-developer] configure error in cvs

2001-09-13 Thread safemode

Ok, compiling gtk+ from the cvs and i'm getting this error. 
gdk-pixbuf.c:395: parse error before ')' token
gdk-pixbuf.c:396: parse error before ')' token
gdk-pixbuf.c:397: parse error before ')' token
make[3]: *** [gdk-pixbuf.lo] Error 1

it seems to be because the version variables aren't declared anywhere or set 
correctly.  Manually assigning the numbers 1 3 and 7 to them allowed the file 
to be compiled but because the version information isn't being set right, 
linking eventually failed with this

libtool: link: CURRENT `-' is not a nonnegative integer
libtool: link: `-::-' is not valid version information
make[3]: *** [libgdk_pixbuf-1.3.la] Error 1

this is the latest cvs.  is there a release of 2.0 i should be grabbing from 
the cvs instead of the very latest testing?  



On Thursday 13 September 2001 07:12, Sven Neumann wrote:
 Hi,

 safemode [EMAIL PROTECTED] writes:
  I'm not on the list so if you know what's wrong here dont forget to cc
  me. I'm using debian unstable and have compiled gimp many times before. 
  For the past few weeks, however, i've been getting this error. 
  pkg-config is found so it seems like there is a problem with automake.
  -- Errors from running configure
  configure.in:46: AC_PROG_CPP was called before AC_PROG_CC
  checking for pkg-config... /usr/bin/pkg-config
  ./configure: line 8536: syntax error near unexpected token
  `AM_PATH_GTK_2_0(1.3.7,,'
  ./configure: line 8536: `AM_PATH_GTK_2_0(1.3.7,,'

 you don't have the required version of GTK+ installed or if it is
 installed, aclocal is unable to find the gtk-2.0.m4 script. Make sure you
 have everything installed as described in INSTALL and set your
 ACLOCAL_FLAGS to -I $prefix_where_gtk2_is_installed/share/aclocal and
 rerun autogen.sh.


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



Re: [Gimp-developer] configure error in cvs

2001-09-13 Thread safemode

On Thursday 13 September 2001 11:22, Sven Neumann wrote:
 Hi,

 safemode [EMAIL PROTECTED] writes:
  Ok, compiling gtk+ from the cvs and i'm getting this error.
  gdk-pixbuf.c:395: parse error before ')' token
  gdk-pixbuf.c:396: parse error before ')' token
  gdk-pixbuf.c:397: parse error before ')' token
  make[3]: *** [gdk-pixbuf.lo] Error 1
 
  it seems to be because the version variables aren't declared anywhere or
  set correctly.  Manually assigning the numbers 1 3 and 7 to them allowed
  the file to be compiled but because the version information isn't being
  set right, linking eventually failed with this
 
  libtool: link: CURRENT `-' is not a nonnegative integer
  libtool: link: `-::-' is not valid version information
  make[3]: *** [libgdk_pixbuf-1.3.la] Error 1

 are you sure you've successfully run autogen.sh? This looks as if something
 went wrong earlier.

There is absolutely no warnings in autogen.sh   There is a warning in 
configure script   1st thing it outputs.   This is what it says. 

configure.in:165: AC_PROG_CPP was called before AC_PROG_CC




  this is the latest cvs.  is there a release of 2.0 i should be grabbing
  from the cvs instead of the very latest testing?

 GTK+ version 1.3.7 has been released a few days ago (acompaigned with glib,
 atk and pango releases). GIMP in CVS is supposed to compile against these
 versions.


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



Re: [Gimp-developer] configure error in cvs

2001-09-13 Thread Sven Neumann

Hi,

safemode [EMAIL PROTECTED] writes:

   Ok, compiling gtk+ from the cvs and i'm getting this error.
   gdk-pixbuf.c:395: parse error before ')' token
   gdk-pixbuf.c:396: parse error before ')' token
   gdk-pixbuf.c:397: parse error before ')' token
   make[3]: *** [gdk-pixbuf.lo] Error 1
  
   it seems to be because the version variables aren't declared anywhere or
   set correctly.  Manually assigning the numbers 1 3 and 7 to them allowed
   the file to be compiled but because the version information isn't being
   set right, linking eventually failed with this
  
   libtool: link: CURRENT `-' is not a nonnegative integer
   libtool: link: `-::-' is not valid version information
   make[3]: *** [libgdk_pixbuf-1.3.la] Error 1
 
  are you sure you've successfully run autogen.sh? This looks as if something
  went wrong earlier.
 
 There is absolutely no warnings in autogen.sh   There is a warning in 
 configure script   1st thing it outputs.   This is what it says. 
 
 configure.in:165: AC_PROG_CPP was called before AC_PROG_CC

this one is harmless.

I've just updated my CVS trees and everything compiles just fine. 
The gdk-pixbuf version numbers are defined in gdk-pixbuf-features.h
which should be created from gdk-pixbuf-features.h.in when configure
is run (or config.status more precisely). Try 'make clean -k' and
rerun autogen.sh.


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



[Gimp-developer] Fix for the mail plugin [was Re: Fix for the gif plugin.]

2001-09-13 Thread David Odin

On Sun, Sep 09, 2001 at 08:09:19PM +0200, Sven Neumann wrote:
 Hi,
 
 David Odin [EMAIL PROTECTED] writes:
 
OK. I've attached a similar patch for the gif plugin. It does
  basically the same thing as my patch for the jpeg plugin (replacing a
  GtkText by a GtkTextView/GtkTextBuffer couple).
  
I've two question about this plugin:
 - why gifload and gif are kept separated, when, for most image
   formats, the loader and the saver is in the same plugin?
 - the code of gif.c looks unmaintained, and rather dirty (lots of
   code commented out, define for FACEHUGGERS, no real copyright
   notice, etc.) Who is the current maintainer?
 
 as stated in PLUGIN_MAINTAINERS Adam D. Moss [EMAIL PROTECTED] maintains
 the gif plug-ins. He should be able to tell you why he chose two 
 separate plug-ins (licensing?!). Oh, and yes, Adam has this very special 
 british humour that makes his code fun to read...
 
  Yes, Adam's code is fun to read. I particulary appreciated the joke
about the Facehuggers, since I'm a big fan of the Alien tetralogy. But
what about the commented out code? I really think the gif.c file need a
little clean up. What to you think, Adam?

  Anyway, you'll find a fix for the mail-plugin attached to this mail.
This fix restore the mail plugin to the state it was in the 1.2 release.
Nevertheless, I think it could be improved in some ways. For instance,
the mime type is deduced from the filename the user has to write. May be
we should provide a list of supported format in an optionmenu. I'll see
how this could be implemented.

  A part from this, I've noticed that the plugindetail and nlfilt are
still commented out in plugin-defs.pl.
  I don't know what nlfilt is supposed to do, but the UI seems to work
ok, and plugindetail works as it is supposed to work.
  Why are these two plugin disabled?

  Regards,

 DindinX

-- 
[EMAIL PROTECTED]
Today is the tomorrow you worried about yesterday.


--- gimp/plug-ins/common/mail.c.origTue Sep 11 22:48:03 2001
+++ gimp/plug-ins/common/mail.c Tue Sep 11 23:14:51 2001
@@ -140,12 +140,12 @@
 gint32  run_mode);
 
 static gint   save_dialog  (void);
-static void   ok_callback  (GtkWidget *widget,
-   gpointer   data);
-static void   mail_entry_callback  (GtkWidget *widget,
-   gpointer   data);
-static void   mesg_body_callback   (GtkWidget *widget,
-   gpointer   data);
+static void   ok_callback  (GtkWidget *widget,
+   gpointer   data);
+static void   mail_entry_callback  (GtkWidget *widget,
+   gpointer   data);
+static void   mesg_body_callback   (GtkTextBuffer *buffer,
+   gpointer   data);
 
 static gint   valid_file (gchar *filename);
 static void   create_headers (FILE  *mailpipe);
@@ -189,7 +189,7 @@
  if you prefer that as the default */
 };
 
-static gchar * mesg_body = \0;
+static gchar * mesg_body = NULL;
 static gintrun_flag  = 0;
 
 MAIN ()
@@ -436,14 +436,14 @@
 static gint
 save_dialog (void)
 {
-  GtkWidget *dlg;
-  GtkWidget *entry;
-  GtkWidget *table;
-  GtkWidget *table2;
-  GtkWidget *label;
-  GtkWidget *vbox;
-  GtkWidget *text;
-  GtkWidget *vscrollbar;
+  GtkWidget *dlg;
+  GtkWidget *entry;
+  GtkWidget *table;
+  GtkWidget *label;
+  GtkWidget *vbox;
+  GtkWidget *scrolled_window;
+  GtkWidget *text_view;
+  GtkTextBuffer *text_buffer;
 
   gchar  buffer[BUFFER_SIZE];
   gchar *gump_from;
@@ -545,34 +545,30 @@
  mail_info.filename);
 
   /* comment  */
-  table2 = gtk_table_new (2, 2, FALSE);
-  gtk_table_set_row_spacing (GTK_TABLE (table2), 0, 2);
-  gtk_table_set_col_spacing (GTK_TABLE (table2), 0, 2);
-
-  gtk_table_attach (GTK_TABLE (table), table2, 
-   0, 2, 5, 6,
-   GTK_EXPAND | GTK_FILL,
-   GTK_EXPAND | GTK_FILL,
-   0, 0);
-
-  text = gtk_text_new (NULL, NULL);
-  gtk_text_set_editable (GTK_TEXT (text), TRUE);
-  gtk_table_attach (GTK_TABLE (table2), text, 
-   0, 1, 0, 1,
-   GTK_EXPAND | GTK_FILL,
-   GTK_EXPAND | GTK_FILL,
-   0, 0);
-  gtk_widget_set_usize (text, 200, 100);
-  gtk_widget_show (text);
-  gtk_signal_connect (GTK_OBJECT (text), changed,
- GTK_SIGNAL_FUNC (mesg_body_callback),
- mesg_body);
-  gtk_widget_show (table2);
-
-  vscrollbar = gtk_vscrollbar_new (GTK_TEXT (text)-vadj);
-  gtk_table_attach (GTK_TABLE (table2), vscrollbar, 1, 2, 0, 1,
-   GTK_FILL, GTK_EXPAND | GTK_SHRINK | GTK_FILL, 0, 0);
-  gtk_widget_show (vscrollbar);
+  scrolled_window = gtk_scrolled_window_new (NULL, NULL);
+