]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/gtkgensurf/plugin.cpp
radiant: replace StringBuffer with std::string
[xonotic/netradiant.git] / contrib / gtkgensurf / plugin.cpp
index 2ec3d469c709d5ac36af601cadabe82500a92d40..3af80d63a98292025e6dd70178190234ab4e8ded 100644 (file)
@@ -23,7 +23,9 @@
 _QERFuncTable_1 g_FuncTable;
 _QERQglTable g_GLTable;
 _QERUIGtkTable g_UIGtkTable;
-_QEREntityTable g_EntityTable;
+_QEREntityTable __ENTITYTABLENAME;
+_QERBrushTable __BRUSHTABLENAME;
+_QERPatchTable __PATCHTABLENAME;
 bool SingleBrushSelected;
 bool g_bInitDone;
 
@@ -138,14 +140,10 @@ void QERPlug_Dispatch( const char *p, vec3_t vMin, vec3_t vMax, bool bSingleBrus
                        UseFaceBounds();
                }
 
-               gtk_widget_show( g_pWnd );
+               g_pWnd.show();
        }
 }
 
-extern "C" LPVOID WINAPI QERPlug_GetFuncTable(){
-       return &g_FuncTable;
-}
-
 // =============================================================================
 // SYNAPSE
 
@@ -165,13 +163,7 @@ virtual ~GenSurfSynapseClient() { }
 CSynapseServer* g_pSynapseServer = NULL;
 GenSurfSynapseClient g_SynapseClient;
 
-#if __GNUC__ >= 4
-#pragma GCC visibility push(default)
-#endif
-extern "C" CSynapseClient * SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) {
-#if __GNUC__ >= 4
-#pragma GCC visibility pop
-#endif
+extern "C" CSynapseClient * SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ){
        if ( strcmp( version, SYNAPSE_VERSION ) ) {
                Syn_Printf( "ERROR: synapse API version mismatch: should be '" SYNAPSE_VERSION "', got '%s'\n", version );
                return NULL;
@@ -205,8 +197,6 @@ bool GenSurfSynapseClient::RequestAPI( APIDescriptor_t *pAPI ){
        return false;
 }
 
-#include "version.h"
-
 const char* GenSurfSynapseClient::GetInfo(){
        return "GtkGenSurf - built " __DATE__ " " RADIANT_VERSION;
 }