diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-21 21:49:19 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-22 01:18:06 +0100 |
commit | 5611d53c8c5ecf586233636d6090ce7e47644e04 (patch) | |
tree | 3e14daa1cb71778d5f54a3714eaba32fdc226eae /src/interface-gtk.h | |
parent | 8f0e72f0fedbfc8e4f26bff93472d0c1d59247df (diff) | |
download | sciteco-5611d53c8c5ecf586233636d6090ce7e47644e04.tar.gz |
fixed global object initialization order issue
* Scintilla is now initialized from main() using Interface::main()
* Scintilla initialization depends on initialization of objects in the
global namespace (otherwise the Lexer catalogue may not be filled
properly and lexing may not work). Lexer modules were initialized
after SciTECO interface initialization
* merged Scintilla initialization (Interface::main()) with interface
option parsing
Diffstat (limited to 'src/interface-gtk.h')
-rw-r--r-- | src/interface-gtk.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/interface-gtk.h b/src/interface-gtk.h index 43e9e89..baa499c 100644 --- a/src/interface-gtk.h +++ b/src/interface-gtk.h @@ -37,7 +37,11 @@ extern class InterfaceGtk : public Interface { GtkWidget *popup_widget; public: - InterfaceGtk(); + InterfaceGtk() : window(NULL), + editor_widget(NULL), + cmdline_widget(NULL), + info_widget(NULL), message_widget(NULL), + popup_widget(NULL) {} ~InterfaceGtk(); inline GOptionGroup * @@ -45,11 +49,7 @@ public: { return gtk_get_option_group(TRUE); } - inline void - parse_args(int &argc, char **&argv) - { - gtk_parse_args(&argc, &argv); - } + void main(int &argc, char **&argv); void vmsg(MessageType type, const gchar *fmt, va_list ap); void msg_clear(void); |