From f9221b85ca81f34dc6eb258c6b160bf88ef0d7ea Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 22 Mar 2016 20:15:12 +0100 Subject: use gtk+-3.20 custom bg fixixes only for > gtk+-3.18 and > glib-2.42 This fixes also distcheck --- configure.ac | 1 - libmate-panel-applet/Makefile.am | 12 +----------- libmate-panel-applet/panel-plug-private.h | 4 ++++ libmate-panel-applet/panel-plug.c | 3 +++ 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index b9e2e948..970a72eb 100644 --- a/configure.ac +++ b/configure.ac @@ -103,7 +103,6 @@ case "$with_gtk" in esac AC_SUBST(GTK_API_VERSION) -AM_CONDITIONAL([HAVE_GTK3], [test "x$GTK_API_VERSION" = "x3.0"]) dnl pkg-config dependency checks PKG_CHECK_MODULES(EGG_SMCLIENT, ice sm gtk+-$GTK_API_VERSION) 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 +#if GTK_CHECK_VERSION (3, 19, 0) && GLIB_CHECK_VERSION (2, 44, 0) + #include 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 . */ +#include +#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 -- cgit v1.2.1