Changeset 5f649045eb54b700a7af27066ec33c1133276db5
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r8429a15
|
r5f64904
|
|
| | 1 | 2008-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 | |
| 1 | 6 | 2008-10-14 Armin Burgmeier <armin@arbur.net> |
| 2 | 7 | |
-
|
red98d09
|
r5f64904
|
|
| 24 | 24 | #include "util/file.hpp" |
| 25 | 25 | #include "util/i18n.hpp" |
| | 26 | |
| | 27 | #include <libinfinity/common/inf-init.h> |
| 26 | 28 | |
| 27 | 29 | #include <gtkmm/main.h> |
| … |
… |
|
| 56 | 58 | { |
| 57 | 59 | g_thread_init(NULL); |
| 58 | | gnutls_global_init(); |
| 59 | 60 | Gio::init(); |
| 60 | 61 | |
| … |
… |
|
| 103 | 104 | } |
| 104 | 105 | |
| | 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 | |
| 105 | 114 | Gobby::IconManager icon_manager; |
| 106 | 115 | |
| … |
… |
|
| 121 | 130 | kit->run(); |
| 122 | 131 | |
| 123 | | //gnutls_global_deinit(); |
| | 132 | //inf_deinit(); |
| 124 | 133 | return 0; |
| 125 | 134 | } |