FYI: 4.7 panel and plugins
nickschermer at gmail.com
Tue May 26 08:42:16 CEST 2009
2009/5/26 Brian J. Tarricone <bjt23 at cornell.edu>:
> On 05/24/2009 11:36 PM, Nick Schermer wrote:
>> For those trying the xfce4-panel from the git repo, if started porting
>> the external plugins to the new panel framework. The patches are quite
>> small and only affect Makefile.am, library includes and replacing some
>> deprecated functions. For the weather plugin I had to rewrite some
>> code to work properly with rgba windows.
>> Anyway, slowly more patches with appear in the directory below, while
>> I port plugins and fix the bugs they trigger in the new panel.
> Cool, thanks! I noticed the xfdesktop patch, and your patch removes the
> g_thread_init() call on startup. That's required when built with thunar-vfs
> support -- how do I get that behavior back? Or does the module runner
> always init thread support (not really a good idea if the plugin doesn't
> need it; since some locks compile out when not linked to libgthread).
Yes the wrapper calls this already so in your case it's not needed
anymore, another reason is that the plugin has no idea whether it is
running internally or external and internally it cannot be called
If issues popup with other plugins i'll look for a work around, but at
this point i see no reason for adding a preinit call again.
FYI: g_thread_init should also be called before using GSlice, which is
used by gobject, so it cannot hurt to call it all the time.
More information about the Xfce4-dev