[devhelp/wip/swilmet/misc-improvements] book-manager: include only glib-object.h in the header
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/wip/swilmet/misc-improvements] book-manager: include only glib-object.h in the header
- Date: Sun, 24 May 2015 10:16:10 +0000 (UTC)
commit c419ecf74681faa49d7004fba9360e4aa7a02d53
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun May 24 12:13:29 2015 +0200
book-manager: include only glib-object.h in the header
DhBookManager doesn't depend on GTK+. And the header doesn't need
dh-book.h.
With that change, fix compilation error in dh-preferences.c.
src/dh-book-manager.h | 4 +---
src/dh-preferences.c | 4 +++-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/dh-book-manager.h b/src/dh-book-manager.h
index 148aded..453d7ad 100644
--- a/src/dh-book-manager.h
+++ b/src/dh-book-manager.h
@@ -19,9 +19,7 @@
#ifndef __DH_BOOK_MANAGER_H__
#define __DH_BOOK_MANAGER_H__
-#include <gtk/gtk.h>
-
-#include "dh-book.h"
+#include <glib-object.h>
G_BEGIN_DECLS
diff --git a/src/dh-preferences.c b/src/dh-preferences.c
index 4e75655..dbac0cb 100644
--- a/src/dh-preferences.c
+++ b/src/dh-preferences.c
@@ -20,8 +20,10 @@
#include "config.h"
#include "dh-preferences.h"
-#include <gtk/gtk.h>
+
#include <string.h>
+
+#include "dh-book.h"
#include "dh-util.h"
#include "dh-app.h"
#include "dh-settings.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]