Move the call of Gnome::Canvas::init() to proper place

This commit is contained in:
Nedko Arnaudov 2009-08-17 04:17:26 +03:00
parent 1f94bfd1ea
commit ad9551a28a
3 changed files with 18 additions and 1 deletions

View File

@ -70,6 +70,14 @@ public:
void * context;
};
bool
canvas_init(
void)
{
Gnome::Canvas::init();
return true;
}
bool
canvas_create(
double width,

View File

@ -41,6 +41,10 @@ extern "C" {
} /* Adjust editor indent */
#endif
bool
canvas_init(
void);
bool
canvas_create(
double width,

View File

@ -38,6 +38,7 @@
#include "common.h"
#include "Widget.hpp"
#include <gtkmm.h>
#include "../common/debug.h"
//class a2j_proxy;
//class lash_proxy;
@ -905,9 +906,13 @@ glade_open()
int main(int argc, char** argv)
{
if (!canvas_init()) {
lash_error("Canvas initialization failed.");
return 1;
}
try {
Gnome::Canvas::init();
Gtk::Main app(argc, argv);
g_xml = glade_open();