You are not logged in.
I'm, trying to create a panel plugin, based on Vala example in xfce4-vala package for Xfce 4.8.
The example plugin was wrote for Xfce 4.7, So I guess it's still valid for 4.8(stable=unstable+0.1).
This is the plugin desktop file(I've only changed name and comment):
[Xfce Panel]
Type=X-XFCE-PanelPlugin
Encoding=UTF-8
Name=Button
Comment=Test plugin for the Xfce 4.7 Panel
X-XFCE-Unique=true
X-XFCE-Module=button
X-XFCE-Internal=FALSE
Note that changing X-XFCE-Internal to TRUE doesn't help,
This is the GModule registration method:
[ModuleInit]
public Type xfce_panel_module_init (TypeModule module) {
return typeof (ButtonPlugin);
}
The ButtonPlugin is a class which inherit Xfce.PanelPlugin.
So I don't get what is the problem.
If you've noticed I didn't use the registration macros,
because it's doesn't have binding for Vala, and it's not needed at all(is it?) since it's a valid GModule.
So, my panel plugin can be used in the panel properly, but I wish it was an internal.
You might ask what makes me think it's an external plugin:
1. In the board configuration dialog, in items page, it shows that my plugin is external.
2. In "top", I can see the plugin process.
Is it because I didn't use the registration macros? Because it's a valid GModule, so I didn't thought it was essential.
Plus, again, I had no official binding for registration macros, so I assume I shouldn't use them.
** edit **
I've uploaded the work to SF, so if you want to check this from the real code, go to SF page
Last edited by Tal (2011-08-29 19:43:21)
Offline
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 515.75 KiB (Peak: 528.65 KiB) ]