[solang] Reduced the number of headers included in src/common/types.h
- From: Debarshi Ray <debarshir src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [solang] Reduced the number of headers included in src/common/types.h
- Date: Fri, 22 Jan 2010 21:12:54 +0000 (UTC)
commit 0dd8fcc75a8e7042e0705b1695f5544898284217
Author: Debarshi Ray <rishi gnu org>
Date: Thu Jan 21 02:24:06 2010 +0200
Reduced the number of headers included in src/common/types.h
src/common/content-type-repo.h | 3 ++
src/common/types.h | 44 +++++++++++++++++++++++++++++---
src/editor/buffer-pixbuf-converter.cpp | 1 +
3 files changed, 44 insertions(+), 4 deletions(-)
---
diff --git a/src/common/content-type-repo.h b/src/common/content-type-repo.h
index ba26759..ed58d5e 100644
--- a/src/common/content-type-repo.h
+++ b/src/common/content-type-repo.h
@@ -1,5 +1,6 @@
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
+ * Copyright (C) 2010 Debarshi Ray <rishi gnu org>
* Copyright (C) 2009 Santanu Sinha <santanu sinha gmail com>
*
* Solang is free software: you can redistribute it and/or modify it
@@ -21,6 +22,8 @@
#include <vector>
+#include <gdkmm.h>
+
#include "non-copyable.h"
#include "types.h"
diff --git a/src/common/types.h b/src/common/types.h
index 08b8872..db09c33 100644
--- a/src/common/types.h
+++ b/src/common/types.h
@@ -24,11 +24,20 @@
#include <vector>
#include <tr1/memory>
-#include <gdkmm.h>
#include <gdl/gdl.h>
-#include <giomm.h>
#include <glibmm.h>
-#include <gtkmm.h>
+
+namespace Gdk
+{
+
+class DragContext;
+class GC;
+class Pixbuf;
+class PixbufLoader;
+class Screen;
+class Window;
+
+} // namespace Gdk
namespace Gegl
{
@@ -39,6 +48,33 @@ class Processor;
} // namespace Gegl
+namespace Gio
+{
+
+class DataInputStream;
+class File;
+
+} // namespace Gio
+
+namespace Gtk
+{
+
+class Action;
+class ActionGroup;
+class IconFactory;
+class IconTheme;
+class ListStore;
+class Menu;
+class Settings;
+class ToggleAction;
+class TreeModel;
+class TreeModelFilter;
+class TreePath;
+class TreeStore;
+class UIManager;
+
+} // namespace Gtk
+
namespace Solang
{
@@ -288,7 +324,7 @@ typedef Glib::RefPtr<const Gtk::TreeModelFilter>
ConstTreeModelFilterPtr;
typedef Glib::RefPtr<Gtk::TreeModelFilter> TreeModelFilterPtr;
-typedef std::vector<Gtk::TreeModel::Path> TreePathList;
+typedef std::vector<Gtk::TreePath> TreePathList;
typedef Glib::RefPtr<const Gtk::UIManager> ConstUIManagerPtr;
typedef Glib::RefPtr<Gtk::UIManager> UIManagerPtr;
diff --git a/src/editor/buffer-pixbuf-converter.cpp b/src/editor/buffer-pixbuf-converter.cpp
index 306a8b9..63c371b 100644
--- a/src/editor/buffer-pixbuf-converter.cpp
+++ b/src/editor/buffer-pixbuf-converter.cpp
@@ -20,6 +20,7 @@
#include "config.h"
#endif // HAVE_CONFIG_H
+#include <gdkmm.h>
#include <geglmm.h>
#include <geglmm/buffer.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]