summaryrefslogtreecommitdiff
path: root/libmate-panel-applet
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-03-22 20:15:12 +0100
committerraveit65 <[email protected]>2016-03-22 20:15:12 +0100
commitf9221b85ca81f34dc6eb258c6b160bf88ef0d7ea (patch)
tree70902289fea7c868d969fadf60a19f19050ab2b0 /libmate-panel-applet
parentb6684bd302bd6794771eb2569b2b7b1539f8be09 (diff)
downloadmate-panel-f9221b85ca81f34dc6eb258c6b160bf88ef0d7ea.tar.bz2
mate-panel-f9221b85ca81f34dc6eb258c6b160bf88ef0d7ea.tar.xz
use gtk+-3.20 custom bg fixixes only for > gtk+-3.18 and > glib-2.42
This fixes also distcheck
Diffstat (limited to 'libmate-panel-applet')
-rw-r--r--libmate-panel-applet/Makefile.am12
-rw-r--r--libmate-panel-applet/panel-plug-private.h4
-rw-r--r--libmate-panel-applet/panel-plug.c3
3 files changed, 8 insertions, 11 deletions
diff --git a/libmate-panel-applet/Makefile.am b/libmate-panel-applet/Makefile.am
index cb83268c..2d181c97 100644
--- a/libmate-panel-applet/Makefile.am
+++ b/libmate-panel-applet/Makefile.am
@@ -14,7 +14,7 @@ libmate_panel_appletinclude_HEADERS = \
mate-panel-applet.h \
mate-panel-applet-gsettings.h \
mate-panel-applet-enums.h
-if HAVE_GTK3
+
libmate_panel_applet_4_la_SOURCES = \
$(BUILT_SOURCES) \
mate-panel-applet.h \
@@ -25,16 +25,6 @@ libmate_panel_applet_4_la_SOURCES = \
mate-panel-applet-gsettings.h \
panel-plug.c \
panel-plug-private.h
-else
-libmate_panel_applet_4_la_SOURCES = \
- $(BUILT_SOURCES) \
- mate-panel-applet.h \
- mate-panel-applet.c \
- mate-panel-applet-factory.h \
- mate-panel-applet-factory.c \
- mate-panel-applet-gsettings.c \
- mate-panel-applet-gsettings.h
-endif
libmate_panel_applet_4_la_LIBADD = \
$(LIBMATE_PANEL_APPLET_LIBS) \
diff --git a/libmate-panel-applet/panel-plug-private.h b/libmate-panel-applet/panel-plug-private.h
index 5c7f12ad..0aa64717 100644
--- a/libmate-panel-applet/panel-plug-private.h
+++ b/libmate-panel-applet/panel-plug-private.h
@@ -18,6 +18,9 @@
#ifndef PANEL_PLUG_PRIVATE_H
#define PANEL_PLUG_PRIVATE_H
+#include <gtk/gtk.h>
+#if GTK_CHECK_VERSION (3, 19, 0) && GLIB_CHECK_VERSION (2, 44, 0)
+
#include <gtk/gtkx.h>
G_BEGIN_DECLS
@@ -30,3 +33,4 @@ GtkWidget *panel_plug_new (void);
G_END_DECLS
#endif
+#endif
diff --git a/libmate-panel-applet/panel-plug.c b/libmate-panel-applet/panel-plug.c
index 549e98f9..5b0e366c 100644
--- a/libmate-panel-applet/panel-plug.c
+++ b/libmate-panel-applet/panel-plug.c
@@ -15,6 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <gtk/gtk.h>
+#if GTK_CHECK_VERSION (3, 19, 0) && GLIB_CHECK_VERSION (2, 44, 0)
#include "config.h"
#include "panel-plug-private.h"
@@ -98,3 +100,4 @@ panel_plug_new (void)
{
return g_object_new (PANEL_TYPE_PLUG, NULL);
}
+#endif