add part of code from xfpanel-plugin