projecthamster / xfce4-hamster-plugin

A recreation of the gnome-shell 'hamster project extension' for the xfce4 panel.
http://projecthamster.org
GNU General Public License v2.0
27 stars 8 forks source link

libxfcegui4 is deprecated in favour of libxfce4ui #21

Closed rapgro closed 9 years ago

rapgro commented 9 years ago

Without the following patch, your plugin won't work with Xfce 4.11+. libxfcegui4 is marked as deprecated since Xfce 4.8.

diff --git a/configure.ac b/configure.ac
index d34c5ec..20f167c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,7 +72,6 @@ PKG_CHECK_MODULES([GTHREAD], [gthread-2.0 >= 2.22.0])
 PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.14.0])
 PKG_CHECK_MODULES([LIBXFCE4UTIL], [libxfce4util-1.0 >= 4.8.0])
 PKG_CHECK_MODULES([LIBXFCE4UI], [libxfce4ui-1 >= 4.8.0])
-PKG_CHECK_MODULES([LIBXFCE4GUI], [libxfcegui4-1.0 >= 4.8.0])
 PKG_CHECK_MODULES([LIBXFCE4PANEL], [libxfce4panel-1.0 >= 4.8.0])
 PKG_CHECK_MODULES([LIBXFCONF], [libxfconf-0 >= 4.8.0])

diff --git a/panel-plugin/settings.c b/panel-plugin/settings.c
index 877bf34..2b36001 100644
--- a/panel-plugin/settings.c
+++ b/panel-plugin/settings.c
@@ -19,7 +19,7 @@
 #ifdef HAVE_CONFIG_H
 #  include <config.h>
 #endif
-#include <libxfcegui4/libxfcegui4.h>
+#include <libxfce4ui/libxfce4ui.h>
 #include <libxfce4panel/libxfce4panel.h>
 #include <xfconf/xfconf.h>
 #include "settings.h"
aquaherd commented 9 years ago

Thanks.