Move the call of Gnome::Canvas::init() to proper place
This commit is contained in:
parent
1f94bfd1ea
commit
ad9551a28a
|
@ -70,6 +70,14 @@ public:
|
|||
void * context;
|
||||
};
|
||||
|
||||
bool
|
||||
canvas_init(
|
||||
void)
|
||||
{
|
||||
Gnome::Canvas::init();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
canvas_create(
|
||||
double width,
|
||||
|
|
|
@ -41,6 +41,10 @@ extern "C" {
|
|||
} /* Adjust editor indent */
|
||||
#endif
|
||||
|
||||
bool
|
||||
canvas_init(
|
||||
void);
|
||||
|
||||
bool
|
||||
canvas_create(
|
||||
double width,
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue