[Xfce4-commits] r26470 - in libxfcegui4/trunk: . libxfcegui4
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Thu Dec 13 14:06:21 CET 2007
Brian J. Tarricone wrote:
>>>> When you deprecate stuff, please don't #ifndef out the gobject cast
>>>> #defines or the struct typedefs. This will make code using those
>>>> classes fail to compile. The idea of doing the #ifndef is to
>>>> cause the compiler to throw warnings, not error out. To catch
>>>> these as a 'hard fail', you'd use the gcc -Werror flag.
>>> Well I looked in Gtk, there they put the GTK_DISABLE_DEPRECATED
>>> #ifndef and #endif at the start and end of the entire header file,
>>> when the whole object is deprecated.
>>>
>>> http://svn.gnome.org/viewvc/gtk%2B/trunk/gtk/gtklist.h?revision=12634&view=markup
>>>
>>> The when the user defined XFCE_DISABLE_DEPRECATED the compilation
>>> should fail because the functions/structure etc are not there
>>> anymore.
>> It's done correctly, indeed.
>
> That's not how we (I?) have deprecated other modules. But I guess I
> don't particularly care all that much either way, so whatever.
Then you didn't deprecate properly. ;-)
I.e. look at dialog.h or xfce_clock.h for examples of how we did this in
the past.
> -b
Benedikt
More information about the Xfce4-dev
mailing list