Changeset 5f649045eb54b700a7af27066ec33c1133276db5

Show
Ignore:
Timestamp:
10/14/08 22:15:21 (5 years ago)
Author:
Armin Burgmeier <armin@…>
Parents:
8429a15f4cb78d463a897be993ca943724f59f53
Children:
86c32c8ba885e66218f79923a22d968a37125468
git-committer:
Armin Burgmeier <armin@arbur.net> / 2008-10-14T22:15:21Z+0200
Message:

Use inf_init() instead of calling the required initialization routines directly

2008-10-14 Armin Burgmeier <armin@…>

  • code/main.cpp: Call inf_init() instead of initializing gnutls and the GObject type system directly.
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r8429a15 r5f64904  
     12008-10-14  Armin Burgmeier  <armin@arbur.net> 
     2 
     3        * code/main.cpp: Call inf_init() instead of initializing gnutls and 
     4        the GObject type system directly. 
     5 
    162008-10-14  Armin Burgmeier  <armin@arbur.net> 
    27 
  • code/main.cpp

    red98d09 r5f64904  
    2424#include "util/file.hpp" 
    2525#include "util/i18n.hpp" 
     26 
     27#include <libinfinity/common/inf-init.h> 
    2628 
    2729#include <gtkmm/main.h> 
     
    5658{ 
    5759        g_thread_init(NULL); 
    58         gnutls_global_init(); 
    5960        Gio::init(); 
    6061 
     
    103104        } 
    104105 
     106        GError* error = NULL; 
     107        if(!inf_init(&error)) 
     108        { 
     109                std::string message = error->message; 
     110                g_error_free(error); 
     111                throw std::runtime_error(message); 
     112        } 
     113 
    105114        Gobby::IconManager icon_manager; 
    106115 
     
    121130        kit->run(); 
    122131 
    123         //gnutls_global_deinit(); 
     132        //inf_deinit(); 
    124133        return 0; 
    125134}