Re: Parse error as GtkOldEditable is deprecated
- From: Deepa <deepa chacko wipro com>
- To: Owen Taylor <otaylor redhat com>
- Cc: desktop-devel-list <desktop-devel-list gnome org>
- Subject: Re: Parse error as GtkOldEditable is deprecated
- Date: Fri, 01 Feb 2002 20:10:46 +0530
I used these flags for compilation:
-DGTK_ENABLE_BROKEN=0 -DGTK_DISABLE_DEPRECATED
Now, I find that even if you define it to 0, ifdef will take it to be
defined. One has to use the -U flag to undefine a macro.
Shouldn't it be
#if GTK_DISABLE_DEPRECATED
#endif
instead of
#ifdef GTK_DISABLE_DEPRECATED
#endif
If it is the first way then one can unset it by -DGTK_ENABLE_BROKEN=0?
Thanks
Deepa
Owen Taylor wrote:
> Deepa <deepa chacko wipro com> writes:
>
> > Hi
> >
> > I am trying to build libraries (libgnome-desktop, libpanel-applet) with
> > GTK_DISABLE_DEPRECATED
> > set to true. Facing parse errors in gtktext.h.
> >
> > gtktext.h is using a deprecated structure GtkOldEditable, which is
> > defined in gtkoldeditable.h. Everything in gtkoldeditable.h is defined
> > within #ifndef GTK_DISABLE_DEPRECATED. gtk.h is including gtktext.h.
> > When I compile libpanel-applet with GTK_DISABLE_DEPRECATED set to TRUE,
> > it gives the following error:
>
> There are two levels of deprecation in GTK+:
>
> #ifndef GTK_DISABLE_DEPRECATED
> #endif
>
> And:
>
> #ifdef GTK_ENABLE_BROKEN
> #endif
>
> The second level is a much stronger level than the first level;
> it means that the feature is known not to work properly and has
> only been left for temporary porting purposes.
>
> GtkText is protected by GTK_ENABLE_BROKEN.
>
> It looks like to get the above errors you are compiling with:
>
> -DGTK_ENABLE_BROKEN -DGTK_DISABLE_DEPRECATED
> Which is nonsensical. ("I want the really broken stuff, but not
> the stuff thta is just going to go away in a few years...")
>
> Regards,
> Owen
> _______________________________________________
> desktop-devel-list mailing list
> desktop-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/desktop-devel-list
**************************Disclaimer************************************
Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.
********************************************************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]