Re: Gedit not compiling





John Huttley wrote:
> 
> Whoa!  gcc fails with
> gtk_editable_cut_clipboard    too many arguments.
> 
> This is with a completely new gnome, freshly CVS'd.

Do you compile against gtk 1.2?
If so, this comes from gedit thinking that gtk is either 1.0 or 1.1.

In the files gcc mentions, you'll find a line like (from my memory)

-------
ifdef (GTK_MAJOR_NUMBER == 1 && GTK_MINOR_NUMBER == 1)

// Function calls with 1 argument

else

// call with two arguments
-------

Ich simply changed to
ifdef (GTK_MAJOR_NUMBER == 1 && ( (GTK_MINOR_NUMBER == 1) ||
(GTK_MINOR_NUMBER == 2 ))

This did the trick. Same with gnome-objc, BTW

Greetings



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]