Revision: 5434
http://geany.svn.sourceforge.net/geany/?rev=5434&view=rev
Author: frlan
Date: 2010-11-23 17:56:23 +0000 (Tue, 23 Nov 2010)
Log Message:
-----------
Move unstable branch
Added Paths:
-----------
branches/unstable/
Removed Paths:
-------------
tags/unstable/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5433
http://geany.svn.sourceforge.net/geany/?rev=5433&view=rev
Author: ntrel
Date: 2010-11-23 17:40:30 +0000 (Tue, 23 Nov 2010)
Log Message:
-----------
Typo in editor_get_[indent_]prefs() dox.
Modified Paths:
--------------
trunk/src/editor.c
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2010-11-23 17:36:29 UTC (rev 5432)
+++ trunk/src/editor.c 2010-11-23 17:40:30 UTC (rev 5433)
@@ -418,7 +418,7 @@
/* Gets the prefs for the editor.
- * Prefs can be different according to project or filetype.
+ * Prefs can be different according to project or document.
* @warning Always get a fresh result instead of keeping a pointer to it if the editor/project
* settings may have changed, or if this function has been called for a different editor.
* @param editor The editor, or @c NULL to get the default prefs.
@@ -1174,7 +1174,7 @@
/** Gets the indentation prefs for the editor.
- * Prefs can be different according to project or filetype.
+ * Prefs can be different according to project or document.
* @warning Always get a fresh result instead of keeping a pointer to it if the editor/project
* settings may have changed, or if this function has been called for a different editor.
* @param editor The editor, or @c NULL to get the default indent prefs.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5431
http://geany.svn.sourceforge.net/geany/?rev=5431&view=rev
Author: ntrel
Date: 2010-11-23 17:25:58 +0000 (Tue, 23 Nov 2010)
Log Message:
-----------
Add editor_get_prefs() instead of editor_get_long_line_*()
functions. This general function can be extended to support
various project and document overrides.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
trunk/src/editor.h
trunk/src/keybindings.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-11-23 16:23:22 UTC (rev 5430)
+++ trunk/ChangeLog 2010-11-23 17:25:58 UTC (rev 5431)
@@ -15,6 +15,10 @@
doc/geany.html:
Add gio_unsafe_save_backup hidden pref (patch by Lex Trotman,
thanks).
+ * src/keybindings.c, src/editor.c, src/editor.h:
+ Add editor_get_prefs() instead of editor_get_long_line_*()
+ functions. This general function can be extended to support
+ various project and document overrides.
2010-11-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2010-11-23 16:23:22 UTC (rev 5430)
+++ trunk/src/editor.c 2010-11-23 17:25:58 UTC (rev 5431)
@@ -373,7 +373,7 @@
}
-gint editor_get_long_line_type(void)
+static gint editor_get_long_line_type(void)
{
if (app->project)
switch (app->project->long_line_behaviour)
@@ -393,7 +393,7 @@
}
-gint editor_get_long_line_column(void)
+static gint editor_get_long_line_column(void)
{
if (app->project && app->project->long_line_behaviour != 1 /* use global settings */)
return app->project->long_line_column;
@@ -402,6 +402,44 @@
}
+static const GeanyEditorPrefs *
+get_default_prefs(void)
+{
+ static GeanyEditorPrefs eprefs;
+
+ eprefs = editor_prefs;
+
+ /* project overrides */
+ eprefs.indentation = (GeanyIndentPrefs*)editor_get_indent_prefs(NULL);
+ eprefs.long_line_global_type = editor_get_long_line_type();
+ eprefs.long_line_global_column = editor_get_long_line_column();
+ return &eprefs;
+}
+
+
+/* Gets the prefs for the editor.
+ * Prefs can be different according to project or filetype.
+ * @warning Always get a fresh result instead of keeping a pointer to it if the editor/project
+ * settings may have changed, or if this function has been called for a different editor.
+ * @param editor The editor, or @c NULL to get the default prefs.
+ * @return The prefs. */
+const GeanyEditorPrefs *editor_get_prefs(GeanyEditor *editor)
+{
+ static GeanyEditorPrefs eprefs;
+ const GeanyEditorPrefs *dprefs = get_default_prefs();
+
+ /* Return the address of the default prefs to allow returning default and editor
+ * pref pointers without invalidating the contents of either. */
+ if (editor == NULL)
+ return dprefs;
+
+ eprefs = *dprefs;
+ eprefs.indentation = (GeanyIndentPrefs*)editor_get_indent_prefs(editor);
+ /* add other editor & document overrides as needed */
+ return &eprefs;
+}
+
+
void editor_toggle_fold(GeanyEditor *editor, gint line, gint modifiers)
{
ScintillaObject *sci;
@@ -1136,7 +1174,7 @@
/** Gets the indentation prefs for the editor.
- * In future, the prefs might be different according to project or filetype.
+ * Prefs can be different according to project or filetype.
* @warning Always get a fresh result instead of keeping a pointer to it if the editor/project
* settings may have changed, or if this function has been called for a different editor.
* @param editor The editor, or @c NULL to get the default indent prefs.
Modified: trunk/src/editor.h
===================================================================
--- trunk/src/editor.h 2010-11-23 16:23:22 UTC (rev 5430)
+++ trunk/src/editor.h 2010-11-23 17:25:58 UTC (rev 5431)
@@ -104,14 +104,14 @@
* Some of these can be overridden per document or per project. */
typedef struct GeanyEditorPrefs
{
- GeanyIndentPrefs *indentation; /*< Default indentation prefs. @see editor_get_indent_prefs(). */
+ GeanyIndentPrefs *indentation; /* Default indentation prefs. Use editor_get_indent_prefs(). */
gboolean show_white_space;
gboolean show_indent_guide;
gboolean show_line_endings;
- /* 0 - line, 1 - background. This setting may be overriden when a project is opened. Use
- * @c editor_get_long_line_type(). */
+ /* 0 - line, 1 - background, 2 - disabled.
+ * This setting may be overriden when a project is opened. Use @c editor_get_prefs(). */
gint long_line_global_type;
- /* This setting may be overriden when a project is opened. Use @c editor_get_long_line_column(). */
+ /* This setting may be overriden when a project is opened. Use @c editor_get_prefs(). */
gint long_line_global_column;
gchar *long_line_color;
gboolean show_markers_margin; /* view menu */
@@ -229,10 +229,8 @@
void editor_snippets_free(void);
-/* 0 - line, 1 - background, 2 - disabled */
-gint editor_get_long_line_type(void);
+const GeanyEditorPrefs *editor_get_prefs(GeanyEditor *editor);
-gint editor_get_long_line_column(void);
/* General editing functions */
Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c 2010-11-23 16:23:22 UTC (rev 5430)
+++ trunk/src/keybindings.c 2010-11-23 17:25:58 UTC (rev 5431)
@@ -2321,16 +2321,17 @@
ScintillaObject *sci = editor->sci;
gboolean sel;
gint column = -1;
+ const GeanyEditorPrefs *eprefs = editor_get_prefs(editor);
if (editor->line_breaking)
{
/* use line break column if enabled */
- column = editor_prefs.line_break_column;
+ column = eprefs->line_break_column;
}
- else if (editor_get_long_line_type() != 2)
+ else if (eprefs->long_line_global_type != 2)
{
/* use long line if enabled */
- column = editor_get_long_line_column();
+ column = eprefs->long_line_global_column;
}
else
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5429
http://geany.svn.sourceforge.net/geany/?rev=5429&view=rev
Author: ntrel
Date: 2010-11-23 13:43:36 +0000 (Tue, 23 Nov 2010)
Log Message:
-----------
Don't use 'Enable' in pref labels when unnecessary.
Rename XML/HTML tag autocompletion -> auto-closing.
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/geany.html
trunk/doc/geany.txt
trunk/geany.glade
trunk/src/interface.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-11-23 13:17:42 UTC (rev 5428)
+++ trunk/ChangeLog 2010-11-23 13:43:36 UTC (rev 5429)
@@ -8,6 +8,9 @@
Definition look for a tag declaration instead, as this is more
useful. Likewise make Go to Tag Declaration search for a tag
definition in this case also.
+ * src/interface.c, doc/geany.txt, doc/geany.html, geany.glade:
+ Don't use 'Enable' in pref labels when unnecessary.
+ Rename XML/HTML tag autocompletion -> auto-closing.
2010-11-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/doc/geany.html
===================================================================
--- trunk/doc/geany.html 2010-11-23 13:17:42 UTC (rev 5428)
+++ trunk/doc/geany.html 2010-11-23 13:43:36 UTC (rev 5429)
@@ -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="2010-11-22" />
+<meta name="date" content="2010-11-23" />
<style type="text/css">
/*
@@ -139,7 +139,7 @@
<br />Nick Treleaven
<br />Frank Lanitz</td></tr>
<tr><th class="docinfo-name">Date:</th>
-<td>2010-11-22</td></tr>
+<td>2010-11-23</td></tr>
<tr><th class="docinfo-name">Version:</th>
<td>0.20</td></tr>
</tbody>
@@ -2263,13 +2263,13 @@
<dl class="docutils">
<dt>Line wrapping</dt>
<dd>Show long lines wrapped around to new display lines.</dd>
-<dt>Enable "smart" home key</dt>
+<dt>"Smart" home key</dt>
<dd>Whether to move the cursor to the first non-whitespace character
on the line when you hit the home key on your keyboard. Pressing it
again will go to the very start of the line.</dd>
<dt>Disable Drag and Drop</dt>
<dd>Do not allow the dragging and dropping of selected text in documents.</dd>
-<dt>Enable folding</dt>
+<dt>Code folding</dt>
<dd>Allow groups of lines in a document to be collapsed for easier
navigation/editing.</dd>
<dt>Fold/Unfold all children of a fold point</dt>
@@ -2352,8 +2352,9 @@
<dd>Whether to replace special keywords after typing Tab into a
pre-defined text snippet.
See <a class="reference" href="#user-definable-snippets">User-definable snippets</a>.</dd>
-<dt>XML/HTML tag autocompletion</dt>
-<dd>When you open an XML tag automatically generate its completion tag.</dd>
+<dt>XML/HTML tag auto-closing</dt>
+<dd>When you open an XML/HTML tag automatically generate its
+completion tag.</dd>
<dt>Automatic continuation multi-line comments</dt>
<dd><p class="first">Continue automatically multi-line comments in languages like C, C++
and Java when a new line is entered inside such a comment.
@@ -6366,7 +6367,7 @@
<div class="footer">
<hr class="footer" />
<a class="reference" href="geany.txt">View document source</a>.
-Generated on: 2010-11-23 13:12 UTC.
+Generated on: 2010-11-23 13:39 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 2010-11-23 13:17:42 UTC (rev 5428)
+++ trunk/doc/geany.txt 2010-11-23 13:43:36 UTC (rev 5429)
@@ -1921,7 +1921,7 @@
Line wrapping
Show long lines wrapped around to new display lines.
-Enable "smart" home key
+"Smart" home key
Whether to move the cursor to the first non-whitespace character
on the line when you hit the home key on your keyboard. Pressing it
again will go to the very start of the line.
@@ -1929,7 +1929,7 @@
Disable Drag and Drop
Do not allow the dragging and dropping of selected text in documents.
-Enable folding
+Code folding
Allow groups of lines in a document to be collapsed for easier
navigation/editing.
@@ -2019,8 +2019,9 @@
pre-defined text snippet.
See `User-definable snippets`_.
-XML/HTML tag autocompletion
- When you open an XML tag automatically generate its completion tag.
+XML/HTML tag auto-closing
+ When you open an XML/HTML tag automatically generate its
+ completion tag.
Automatic continuation multi-line comments
Continue automatically multi-line comments in languages like C, C++
Modified: trunk/geany.glade
===================================================================
--- trunk/geany.glade 2010-11-23 13:17:42 UTC (rev 5428)
+++ trunk/geany.glade 2010-11-23 13:43:36 UTC (rev 5429)
@@ -5673,7 +5673,7 @@
<property name="visible">True</property>
<property name="tooltip" translatable="yes">When "smart" home is enabled, the HOME key will move the caret to the first non-blank character of the line, unless it is already there, it moves to the very beginning of the line. When this feature is disabled, the HOME key always moves the caret to the start of the current line, regardless of its current position.</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Enable "smart" home key</property>
+ <property name="label" translatable="yes">"Smart" home key</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
@@ -5711,9 +5711,8 @@
<child>
<widget class="GtkCheckButton" id="check_folding">
<property name="visible">True</property>
- <property name="tooltip" translatable="yes">Whether to enable folding the code</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Enable folding</property>
+ <property name="label" translatable="yes">Code folding</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
@@ -6391,7 +6390,7 @@
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Insert matching closing tag for XML/HTML</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">XML/HTML tag autocompletion</property>
+ <property name="label" translatable="yes">XML/HTML tag auto-closing</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
@@ -6738,7 +6737,7 @@
<child>
<widget class="GtkCheckButton" id="check_autoclose_squote">
<property name="visible">True</property>
- <property name="tooltip" translatable="yes">Auto-close simple quote when typing an opening one</property>
+ <property name="tooltip" translatable="yes">Auto-close single quote when typing an opening one</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Single quotes ' '</property>
<property name="use_underline">True</property>
Modified: trunk/src/interface.c
===================================================================
--- trunk/src/interface.c 2010-11-23 13:17:42 UTC (rev 5428)
+++ trunk/src/interface.c 2010-11-23 13:43:36 UTC (rev 5429)
@@ -3699,7 +3699,7 @@
gtk_box_pack_start (GTK_BOX (vbox17), check_line_wrapping, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, check_line_wrapping, _("Wrap the line at the window border and continue it on the next line. Note: line wrapping has a high performance cost for large documents so should be disabled on slow machines."), NULL);
- check_smart_home = gtk_check_button_new_with_mnemonic (_("Enable \"smart\" home key"));
+ check_smart_home = gtk_check_button_new_with_mnemonic (_("\"Smart\" home key"));
gtk_widget_show (check_smart_home);
gtk_box_pack_start (GTK_BOX (vbox17), check_smart_home, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, check_smart_home, _("When \"smart\" home is enabled, the HOME key will move the caret to the first non-blank character of the line, unless it is already there, it moves to the very beginning of the line. When this feature is disabled, the HOME key always moves the caret to the start of the current line, regardless of its current position."), NULL);
@@ -3709,10 +3709,9 @@
gtk_box_pack_start (GTK_BOX (vbox17), check_disable_dnd, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, check_disable_dnd, _("Disable drag and drop completely in the editor window so you can't drag and drop any selections within or outside of the editor window"), NULL);
- check_folding = gtk_check_button_new_with_mnemonic (_("Enable folding"));
+ check_folding = gtk_check_button_new_with_mnemonic (_("Code folding"));
gtk_widget_show (check_folding);
gtk_box_pack_start (GTK_BOX (vbox17), check_folding, FALSE, FALSE, 0);
- gtk_tooltips_set_tip (tooltips, check_folding, _("Whether to enable folding the code"), NULL);
check_unfold_children = gtk_check_button_new_with_mnemonic (_("Fold/unfold all children of a fold point"));
gtk_widget_show (check_unfold_children);
@@ -3908,7 +3907,7 @@
gtk_box_pack_start (GTK_BOX (vbox19), check_complete_snippets, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, check_complete_snippets, _("Type a defined short character sequence and complete it to a more complex string using a single keypress"), NULL);
- check_xmltag = gtk_check_button_new_with_mnemonic (_("XML/HTML tag autocompletion"));
+ check_xmltag = gtk_check_button_new_with_mnemonic (_("XML/HTML tag auto-closing"));
gtk_widget_show (check_xmltag);
gtk_box_pack_start (GTK_BOX (vbox19), check_xmltag, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, check_xmltag, _("Insert matching closing tag for XML/HTML"), NULL);
@@ -4016,7 +4015,7 @@
gtk_table_attach (GTK_TABLE (table16), check_autoclose_squote, 0, 1, 3, 4,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- gtk_tooltips_set_tip (tooltips, check_autoclose_squote, _("Auto-close simple quote when typing an opening one"), NULL);
+ gtk_tooltips_set_tip (tooltips, check_autoclose_squote, _("Auto-close single quote when typing an opening one"), NULL);
check_autoclose_cbracket = gtk_check_button_new_with_mnemonic (_("Curly brackets { }"));
gtk_widget_show (check_autoclose_cbracket);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5428
http://geany.svn.sourceforge.net/geany/?rev=5428&view=rev
Author: ntrel
Date: 2010-11-23 13:17:42 +0000 (Tue, 23 Nov 2010)
Log Message:
-----------
If the current word's tag is on the current line, make Go to Tag
Definition look for a tag declaration instead, as this is more
useful. Likewise make Go to Tag Declaration search for a tag
definition in this case also.
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/geany.html
trunk/doc/geany.txt
trunk/src/symbols.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-11-23 12:50:24 UTC (rev 5427)
+++ trunk/ChangeLog 2010-11-23 13:17:42 UTC (rev 5428)
@@ -3,6 +3,11 @@
* src/interface.c, src/keybindings.c, src/callbacks.c,
src/callbacks.h, geany.glade:
Add 'Mark All' Search menu command.
+ * src/symbols.c, doc/geany.txt, doc/geany.html:
+ If the current word's tag is on the current line, make Go to Tag
+ Definition look for a tag declaration instead, as this is more
+ useful. Likewise make Go to Tag Declaration search for a tag
+ definition in this case also.
2010-11-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/doc/geany.html
===================================================================
--- trunk/doc/geany.html 2010-11-23 12:50:24 UTC (rev 5427)
+++ trunk/doc/geany.html 2010-11-23 13:17:42 UTC (rev 5428)
@@ -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="2010-11-17" />
+<meta name="date" content="2010-11-22" />
<style type="text/css">
/*
@@ -139,7 +139,7 @@
<br />Nick Treleaven
<br />Frank Lanitz</td></tr>
<tr><th class="docinfo-name">Date:</th>
-<td>2010-11-17</td></tr>
+<td>2010-11-22</td></tr>
<tr><th class="docinfo-name">Version:</th>
<td>0.20</td></tr>
</tbody>
@@ -1732,7 +1732,14 @@
current word is either the word nearest the edit cursor,
or the word underneath the popup menu click position when the popup
menu is used.</p>
+<div class="note">
+<p class="first admonition-title">Note</p>
+<p class="last">If the current word's tag is on the current line, Geany will try
+to look for a tag declaration instead, as this is more useful.
+Likewise 'Go to tag declaration' will search for a tag definition
+in this case also.</p>
</div>
+</div>
<div class="section">
<h3><a class="toc-backref" href="#id73" id="go-to-tag-declaration" name="go-to-tag-declaration">Go to tag declaration</a></h3>
<p>Like Go to tag definition, but for a forward declaration such as a
@@ -6359,7 +6366,7 @@
<div class="footer">
<hr class="footer" />
<a class="reference" href="geany.txt">View document source</a>.
-Generated on: 2010-11-22 12:42 UTC.
+Generated on: 2010-11-23 13:12 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 2010-11-23 12:50:24 UTC (rev 5427)
+++ trunk/doc/geany.txt 2010-11-23 13:17:42 UTC (rev 5428)
@@ -1357,7 +1357,13 @@
or the word underneath the popup menu click position when the popup
menu is used.
+.. note::
+ If the current word's tag is on the current line, Geany will try
+ to look for a tag declaration instead, as this is more useful.
+ Likewise 'Go to tag declaration' will search for a tag definition
+ in this case also.
+
Go to tag declaration
^^^^^^^^^^^^^^^^^^^^^
Modified: trunk/src/symbols.c
===================================================================
--- trunk/src/symbols.c 2010-11-23 12:50:24 UTC (rev 5427)
+++ trunk/src/symbols.c 2010-11-23 13:17:42 UTC (rev 5428)
@@ -1542,7 +1542,7 @@
}
-gboolean symbols_goto_tag(const gchar *name, gboolean definition)
+static gboolean goto_tag(const gchar *name, gboolean definition)
{
const gint forward_types = tm_tag_prototype_t | tm_tag_externvar_t;
gint type;
@@ -1565,18 +1565,38 @@
GeanyDocument *new_doc = document_find_by_real_path(
tmtag->atts.entry.file->work_object.file_name);
- /* not found in opened document, should open */
- if (new_doc == NULL)
+ if (new_doc)
{
+ /* If we are already on the tag line, swap definition/declaration */
+ if (new_doc == old_doc &&
+ tmtag->atts.entry.line == (guint)sci_get_current_line(old_doc->editor->sci) + 1)
+ {
+ if (goto_tag(name, !definition))
+ return TRUE;
+ }
+ }
+ else
+ {
+ /* not found in opened document, should open */
new_doc = document_open_file(tmtag->atts.entry.file->work_object.file_name, FALSE, NULL, NULL);
}
if (navqueue_goto_line(old_doc, new_doc, tmtag->atts.entry.line))
return TRUE;
}
+ return FALSE;
+}
+
+
+gboolean symbols_goto_tag(const gchar *name, gboolean definition)
+{
+ if (goto_tag(name, definition))
+ return TRUE;
+
/* if we are here, there was no match and we are beeping ;-) */
utils_beep();
- if (type == forward_types)
+
+ if (!definition)
ui_set_statusbar(FALSE, _("Forward declaration \"%s\" not found."), name);
else
ui_set_statusbar(FALSE, _("Definition of \"%s\" not found."), name);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5426
http://geany.svn.sourceforge.net/geany/?rev=5426&view=rev
Author: eht16
Date: 2010-11-22 21:29:52 +0000 (Mon, 22 Nov 2010)
Log Message:
-----------
create unstable branch
Added Paths:
-----------
tags/unstable/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5425
http://geany.svn.sourceforge.net/geany/?rev=5425&view=rev
Author: ntrel
Date: 2010-11-22 16:51:16 +0000 (Mon, 22 Nov 2010)
Log Message:
-----------
Warn about preprocessor testing GEANY_API_VERSION below 200 because
those tests will always fail.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/plugindata.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-11-22 16:44:04 UTC (rev 5424)
+++ trunk/ChangeLog 2010-11-22 16:51:16 UTC (rev 5425)
@@ -11,6 +11,9 @@
* src/plugindata.h:
Make GEANY_API_VERSION, GEANY_ABI_VERSION macros instead of enums
so you can protect code with '#if GEANY_API_VERSION >= 200'.
+ * src/plugindata.h:
+ Warn about preprocessor testing GEANY_API_VERSION below 200 because
+ those tests will always fail.
2010-11-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/plugindata.h
===================================================================
--- trunk/src/plugindata.h 2010-11-22 16:44:04 UTC (rev 5424)
+++ trunk/src/plugindata.h 2010-11-22 16:51:16 UTC (rev 5425)
@@ -50,6 +50,9 @@
* @code #if GEANY_API_VERSION >= 200
* some_newer_function();
* #endif @endcode
+ *
+ * @warning You should not test for values below 200 as previously
+ * @c GEANY_API_VERSION was defined as an enum value, not a macro.
*/
#define GEANY_API_VERSION 200
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.