[gtkmm] Gdk, Gtk: Add some #include directives



commit 312f0cd924bf688c8b19683619625bec0b5157ea
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Mon Jan 28 16:45:11 2019 +0100

    Gdk, Gtk: Add some #include directives
    
    Make the definition (not just the declaration) of a class type available in
    the .cc file, even if the type is only used in a property. (Don't know if
    this is strictly necessary, but it feels safer.)

 gdk/src/applaunchcontext.ccg | 1 +
 gdk/src/drag.ccg             | 1 +
 gtk/src/cellrendererspin.ccg | 1 +
 gtk/src/cellrendererspin.hg  | 2 +-
 gtk/src/entrycompletion.ccg  | 1 +
 gtk/src/entrycompletion.hg   | 5 +----
 gtk/src/treeviewcolumn.ccg   | 1 +
 gtk/src/treeviewcolumn.hg    | 1 +
 8 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gdk/src/applaunchcontext.ccg b/gdk/src/applaunchcontext.ccg
index 30225729..b9fe0466 100644
--- a/gdk/src/applaunchcontext.ccg
+++ b/gdk/src/applaunchcontext.ccg
@@ -15,6 +15,7 @@
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#include <gdkmm/display.h>
 #include <gdk/gdk.h>
 
 namespace Gdk
diff --git a/gdk/src/drag.ccg b/gdk/src/drag.ccg
index 45ff64fa..c23124e3 100644
--- a/gdk/src/drag.ccg
+++ b/gdk/src/drag.ccg
@@ -17,6 +17,7 @@
  */
 
 #include <gdkmm/contentformats.h>
+#include <gdkmm/contentprovider.h>
 #include <gdkmm/display.h>
 #include <gdkmm/device.h>
 #include <gdkmm/surface.h>
diff --git a/gtk/src/cellrendererspin.ccg b/gtk/src/cellrendererspin.ccg
index d659cf3f..9e15198c 100644
--- a/gtk/src/cellrendererspin.ccg
+++ b/gtk/src/cellrendererspin.ccg
@@ -15,6 +15,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include <gtkmm/adjustment.h>
 #include <gtk/gtk.h>
 
 namespace Gtk
diff --git a/gtk/src/cellrendererspin.hg b/gtk/src/cellrendererspin.hg
index ffa36ac3..922645d8 100644
--- a/gtk/src/cellrendererspin.hg
+++ b/gtk/src/cellrendererspin.hg
@@ -16,13 +16,13 @@
  */
 
 #include <gtkmm/cellrenderertext.h>
-//#include <gtkmm/treemodel.h>
 
 _DEFS(gtkmm,gtk)
 _PINCLUDE(gtkmm/private/cellrenderertext_p.h)
 
 namespace Gtk
 {
+class Adjustment;
 
 /**  Renders a spin button in a cell.
  *
diff --git a/gtk/src/entrycompletion.ccg b/gtk/src/entrycompletion.ccg
index 21f5b434..6a18ea8e 100644
--- a/gtk/src/entrycompletion.ccg
+++ b/gtk/src/entrycompletion.ccg
@@ -16,6 +16,7 @@
  */
 
 #include <gtkmm/treeiter.h>
+#include <gtkmm/cellarea.h>
 #include <gtkmm/entry.h>
 #include <gtk/gtk.h>
 
diff --git a/gtk/src/entrycompletion.hg b/gtk/src/entrycompletion.hg
index 41fd6e8c..3cb9d94e 100644
--- a/gtk/src/entrycompletion.hg
+++ b/gtk/src/entrycompletion.hg
@@ -22,10 +22,9 @@
 _DEFS(gtkmm,gtk)
 _PINCLUDE(glibmm/private/object_p.h)
 
-
 namespace Gtk
 {
-
+class CellArea;
 class Entry;
 
 /** Completion functionality for Gtk::Entry.
@@ -194,7 +193,6 @@ dnl
 
 #m4 _CONVERSION(`const char*',`const Glib::ustring&',__GCHARP_TO_USTRING)
 
-
   _WRAP_SIGNAL(bool insert_prefix(const Glib::ustring& prefix), insert_prefix)
 
   _WRAP_SIGNAL(void no_matches(), no_matches)
@@ -218,4 +216,3 @@ protected:
 };
 
 } // namespace Gtk
-
diff --git a/gtk/src/treeviewcolumn.ccg b/gtk/src/treeviewcolumn.ccg
index 2ad9df1a..91440d06 100644
--- a/gtk/src/treeviewcolumn.ccg
+++ b/gtk/src/treeviewcolumn.ccg
@@ -16,6 +16,7 @@
  */
 
 #include <gtk/gtk.h>
+#include <gtkmm/cellarea.h>
 #include <gtkmm/treeview_private.h>
 
 using Sizing = Gtk::TreeViewColumn::Sizing;
diff --git a/gtk/src/treeviewcolumn.hg b/gtk/src/treeviewcolumn.hg
index a1a513ac..bff566b9 100644
--- a/gtk/src/treeviewcolumn.hg
+++ b/gtk/src/treeviewcolumn.hg
@@ -37,6 +37,7 @@ _CC_INCLUDE(gtk/gtk.h)
 // when using --export-all and auto-import.
 // See http://bugzilla.gnome.org/show_bug.cgi?id=309030.
 
+class CellArea;
 class TreeView;
 
 //TODO: Deal with the GtkObject->GObject change?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]