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;
|
void * context;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bool
|
||||||
|
canvas_init(
|
||||||
|
void)
|
||||||
|
{
|
||||||
|
Gnome::Canvas::init();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
canvas_create(
|
canvas_create(
|
||||||
double width,
|
double width,
|
||||||
|
|
|
@ -41,6 +41,10 @@ extern "C" {
|
||||||
} /* Adjust editor indent */
|
} /* Adjust editor indent */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
bool
|
||||||
|
canvas_init(
|
||||||
|
void);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
canvas_create(
|
canvas_create(
|
||||||
double width,
|
double width,
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "Widget.hpp"
|
#include "Widget.hpp"
|
||||||
#include <gtkmm.h>
|
#include <gtkmm.h>
|
||||||
|
#include "../common/debug.h"
|
||||||
|
|
||||||
//class a2j_proxy;
|
//class a2j_proxy;
|
||||||
//class lash_proxy;
|
//class lash_proxy;
|
||||||
|
@ -905,9 +906,13 @@ glade_open()
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
if (!canvas_init()) {
|
||||||
|
lash_error("Canvas initialization failed.");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
Gnome::Canvas::init();
|
|
||||||
Gtk::Main app(argc, argv);
|
Gtk::Main app(argc, argv);
|
||||||
|
|
||||||
g_xml = glade_open();
|
g_xml = glade_open();
|
||||||
|
|
Loading…
Reference in New Issue