[pangomm] Generate more complete extra defs



commit 218b7309376e0e35cd0e6bc5a2dc0c6a0ab60490
Author: Daniel Elstner <danielk openismus com>
Date:   Tue Aug 11 19:39:49 2009 +0200

    Generate more complete extra defs
    
    * tools/extra_defs_gen/generate_defs_pango.cc (main): Query the
    defs for all not backend-specific GObject classes in Pango, just
    in case.

 ChangeLog                                   |    8 ++++++++
 tools/extra_defs_gen/generate_defs_pango.cc |   20 +++++++++++++-------
 2 files changed, 21 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3085372..20bf36c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2009-08-11  Daniel Elstner  <danielk openismus com>
 
+	Generate more complete extra defs
+
+	* tools/extra_defs_gen/generate_defs_pango.cc (main): Query the
+	defs for all not backend-specific GObject classes in Pango, just
+	in case.
+
+2009-08-11  Daniel Elstner  <danielk openismus com>
+
 	Rename scripts/ subdirectory to build/
 
 	* configure.ac (AC_CONFIG_AUX_DIR): Point to build/ directory.
diff --git a/tools/extra_defs_gen/generate_defs_pango.cc b/tools/extra_defs_gen/generate_defs_pango.cc
index aad740c..78d43f9 100644
--- a/tools/extra_defs_gen/generate_defs_pango.cc
+++ b/tools/extra_defs_gen/generate_defs_pango.cc
@@ -19,17 +19,23 @@
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include "glibmm_generate_extra_defs/generate_extra_defs.h"
+#include <glibmm_generate_extra_defs/generate_extra_defs.h>
 #include <pango/pango.h>
+#include <pango/pangocairo.h>
 
-
-int main (int /* argc */, char ** /* argv */)
+int main(int, char**)
 {
   g_type_init();
 
-  //Pango doesn't seem to have any public signals or properties.
-  std::cout << get_defs( PANGO_TYPE_LAYOUT ) << std::endl;
-
-
+  std::cout << get_defs(PANGO_TYPE_CONTEXT)        << std::endl
+            << get_defs(PANGO_TYPE_FONT)           << std::endl
+            << get_defs(PANGO_TYPE_FONT_FACE)      << std::endl
+            << get_defs(PANGO_TYPE_FONT_FAMILY)    << std::endl
+            << get_defs(PANGO_TYPE_FONT_MAP)       << std::endl
+            << get_defs(PANGO_TYPE_CAIRO_FONT)     << std::endl
+            << get_defs(PANGO_TYPE_CAIRO_FONT_MAP) << std::endl
+            << get_defs(PANGO_TYPE_FONTSET)        << std::endl
+            << get_defs(PANGO_TYPE_LAYOUT)         << std::endl
+            << get_defs(PANGO_TYPE_RENDERER)       << std::endl;
   return 0;
 }



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