Created attachment 3931 0001-Port-from-libxfcegui4-to-libxfce4ui.patch See attached patch.
Applied in http://git.xfce.org/panel-plugins/xfce4-battery-plugin/commit/?id=a24e726bcc0133a6a8a54db4bcfc74b99258d9a9