[gtksourceviewmm] Documented and changed init functions.



commit b532c8d74ebe7d3268f36cd1fad007e85d8d1617
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Sun Jan 17 18:54:05 2010 +0100

    Documented and changed init functions.
    
    * gtksourceview/gtksourceviewmm/init.cc:
    * gtksourceview/gtksourceviewmm/init.h: Documented. Also use
    Gtk::Main::init_gtkmm_internals() instead of Glib::init().

 gtksourceview/gtksourceviewmm/init.cc |    5 +++--
 gtksourceview/gtksourceviewmm/init.h  |    8 +++++---
 2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gtksourceview/gtksourceviewmm/init.cc b/gtksourceview/gtksourceviewmm/init.cc
index 711f9af..3b53962 100644
--- a/gtksourceview/gtksourceviewmm/init.cc
+++ b/gtksourceview/gtksourceviewmm/init.cc
@@ -1,6 +1,7 @@
 /* init.h
  *
  * Copyright (C) 2005-2006 The gtksourceviewmm development team
+ * Copyright (C) 2010 Krzesimir Nowak
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -26,10 +27,10 @@ init ()
 {
     static bool s_init = false ;
     if (!s_init) {
-        Glib::init () ;
+        Gtk::Main::init_gtkmm_internals();
         gtksourceview::wrap_init () ;
         s_init = true ;
     }
 }
 
-}
+} // namespace gtksourceview
diff --git a/gtksourceview/gtksourceviewmm/init.h b/gtksourceview/gtksourceviewmm/init.h
index 40da362..c4f30df 100644
--- a/gtksourceview/gtksourceviewmm/init.h
+++ b/gtksourceview/gtksourceviewmm/init.h
@@ -7,6 +7,7 @@
 /* init.h
  *
  * Copyright (C) 2005-2006 The gtksourceviewmm development team
+ * Copyright (C) 2010 Krzesimir Nowak
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -22,11 +23,12 @@
  * License along with this library; if not, write to the Free
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/// \file
-/// \brief the library initialization routines
+
 namespace gtksourceview
 {
-    void init () ;
+  /** Initializes all type internals.
+   */
+  void init () ;
 }//end namespace gtksourceview
 
 #endif //_GTKSOURCEVIEWMM_INIT_H



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