summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmate-panel-applet/panel-plug-private.h6
-rw-r--r--libmate-panel-applet/panel-plug.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/libmate-panel-applet/panel-plug-private.h b/libmate-panel-applet/panel-plug-private.h
index 182bf502..4a69184e 100644
--- a/libmate-panel-applet/panel-plug-private.h
+++ b/libmate-panel-applet/panel-plug-private.h
@@ -19,12 +19,16 @@
#define PANEL_PLUG_PRIVATE_H
#include <gtk/gtk.h>
-#if GTK_CHECK_VERSION (3, 18, 0) && GLIB_CHECK_VERSION (2, 44, 0)
+#if GTK_CHECK_VERSION (3, 18, 0)
#include <gtk/gtkx.h>
G_BEGIN_DECLS
+/* G_DECLARE_FINAL_TYPE is available only since GLib 2.44,
+ * but GTK+ 3.18 already requires 2.45.8, so we're safe.
+ */
+
#define PANEL_TYPE_PLUG panel_plug_get_type ()
G_DECLARE_FINAL_TYPE (PanelPlug, panel_plug, PANEL, PLUG, GtkPlug)
diff --git a/libmate-panel-applet/panel-plug.c b/libmate-panel-applet/panel-plug.c
index 7360ddac..781271aa 100644
--- a/libmate-panel-applet/panel-plug.c
+++ b/libmate-panel-applet/panel-plug.c
@@ -16,7 +16,7 @@
*/
#include <gtk/gtk.h>
-#if GTK_CHECK_VERSION (3, 18, 0) && GLIB_CHECK_VERSION (2, 44, 0)
+#if GTK_CHECK_VERSION (3, 18, 0)
#include "config.h"
#include "panel-plug-private.h"