Revision: 2893
http://geany.svn.sourceforge.net/geany/?rev=2893&view=rev
Author: eht16
Date: 2008-08-18 10:36:15 +0000 (Mon, 18 Aug 2008)
Log Message:
-----------
Don't use AC_CHECK_PROG() to check for a C++ compiler as it breaks compatibility with suncc (reported by Andras Barna, thanks).
Modified Paths:
--------------
trunk/ChangeLog
trunk/configure.in
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-08-18 10:35:22 UTC (rev 2892)
+++ trunk/ChangeLog 2008-08-18 10:36:15 UTC (rev 2893)
@@ -2,6 +2,9 @@
* scintilla/Makefile.am:
Remove non-portable compiler optimisation '-Os'.
+ * configure.in:
+ Don't use AC_CHECK_PROG() to check for a C++ compiler as it
+ breaks compatibility with suncc (reported by Andras Barna, thanks).
2008-08-17 Enrico Tröger <Enrico Tröger@localhost>
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2008-08-18 10:35:22 UTC (rev 2892)
+++ trunk/configure.in 2008-08-18 10:36:15 UTC (rev 2893)
@@ -15,8 +15,8 @@
AC_PROG_CXX
# check for C++ compiler explicitly and fail if none is found, do this check
# after AC_PROG_CXX has set the CXX environment variable
-AC_CHECK_PROG([have_cxx], [$CXX], [yes], [no])
-if test "x$have_cxx" = "xno"; then
+which $CXX >/dev/null 2>&1
+if test "x$?" != "x0"; then
AC_MSG_ERROR([No C++ compiler not found. Please install a C++ compiler.])
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2889
http://geany.svn.sourceforge.net/geany/?rev=2889&view=rev
Author: ntrel
Date: 2008-08-14 16:39:51 +0000 (Thu, 14 Aug 2008)
Log Message:
-----------
Make Ctrl-click on a word perform Go to Tag Definition (this
shouldn't conflict with column editing as this uses
Ctrl-Shift-click).
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/geany.html
trunk/doc/geany.txt
trunk/src/editor.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-08-14 15:50:40 UTC (rev 2888)
+++ trunk/ChangeLog 2008-08-14 16:39:51 UTC (rev 2889)
@@ -8,6 +8,10 @@
Rename abi_version GEANY_ABI_VERSION.
Use enums for each of these so they can be used to initialize a
global variable, and add dox.
+ * src/editor.c, doc/geany.txt, doc/geany.html:
+ Make Ctrl-click on a word perform Go to Tag Definition (this
+ shouldn't conflict with column editing as this uses
+ Ctrl-Shift-click).
2008-08-13 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/doc/geany.html
===================================================================
--- trunk/doc/geany.html 2008-08-14 15:50:40 UTC (rev 2888)
+++ trunk/doc/geany.html 2008-08-14 16:39:51 UTC (rev 2889)
@@ -6,7 +6,7 @@
<meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" />
<title>Geany</title>
<meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz" />
-<meta name="date" content="$Date$" />
+<meta name="date" content="2008-08-13" />
<style type="text/css">
/*
@@ -139,7 +139,7 @@
<br />Nick Treleaven
<br />Frank Lanitz</td></tr>
<tr><th class="docinfo-name">Date:</th>
-<td>$Date$</td></tr>
+<td>2008-08-13</td></tr>
<tr><th class="docinfo-name">Version:</th>
<td>0.15</td></tr>
</tbody>
@@ -365,19 +365,21 @@
</ul>
</li>
<li><a class="reference" href="#tips-and-tricks" id="id146" name="id146">Tips and tricks</a><ul>
-<li><a class="reference" href="#gtk-related" id="id147" name="id147">GTK-related</a></li>
+<li><a class="reference" href="#document-notebook" id="id147" name="id147">Document notebook</a></li>
+<li><a class="reference" href="#symbols" id="id148" name="id148">Symbols</a></li>
+<li><a class="reference" href="#gtk-related" id="id149" name="id149">GTK-related</a></li>
</ul>
</li>
-<li><a class="reference" href="#hidden-preferences" id="id148" name="id148">Hidden preferences</a></li>
-<li><a class="reference" href="#compile-time-options" id="id149" name="id149">Compile-time options</a><ul>
-<li><a class="reference" href="#src-geany-h" id="id150" name="id150">src/geany.h</a></li>
-<li><a class="reference" href="#project-h" id="id151" name="id151">project.h</a></li>
-<li><a class="reference" href="#editor-h" id="id152" name="id152">editor.h</a></li>
-<li><a class="reference" href="#keyfile-c" id="id153" name="id153">keyfile.c</a></li>
+<li><a class="reference" href="#hidden-preferences" id="id150" name="id150">Hidden preferences</a></li>
+<li><a class="reference" href="#compile-time-options" id="id151" name="id151">Compile-time options</a><ul>
+<li><a class="reference" href="#src-geany-h" id="id152" name="id152">src/geany.h</a></li>
+<li><a class="reference" href="#project-h" id="id153" name="id153">project.h</a></li>
+<li><a class="reference" href="#editor-h" id="id154" name="id154">editor.h</a></li>
+<li><a class="reference" href="#keyfile-c" id="id155" name="id155">keyfile.c</a></li>
</ul>
</li>
-<li><a class="reference" href="#gnu-general-public-license" id="id154" name="id154">GNU General Public License</a></li>
-<li><a class="reference" href="#license-for-scintilla-and-scite" id="id155" name="id155">License for Scintilla and SciTE</a></li>
+<li><a class="reference" href="#gnu-general-public-license" id="id156" name="id156">GNU General Public License</a></li>
+<li><a class="reference" href="#license-for-scintilla-and-scite" id="id157" name="id157">License for Scintilla and SciTE</a></li>
</ul>
</div>
<div class="section">
@@ -3540,16 +3542,25 @@
</div>
<div class="section">
<h1><a class="toc-backref" href="#id146" id="tips-and-tricks" name="tips-and-tricks">Tips and tricks</a></h1>
+<div class="section">
+<h2><a class="toc-backref" href="#id147" id="document-notebook" name="document-notebook">Document notebook</a></h2>
<ul class="simple">
<li>Double-click on empty space in the notebook tab bar to open a
new document.</li>
<li>Double-click on a document's notebook tab to toggle all additional
widgets (to show them again use the View menu or the keyboard shortcut).</li>
<li>Middle-click on a document's notebook tab to close the document.</li>
+</ul>
+</div>
+<div class="section">
+<h2><a class="toc-backref" href="#id148" id="symbols" name="symbols">Symbols</a></h2>
+<ul class="simple">
+<li>Ctrl-click on a word in a document to perform <em>Go to Tag Definition</em>.</li>
<li>Double-click on a symbol-list group to expand or compact it.</li>
</ul>
+</div>
<div class="section">
-<h2><a class="toc-backref" href="#id147" id="gtk-related" name="gtk-related">GTK-related</a></h2>
+<h2><a class="toc-backref" href="#id149" id="gtk-related" name="gtk-related">GTK-related</a></h2>
<ul class="simple">
<li>Scrolling the mouse wheel over a notebook tab bar will switch
notebook pages.</li>
@@ -3564,7 +3575,7 @@
</div>
</div>
<div class="section">
-<h1><a class="toc-backref" href="#id148" id="hidden-preferences" name="hidden-preferences">Hidden preferences</a></h1>
+<h1><a class="toc-backref" href="#id150" id="hidden-preferences" name="hidden-preferences">Hidden preferences</a></h1>
<p>There are some uncommon preferences that are not shown in the Preferences
dialog. These can be set by editing <tt class="docutils literal"><span class="pre">~/.geany/geany.conf</span></tt>, then
restarting Geany. Search for the key name, then edit the value. Example:</p>
@@ -3636,7 +3647,7 @@
</table>
</div>
<div class="section">
-<h1><a class="toc-backref" href="#id149" id="compile-time-options" name="compile-time-options">Compile-time options</a></h1>
+<h1><a class="toc-backref" href="#id151" id="compile-time-options" name="compile-time-options">Compile-time options</a></h1>
<p>There are some options which can only be changed at compile time,
and some options which are used as the default for configurable
options. To change these options, edit the appropriate source file
@@ -3648,7 +3659,7 @@
<p class="last">Most users should not need to change these options.</p>
</div>
<div class="section">
-<h2><a class="toc-backref" href="#id150" id="src-geany-h" name="src-geany-h">src/geany.h</a></h2>
+<h2><a class="toc-backref" href="#id152" id="src-geany-h" name="src-geany-h">src/geany.h</a></h2>
<table border="1" class="docutils">
<colgroup>
<col width="33%" />
@@ -3705,7 +3716,7 @@
</table>
</div>
<div class="section">
-<h2><a class="toc-backref" href="#id151" id="project-h" name="project-h">project.h</a></h2>
+<h2><a class="toc-backref" href="#id153" id="project-h" name="project-h">project.h</a></h2>
<table border="1" class="docutils">
<colgroup>
<col width="33%" />
@@ -3730,7 +3741,7 @@
</table>
</div>
<div class="section">
-<h2><a class="toc-backref" href="#id152" id="editor-h" name="editor-h">editor.h</a></h2>
+<h2><a class="toc-backref" href="#id154" id="editor-h" name="editor-h">editor.h</a></h2>
<table border="1" class="docutils">
<colgroup>
<col width="33%" />
@@ -3767,7 +3778,7 @@
</table>
</div>
<div class="section">
-<h2><a class="toc-backref" href="#id153" id="keyfile-c" name="keyfile-c">keyfile.c</a></h2>
+<h2><a class="toc-backref" href="#id155" id="keyfile-c" name="keyfile-c">keyfile.c</a></h2>
<p>These are default settings that can be overridden in the <a class="reference" href="#preferences">Preferences</a> dialog.</p>
<table border="1" class="docutils">
<colgroup>
@@ -3839,7 +3850,7 @@
</div>
</div>
<div class="section">
-<h1><a class="toc-backref" href="#id154" id="gnu-general-public-license" name="gnu-general-public-license">GNU General Public License</a></h1>
+<h1><a class="toc-backref" href="#id156" id="gnu-general-public-license" name="gnu-general-public-license">GNU General Public License</a></h1>
<pre class="literal-block">
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
@@ -4184,7 +4195,7 @@
</pre>
</div>
<div class="section">
-<h1><a class="toc-backref" href="#id155" id="license-for-scintilla-and-scite" name="license-for-scintilla-and-scite">License for Scintilla and SciTE</a></h1>
+<h1><a class="toc-backref" href="#id157" id="license-for-scintilla-and-scite" name="license-for-scintilla-and-scite">License for Scintilla and SciTE</a></h1>
<p>Copyright 1998-2003 by Neil Hodgson <neilh(at)scintilla(dot)org></p>
<p>All Rights Reserved</p>
<p>Permission to use, copy, modify, and distribute this software and
@@ -4204,7 +4215,7 @@
<div class="footer">
<hr class="footer" />
<a class="reference" href="geany.txt">View document source</a>.
-Generated on: 2008-08-13 17:24 UTC.
+Generated on: 2008-08-14 16:36 UTC.
Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
</div>
Modified: trunk/doc/geany.txt
===================================================================
--- trunk/doc/geany.txt 2008-08-14 15:50:40 UTC (rev 2888)
+++ trunk/doc/geany.txt 2008-08-14 16:39:51 UTC (rev 2889)
@@ -3171,11 +3171,19 @@
Tips and tricks
===============
+Document notebook
+-----------------
+
* Double-click on empty space in the notebook tab bar to open a
new document.
* Double-click on a document's notebook tab to toggle all additional
widgets (to show them again use the View menu or the keyboard shortcut).
* Middle-click on a document's notebook tab to close the document.
+
+Symbols
+-------
+
+* Ctrl-click on a word in a document to perform *Go to Tag Definition*.
* Double-click on a symbol-list group to expand or compact it.
GTK-related
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2008-08-14 15:50:40 UTC (rev 2888)
+++ trunk/src/editor.c 2008-08-14 16:39:51 UTC (rev 2889)
@@ -49,6 +49,7 @@
#include "callbacks.h"
#include "geanyobject.h"
#include "templates.h"
+#include "keybindings.h"
/* holds word under the mouse or keyboard cursor */
@@ -171,28 +172,32 @@
}
-/* calls the edit popup menu in the editor */
static gboolean
on_editor_button_press_event (GtkWidget *widget,
GdkEventButton *event,
gpointer user_data)
{
GeanyDocument *doc = user_data;
+ ScintillaObject *sci = doc->editor->sci;
- if (doc == NULL)
- return FALSE;
-
editor_info.click_pos = sci_get_position_from_xy(doc->editor->sci, (gint)event->x, (gint)event->y, FALSE);
if (event->button == 1)
{
- if (GDK_BUTTON_PRESS == event->type && editor_prefs.disable_dnd)
+ if (event->type == GDK_BUTTON_PRESS && editor_prefs.disable_dnd)
{
gint ss = sci_get_selection_start(doc->editor->sci);
sci_set_selection_end(doc->editor->sci, ss);
}
+ if (event->type == GDK_BUTTON_PRESS && event->state == GDK_CONTROL_MASK)
+ {
+ sci_set_current_position(sci, editor_info.click_pos, FALSE);
+ keybindings_send_command(GEANY_KEY_GROUP_GOTO, GEANY_KEYS_GOTO_TAGDEFINITION);
+ return TRUE;
+ }
return document_check_disk_status(doc, FALSE);
}
+ /* calls the edit popup menu in the editor */
if (event->button == 3)
{
editor_find_current_word(doc->editor->sci, editor_info.click_pos,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2888
http://geany.svn.sourceforge.net/geany/?rev=2888&view=rev
Author: ntrel
Date: 2008-08-14 15:50:40 +0000 (Thu, 14 Aug 2008)
Log Message:
-----------
Rename api_version GEANY_API_VERSION.
Rename abi_version GEANY_ABI_VERSION.
Use enums for each of these so they can be used to initialize a
global variable, and add dox.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/plugindata.h
trunk/src/plugins.c
trunk/src/prefs.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-08-14 15:48:11 UTC (rev 2887)
+++ trunk/ChangeLog 2008-08-14 15:50:40 UTC (rev 2888)
@@ -1,3 +1,15 @@
+2008-08-14 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/notebook.c:
+ Don't look up "scroll_arrow_hlength" and "scroll_arrow_vlength"
+ GtkWidget properties on GTK < 2.10.
+ * src/prefs.h, src/plugindata.h, src/plugins.c:
+ Rename api_version GEANY_API_VERSION.
+ Rename abi_version GEANY_ABI_VERSION.
+ Use enums for each of these so they can be used to initialize a
+ global variable, and add dox.
+
+
2008-08-13 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* doc/geany.txt, doc/geany.html:
Modified: trunk/src/plugindata.h
===================================================================
--- trunk/src/plugindata.h 2008-08-14 15:48:11 UTC (rev 2887)
+++ trunk/src/plugindata.h 2008-08-14 15:50:40 UTC (rev 2888)
@@ -28,20 +28,27 @@
* For detailed documentation of the plugin system please read the plugin
* API documentation.
**/
-/* Note: Remember to increment api_version (and abi_version if necessary) when making changes. */
+/* Note: Remember to increment GEANY_API_VERSION (and GEANY_ABI_VERSION if necessary)
+ * when making changes (see 'Keeping the plugin ABI stable' in the HACKING file). */
#ifndef PLUGINDATA_H
#define PLUGINDATA_H
-/* The API version should be incremented whenever any plugin data types below are
- * modified or appended to. */
-static const gint api_version = 87;
+/* Note: We use enum instead of 'static const gint' to allow its use in global variable
+ * initializing, otherwise we get errors like:
+ * error: initializer element is not constant */
+enum {
+ /** The Application Programming Interface (API) version, incremented
+ * whenever any plugin data types are modified or appended to. */
+ GEANY_API_VERSION = 88,
-/* The ABI version should be incremented whenever existing fields in the plugin
- * data types below have to be changed or reordered. It should stay the same if fields
- * are only appended, as this doesn't affect existing fields. */
-static const gint abi_version = 44;
+ /** The Application Binary Interface (ABI) version, incremented whenever
+ * existing fields in the plugin data types have to be changed or reordered. */
+ /* This should usually stay the same if fields are only appended, assuming only pointers to
+ * structs and not structs themselves are declared by plugins. */
+ GEANY_ABI_VERSION = 44
+};
/** Check the plugin can be loaded by Geany.
* This performs runtime checks that try to ensure:
@@ -50,9 +57,9 @@
#define PLUGIN_VERSION_CHECK(api_required) \
gint plugin_version_check(gint abi_ver) \
{ \
- if (abi_ver != abi_version) \
+ if (abi_ver != GEANY_ABI_VERSION) \
return -1; \
- if (api_version < (api_required)) \
+ if (GEANY_API_VERSION < (api_required)) \
return (api_required); \
else return 0; \
}
@@ -376,14 +383,15 @@
struct GeanyKeyGroup;
-typedef void (*_KeyCallback) (guint key_id);
+/* avoid including keybindings.h */
+typedef void (*_GeanyKeyCallback) (guint key_id);
/* See keybindings.h */
typedef struct KeybindingFuncs
{
void (*send_command) (guint group_id, guint key_id);
void (*set_item) (struct GeanyKeyGroup *group, gsize key_id,
- _KeyCallback callback, guint key, GdkModifierType mod,
+ _GeanyKeyCallback callback, guint key, GdkModifierType mod,
gchar *name, gchar *label, GtkWidget *menu_item);
}
KeybindingFuncs;
Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c 2008-08-14 15:48:11 UTC (rev 2887)
+++ trunk/src/plugins.c 2008-08-14 15:50:40 UTC (rev 2888)
@@ -365,7 +365,7 @@
}
else
{
- gint result = version_check(abi_version);
+ gint result = version_check(GEANY_ABI_VERSION);
if (result < 0)
{
Modified: trunk/src/prefs.h
===================================================================
--- trunk/src/prefs.h 2008-08-14 15:48:11 UTC (rev 2887)
+++ trunk/src/prefs.h 2008-08-14 15:50:40 UTC (rev 2888)
@@ -24,8 +24,7 @@
#ifndef GEANY_PREFS_H
#define GEANY_PREFS_H 1
-/* General Preferences dialog settings.
- * Remember to increment abi_version in plugindata.h if you have to change an item. */
+/* General Preferences dialog settings. */
typedef struct GeanyPrefs
{
gboolean load_session;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2886
http://geany.svn.sourceforge.net/geany/?rev=2886&view=rev
Author: eht16
Date: 2008-08-13 18:44:09 +0000 (Wed, 13 Aug 2008)
Log Message:
-----------
Don't force debug mode when compiling with GEANY_DEBUG (this affects only the messages on stdout and stderr). Messages are logged always in the debug window.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/log.c
trunk/src/main.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-08-13 18:42:11 UTC (rev 2885)
+++ trunk/ChangeLog 2008-08-13 18:44:09 UTC (rev 2886)
@@ -12,6 +12,10 @@
Fix logging of messages in the debug window on Windows.
When '--debug' option is given on Windows, set the
G_SPAWN_WIN32_DEBUG flag for more debug info for spawned processes.
+ * src/log.c, src/main.c:
+ Don't force debug mode when compiling with GEANY_DEBUG (this affects
+ only the messages on stdout and stderr). Messages are logged always
+ in the debug window.
2008-08-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/log.c
===================================================================
--- trunk/src/log.c 2008-08-13 18:42:11 UTC (rev 2885)
+++ trunk/src/log.c 2008-08-13 18:44:09 UTC (rev 2886)
@@ -94,9 +94,7 @@
{
gchar *time_str;
-#ifndef GEANY_DEBUG
if (app != NULL && app->debug_mode)
-#endif
{
#ifdef G_OS_WIN32
/* On Windows g_log_default_handler() is not enough, we need to print it
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2008-08-13 18:42:11 UTC (rev 2885)
+++ trunk/src/main.c 2008-08-13 18:44:09 UTC (rev 2886)
@@ -501,12 +501,7 @@
exit(0);
}
-#ifdef GEANY_DEBUG
- app->debug_mode = TRUE;
- geany_debug("debug mode built in (can't be disabled)");
-#else
app->debug_mode = debug_mode;
-#endif
#ifdef G_OS_WIN32
win32_init_debug_code();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2885
http://geany.svn.sourceforge.net/geany/?rev=2885&view=rev
Author: eht16
Date: 2008-08-13 18:42:11 +0000 (Wed, 13 Aug 2008)
Log Message:
-----------
Fix logging of messages in the debug window on Windows.
When '--debug' option is given on Windows, set the G_SPAWN_WIN32_DEBUG flag for more debug info for spawned processes.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/log.c
trunk/src/win32.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-08-13 18:40:34 UTC (rev 2884)
+++ trunk/ChangeLog 2008-08-13 18:42:11 UTC (rev 2885)
@@ -8,6 +8,10 @@
use 'make GTK280=1'.
* src/support.c:
Replace fprintf() with g_critical().
+ * src/log.c, src/win32.c:
+ Fix logging of messages in the debug window on Windows.
+ When '--debug' option is given on Windows, set the
+ G_SPAWN_WIN32_DEBUG flag for more debug info for spawned processes.
2008-08-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/log.c
===================================================================
--- trunk/src/log.c 2008-08-13 18:40:34 UTC (rev 2884)
+++ trunk/src/log.c 2008-08-13 18:42:11 UTC (rev 2885)
@@ -97,8 +97,19 @@
#ifndef GEANY_DEBUG
if (app != NULL && app->debug_mode)
#endif
- { /* print the message as usual on stdout/stderr */
+ {
+#ifdef G_OS_WIN32
+ /* On Windows g_log_default_handler() is not enough, we need to print it
+ * explicitly on stderr for the console window */
+ /** TODO this can be removed if/when we remove the console window on Windows */
+ if (domain != NULL)
+ fprintf(stderr, "%s: %s\n", domain, msg);
+ else
+ fprintf(stderr, "%s\n", msg);
+#else
+ /* print the message as usual on stdout/stderr */
g_log_default_handler(domain, level, msg, data);
+#endif
}
time_str = utils_get_current_time_string();
Modified: trunk/src/win32.c
===================================================================
--- trunk/src/win32.c 2008-08-13 18:40:34 UTC (rev 2884)
+++ trunk/src/win32.c 2008-08-13 18:42:11 UTC (rev 2885)
@@ -703,27 +703,15 @@
}
-static void debug_log_handler(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message,
- gpointer user_data)
-{
- if (log_domain != NULL)
- fprintf(stderr, "%s: %s\n", log_domain, message);
- else
- fprintf(stderr, "%s\n", message);
-}
-
-
void win32_init_debug_code()
{
-#ifndef GEANY_DEBUG
if (app->debug_mode)
-#endif
- { /* create a console window to get log messages on Windows */
+ {
+ /* create a console window to get log messages on Windows */
+ /** TODO remove me? */
debug_setup_console();
- /* change the log handlers to output log messages in ther created console window */
- g_log_set_handler("GLib",
- G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION, debug_log_handler, NULL);
- g_log_set_default_handler(debug_log_handler, NULL);
+ /* Enable GLib process spawn debug mode when Geany was started with the debug flag */
+ g_setenv("G_SPAWN_WIN32_DEBUG", "1", FALSE);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.