Re: Get rid of deprecated widgets



Hi,
Xavier Bestel schrieb:
> On mer, 2007-12-05 at 14:09 +0100, Alexander Larsson wrote:
>> The only way to make this backwards compatible is to make
>> libgtk-2.0.so.0 have the deprecated symbols and link to
>> libgtk-no-compat-2.0.so.0 which doesn't. Then normal apps will keep
>> working, and apps that don't need compat widgets will need to link with
>> -lgtk-no-compat-2.0.
> 
> Each new releases may deprecate some symbols. So what's needed is a
> symbolic library name per release, and say when you release gtk+2.14,
> make libgtk-2.0.so ... libgtk-2.12.so all point to the same thing (with
> all deprecated symbols) which then links to libgtk-2.14.so with only
> supported symbols.

Removing the deprecated stuff is in most cases not an option. But lowering the
impact is. WHat kind of impact have they?

1) longer symbol resolving on startup
2) memory usage
3) locatisation
4) ???

2) can be addressed like i described in
http://bugzilla.gnome.org/show_bug.cgi?id=471123

Now it would be great if we could also tell the linker to resolve deprecated
entries lazily. That would help with 1).

For 3) one could maybe redef _(). Needs to be tried.

Stefan


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