[glibmm/glibmm-2-24] Improvements to main page documentation
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-24] Improvements to main page documentation
- Date: Mon, 3 May 2010 21:08:31 +0000 (UTC)
commit 507678af36b9cf651abb1c046ade0a8d28a8464d
Author: David King <davidk openismus com>
Date: Fri Apr 23 11:33:09 2010 +0200
Improvements to main page documentation
* glib/glibmm.h: Add external links and compilation example.
ChangeLog | 6 ++++++
glib/glibmm.h | 38 ++++++++++++++++++++++++--------------
2 files changed, 30 insertions(+), 14 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c3550de..eec82f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-23 David King <davidk openismus com>
+
+ Improvements to main page documentation
+
+ * glib/glibmm.h: Add external links and compilation example.
+
2010-04-16 David King <davidk openismus com>
Add main page to Doxygen documentation
diff --git a/glib/glibmm.h b/glib/glibmm.h
index e2ac007..0bf2f02 100644
--- a/glib/glibmm.h
+++ b/glib/glibmm.h
@@ -1,5 +1,3 @@
-/* $Id$ */
-
/* glibmm - a C++ wrapper for the GLib toolkit
*
* Copyright 2002 The gtkmm Development Team
@@ -26,7 +24,9 @@
*
* @section description Description
*
- * glibmm is the official C++ interface for the popular library Glib.
+ * glibmm is the official C++ interface for the popular library %Glib. See also
+ * the <em>Programming with gtkmm</em> book for a tutorial on programming with
+ * gtkmm and glibmm: http://library.gnome.org/devel/gtkmm-tutorial/stable/
*
* @section features Features
*
@@ -34,17 +34,28 @@
* - A reference-counting smartpointer for easy memory management.
* - Intermediate types for compatibility with STL containers.
*
- * @section license License
- *
- * glibmm is free software distributed under the GNU Lesser General Public
- * License (LGPL).
+ * @section basics Basic usage
*
- * @section releases Release Schedule
- *
- * glibmm follows the official GNOME Platform Bindings release schedule. This
- * guarantees API/ABI-stability and new releases on a predictable schedule,
- * delivering C++ API for the underlying Glib and GNOME APIs as soon as
- * possible.
+ * Include the glibmm header:
+ * @code
+ * #include <glibmm.h>
+ * @endcode
+ * This includes every header installed by glibmm, so can slow down
+ * compilation, but suffices for this simple example. Assuming that your
+ * program source file is @c program.cc, compile it with:
+ * @code
+ * g++ program.cc -o program `pkg-config --cflags --libs glibmm-2.4`
+ * @endcode
+ * Alternatively, if using autoconf, use the following in @c configure.ac:
+ * @code
+ * PKG_CHECK_MODULES([GLIBMM], [glibmm-2.4])
+ * @endcode
+ * Then use the generated @c GLIBMM_CFLAGS and @c GLIBMM_LIBS variables in the
+ * project Makefile.am files. For example:
+ * @code
+ * program_CPPFLAGS = $(GLIBMM_CFLAGS)
+ * program_LDADD = $(GLIBMM_LIBS)
+ * @endcode
*/
#include <glibmmconfig.h>
@@ -101,4 +112,3 @@
#include <glibmm/wrap.h>
#endif /* _GLIBMM_H */
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]