diff --git a/src/applets/pager.c b/src/applets/pager.c index 85a0ad7..a1878ab 100644 --- a/src/applets/pager.c +++ b/src/applets/pager.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "Panel/applet.h" #define _(string) gettext(string) @@ -118,13 +119,8 @@ static Pager * _pager_init(PanelAppletHelper * helper, GtkWidget ** widget) } pager->helper = helper; orientation = panel_window_get_orientation(helper->window); -#if GTK_CHECK_VERSION(3, 0, 0) pager->box = gtk_box_new(orientation, 0); gtk_box_set_homogeneous(GTK_BOX(pager->box), TRUE); -#else - pager->box = (orientation == GTK_ORIENTATION_HORIZONTAL) - ? gtk_hbox_new(TRUE, 0) : gtk_vbox_new(TRUE, 0); -#endif pager->source = g_signal_connect(pager->box, "screen-changed", G_CALLBACK(_pager_on_screen_changed), pager); pager->widgets = NULL; diff --git a/src/applets/project.conf b/src/applets/project.conf index 40bd884..a7ccaf0 100644 --- a/src/applets/project.conf +++ b/src/applets/project.conf @@ -169,8 +169,8 @@ depends=../../include/Panel.h [pager] type=plugin sources=pager.c -cflags=`pkg-config --cflags x11` -ldflags=`pkg-config --libs x11` +cflags=`pkg-config --cflags libDesktop x11` +ldflags=`pkg-config --libs libDesktop x11` install=$(LIBDIR)/Panel/applets [pager.c]