r1492@localhost: muntyan | 2005-12-24 00:09:56 -0600
Do not display stupid error messages on windows
This commit is contained in:
parent
74be00b9d2
commit
cff99f3c3e
28
moo.kdevelop
28
moo.kdevelop
@ -24,7 +24,7 @@
|
||||
</ignoreparts>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description></description>
|
||||
<description/>
|
||||
<secondaryLanguages>
|
||||
<language>C</language>
|
||||
</secondaryLanguages>
|
||||
@ -54,13 +54,13 @@
|
||||
<cflags>-O0 -g3 -pg</cflags>
|
||||
<cxxflags>-O0 -g3 -pg</cxxflags>
|
||||
<envvars/>
|
||||
<topsourcedir></topsourcedir>
|
||||
<cppflags></cppflags>
|
||||
<ldflags></ldflags>
|
||||
<ccompilerbinary></ccompilerbinary>
|
||||
<cxxcompilerbinary></cxxcompilerbinary>
|
||||
<f77compilerbinary></f77compilerbinary>
|
||||
<f77flags></f77flags>
|
||||
<topsourcedir/>
|
||||
<cppflags/>
|
||||
<ldflags/>
|
||||
<ccompilerbinary/>
|
||||
<cxxcompilerbinary/>
|
||||
<f77compilerbinary/>
|
||||
<f77flags/>
|
||||
</debug>
|
||||
<gtk-cvs>
|
||||
<configargs>--enable-debug=full --enable-all-gcc-warnings=fatal --enable-developer-mode --disable-moo-module --without-python --without-mooterm --without-mooapp</configargs>
|
||||
@ -198,12 +198,12 @@
|
||||
</kdevautoproject>
|
||||
<kdevdebugger>
|
||||
<general>
|
||||
<dbgshell></dbgshell>
|
||||
<dbgshell/>
|
||||
<programargs>--g-fatal-warnings</programargs>
|
||||
<gdbpath></gdbpath>
|
||||
<configGdbScript></configGdbScript>
|
||||
<runShellScript></runShellScript>
|
||||
<runGdbScript></runGdbScript>
|
||||
<gdbpath/>
|
||||
<configGdbScript/>
|
||||
<runShellScript/>
|
||||
<runGdbScript/>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>true</floatingtoolbar>
|
||||
@ -304,7 +304,7 @@
|
||||
</codecompletion>
|
||||
<references/>
|
||||
<creategettersetter>
|
||||
<prefixGet></prefixGet>
|
||||
<prefixGet/>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
|
@ -25,6 +25,10 @@
|
||||
#include <string.h>
|
||||
#include <gmodule.h>
|
||||
|
||||
#ifdef __WIN32__
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#define PLUGIN_PREFS_ENABLED "enabled"
|
||||
|
||||
|
||||
@ -778,6 +782,25 @@ out:
|
||||
}
|
||||
|
||||
|
||||
static GModule *
|
||||
module_open (const char *path)
|
||||
{
|
||||
GModule *module;
|
||||
G_GNUC_UNUSED guint saved;
|
||||
|
||||
#ifdef __WIN32__
|
||||
saved = SetErrorMode (SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS);
|
||||
#endif
|
||||
|
||||
module = g_module_open (path, 0);
|
||||
|
||||
#ifdef __WIN32__
|
||||
SetErrorMode (saved);
|
||||
#endif
|
||||
|
||||
return module;
|
||||
}
|
||||
|
||||
static void
|
||||
moo_plugin_read_dir (const char *path)
|
||||
{
|
||||
@ -803,7 +826,7 @@ moo_plugin_read_dir (const char *path)
|
||||
prefix = g_strndup (name, suffix - name);
|
||||
|
||||
module_path = g_build_filename (path, name, NULL);
|
||||
module = g_module_open (module_path, 0);
|
||||
module = module_open (module_path);
|
||||
|
||||
if (module)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user