aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-20 02:31:52 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-28 11:15:24 (GMT)
commit623b076e8be64275c2329f5768bf1633e076cb4f (patch)
treeffd4fb78c9fdae0ee684e6e99f3b2eed0ec72ec4
parent47b3551bfefc10741aa555618f0b516585e93477 (diff)
Include only gtk.h header
Instead of including header files just for a few widgets used, include the main one. That's a rule with Gtk 3. That also allows building it with: make CFLAGS+="-DGTK_DISABLE_SINGLE_INCLUDES" Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--src/camorama-display.h2
-rw-r--r--src/camorama-filter-chain.h2
-rw-r--r--src/camorama-globals.h2
-rw-r--r--src/camorama-stock-items.c3
4 files changed, 4 insertions, 5 deletions
diff --git a/src/camorama-display.h b/src/camorama-display.h
index 528e593..14027e4 100644
--- a/src/camorama-display.h
+++ b/src/camorama-display.h
@@ -24,7 +24,7 @@
#ifndef CAMORAMA_DISPLAY_H
#define CAMORAMA_DISPLAY_H
-#include <gtk/gtkdrawingarea.h>
+#include <gtk/gtk.h>
#include "v4l.h"
diff --git a/src/camorama-filter-chain.h b/src/camorama-filter-chain.h
index 1ccd0e2..c8d04a1 100644
--- a/src/camorama-filter-chain.h
+++ b/src/camorama-filter-chain.h
@@ -24,7 +24,7 @@
#ifndef CAMORAMA_FILTER_CHAIN_H
#define CAMORAMA_FILTER_CHAIN_H
-#include <gtk/gtkliststore.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
diff --git a/src/camorama-globals.h b/src/camorama-globals.h
index d956905..3fa35bc 100644
--- a/src/camorama-globals.h
+++ b/src/camorama-globals.h
@@ -25,7 +25,7 @@
#ifndef CAMORAMA_GLOBALS_H
#define CAMORAMA_GLOBALS_H
-#include <gtk/gtkwidget.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
diff --git a/src/camorama-stock-items.c b/src/camorama-stock-items.c
index 01bf3a5..33f0f15 100644
--- a/src/camorama-stock-items.c
+++ b/src/camorama-stock-items.c
@@ -5,8 +5,7 @@
#endif
#include <glib/gi18n.h>
-#include <gtk/gtkiconfactory.h>
-#include <gtk/gtkstock.h>
+#include <gtk/gtk.h>
#include "camorama-stock-images.h"

Privacy Policy