+
+ static GtkWidget* GetSplitterWidget();
+
+ // container for created widgets
+ static GtkContainer* GetContainer();
+ static GtkWidget* ms_container;
+};
+
+// Module for destroying created widgets
+class wxRendererGTK::Module: public wxModule
+{
+public:
+ virtual bool OnInit()
+ {
+ return true;
+ }
+ virtual void OnExit()
+ {
+ if (wxRendererGTK::ms_container)
+ {
+ GtkWidget* parent =
+ gtk_widget_get_parent(wxRendererGTK::ms_container);
+ gtk_widget_destroy(parent);
+ }
+ }
+ DECLARE_DYNAMIC_CLASS(wxRendererGTK::Module)