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-21 12:26:11 (GMT)
commit9f91f5892703f277bcb880aabbfff05c8cc77b62 (patch)
tree8ff375d051b160f23aa6682f09f77b9d89a2f20e
parent4e0e3fc24f7884599c19b0672efb0f02e20cd25e (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 on 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