[gtkmm-documentation] Rearranged an include to fix the build.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] Rearranged an include to fix the build.
- Date: Fri, 5 Nov 2010 16:21:26 +0000 (UTC)
commit eee526ad625b9cedad1e7f01896e3974fb5bad66
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Nov 4 15:25:38 2010 +0100
Rearranged an include to fix the build.
* examples/others/tictactoe/tictactoe.h: Include gdkmm.h later, to
avoid the unexplained compiler error that I worked around by adding an
include of dragcontext.h earlier in gtkmm.h.
ChangeLog | 8 ++++++++
examples/others/tictactoe/tictactoe.h | 2 +-
examples/others/tictactoe/ttt_test.cc | 6 +++---
3 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c2efb11..b08cbf9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-11-04 Murray Cumming <murrayc murrayc com>
+
+ Rearranged an include to fix the build.
+
+ * examples/others/tictactoe/tictactoe.h: Include gdkmm.h later, to
+ avoid the unexplained compiler error that I worked around by adding an
+ include of dragcontext.h earlier in gtkmm.h.
+
2.91.2:
2010-10-28 Murray Cumming <murrayc murrayc com>
diff --git a/examples/others/tictactoe/tictactoe.h b/examples/others/tictactoe/tictactoe.h
index 5363fb3..bafde35 100644
--- a/examples/others/tictactoe/tictactoe.h
+++ b/examples/others/tictactoe/tictactoe.h
@@ -19,9 +19,9 @@
#ifndef __TICTACTOE_H__
#define __TICTACTOE_H__
-#include <gdkmm.h>
#include <gtkmm/box.h>
#include <gtkmm/togglebutton.h>
+#include <gdkmm.h>
class TicTacToe: public Gtk::VBox
{
diff --git a/examples/others/tictactoe/ttt_test.cc b/examples/others/tictactoe/ttt_test.cc
index db7d3d5..ff197ab 100644
--- a/examples/others/tictactoe/ttt_test.cc
+++ b/examples/others/tictactoe/ttt_test.cc
@@ -11,7 +11,7 @@ win (TicTacToe *ttt)
}
-int
+int
main (int argc, char *argv[])
{
Gtk::Main m(argc, argv);
@@ -24,8 +24,8 @@ main (int argc, char *argv[])
window.set_border_width(10);
window.add(*ttt);
window.show_all_children();
-
+
Gtk::Main::run(window);
-
+
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]