[gtranslator/gtranslator-2-91] Fix gtksourceview header warning
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator/gtranslator-2-91] Fix gtksourceview header warning
- Date: Sun, 4 Dec 2016 22:17:13 +0000 (UTC)
commit 64f42311eb73c2a8a60bd60b963138a27d0d22b3
Author: Alexandre Franke <alexandre franke gmail com>
Date: Sun Dec 4 23:13:50 2016 +0100
Fix gtksourceview header warning
Only gtksource.h should be included directly.
src/gtr-preferences-dialog.c | 2 +-
src/gtr-view.c | 5 +----
src/gtr-view.h | 2 +-
3 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/gtr-preferences-dialog.c b/src/gtr-preferences-dialog.c
index 426125b..8d2d227 100644
--- a/src/gtr-preferences-dialog.c
+++ b/src/gtr-preferences-dialog.c
@@ -42,7 +42,7 @@
#include <gio/gio.h>
#include <gtk/gtk.h>
#include <string.h>
-#include <gtksourceview/gtksourcestyleschememanager.h>
+#include <gtksourceview/gtksource.h>
#include <gdl/gdl.h>
#include <libpeas-gtk/peas-gtk-plugin-manager.h>
diff --git a/src/gtr-view.c b/src/gtr-view.c
index b9c4f6a..cc6ff1c 100644
--- a/src/gtr-view.c
+++ b/src/gtr-view.c
@@ -39,10 +39,7 @@
#include <glib-object.h>
#include <gtk/gtk.h>
-#include <gtksourceview/gtksourcelanguagemanager.h>
-#include <gtksourceview/gtksourcebuffer.h>
-#include <gtksourceview/gtksourcestyleschememanager.h>
-
+#include <gtksourceview/gtksource.h>
#ifdef HAVE_GTKSPELL
#include <gtkspell/gtkspell.h>
#endif
diff --git a/src/gtr-view.h b/src/gtr-view.h
index bb068e6..ba77071 100644
--- a/src/gtr-view.h
+++ b/src/gtr-view.h
@@ -22,7 +22,7 @@
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
-#include <gtksourceview/gtksourceview.h>
+#include <gtksourceview/gtksource.h>
G_BEGIN_DECLS
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]