Re: Disable deprecated api?



On Sun, 2010-02-07 at 14:19 +0200, sledge hammer wrote:
> Is there any way to disable the use of deprecated gtkmm api by my
> program? Or at least get a warning? (while compiling my source)

Build with thse defined:
GLIBMM_DISABLE_DEPRECATED
GTKMM_DISABLE_DEPRECATED
PANGOMM_DISABLE_DEPRECATED
and maybe others

For instance, you can pass -DGTKMM_DISABLE_DEPRECATED to gcc.

Glom uses a macro to make this a configure option in configure.ac:
http://git.gnome.org/browse/glom/tree/configure.ac?h=glom-1-12#n189


-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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