Re: gnome-objc 0.99.8 and GTK 1.2.0 (fwd)



Actually a better test would be this:
  (GTK_MAJOR_NUMBER>=2) || ((GTK_MAJOR_NUMBER==1) && (GTK_MINOR_NUMBER>=2))

As this would workfor gtk+ 1.3 as well.

James Henstridge.

--
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/


On Mon, 1 Mar 1999, Mario Vukelic wrote:

> 
> 
> James Charles Lewis wrote:
> > 
> > Do gnome-objc 0.99.8 and GTK 1.2.0 work together?
> > 
> > When trying to complie gnome-objc, it quits with the following error:
> > 
> > obgtkEditable.m: In function `_i_Gtk_Editable__cut_clipboard_':
> > obgtkEditable.m:58: too many arguments to function `gtk_editable_cut_clipboard'
> > obgtkEditable.m: In function `_i_Gtk_Editable__copy_clipboard_':
> > obgtkEditable.m:64: too many arguments to function `gtk_editable_copy_clipboard'
> > obgtkEditable.m: In function `_i_Gtk_Editable__paste_clipboard_':
> > obgtkEditable.m:70: too many arguments to function `gtk_editable_paste_clipboard'
> > 
> > So far I have ORBit 0.4.0, GTK/GLIB 1.2.0, automake 1.4, autoconf 2.13,
> > and libtool 1.2d installed.
> 
> This comes from gnome-objc not knowing about gtk-1.2: it calls the
> functions with one argument only when (GTK_MAJOR_NUMBER == 1 &&
> GTK_MINOR_NUMBER == 1). This is in some ifdef, IIRC.
> I changed it to (GTK_MAJOR_NUMBER == 1 && ((GTK_MINOR_NUMBER == 1) ||
> (GTK_MINOR_NUMBER == 2)).
> Then it was ok
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



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