Ubuntu – Create the own panel plugin – Xubuntu

gtkpluginstemperaturexfcexubuntu

I've installed Xubuntu 14.04.

In my panel I can add a lot of plugins. For example that show CPU load and RAM usage… But what about the temperature of each core?

I've found the files that contains the data about the temperature of each core: /sys/bus/platform/devices/coretemp.0/hwmon/hwmon0 and I want to create my own plugin.

Googling it I've found a tutorial about GTK+: it seems too difficult so I tried to find the source code of an existing panel widget to modify it.

I searched for the System Load Monitor source code, but all I found is this, without any source code.

Where can I download the source code of an existing plugin? There is a easy way to create an Xubuntu panel plugin?

Thanks a lot.

EDIT: What is a panel plugin? These are panel plugins:

panel plugins example