summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-30 09:07:48 -0700
committerStefano Karapetsas <[email protected]>2013-10-30 09:07:48 -0700
commit1418f8639d7bc4ddd9218a89fe340fbffea8677a (patch)
treecd26d9b8817825b8a8c684fba47070fa7b0070d3
parente79794e482337c26cdeb3daff28c12ea8fb2f5d8 (diff)
parent0d2f43acef5c3d9b6b19c39ef7662b00fbc71763 (diff)
downloadpluma-1418f8639d7bc4ddd9218a89fe340fbffea8677a.tar.bz2
pluma-1418f8639d7bc4ddd9218a89fe340fbffea8677a.tar.xz
Merge pull request #39 from infirit/master
gtk3 check gtksourceview include
-rw-r--r--pluma/pluma-file-chooser-dialog.c2
-rw-r--r--pluma/pluma-language-manager.c3
-rw-r--r--pluma/pluma-window.c3
3 files changed, 7 insertions, 1 deletions
diff --git a/pluma/pluma-file-chooser-dialog.c b/pluma/pluma-file-chooser-dialog.c
index 389ba85a..819d2a3b 100644
--- a/pluma/pluma-file-chooser-dialog.c
+++ b/pluma/pluma-file-chooser-dialog.c
@@ -39,7 +39,9 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
#include <gtksourceview/gtksource.h>
+#endif
#include "pluma-file-chooser-dialog.h"
#include "pluma-encodings-combo-box.h"
diff --git a/pluma/pluma-language-manager.c b/pluma/pluma-language-manager.c
index 903e8275..85c954b7 100644
--- a/pluma/pluma-language-manager.c
+++ b/pluma/pluma-language-manager.c
@@ -31,8 +31,9 @@
#include <string.h>
#include <gtk/gtk.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
#include <gtksourceview/gtksource.h>
-
+#endif
#include "pluma-language-manager.h"
#include "pluma-prefs-manager.h"
#include "pluma-utils.h"
diff --git a/pluma/pluma-window.c b/pluma/pluma-window.c
index b783d62c..e2041bbf 100644
--- a/pluma/pluma-window.c
+++ b/pluma/pluma-window.c
@@ -38,7 +38,10 @@
#include <glib/gi18n.h>
#include <gio/gio.h>
+#include <gtk/gtk.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
#include <gtksourceview/gtksource.h>
+#endif
#include "pluma-ui.h"
#include "pluma-window.h"