Revision: 2391
http://geany.svn.sourceforge.net/geany/?rev=2391&view=rev
Author: eht16
Date: 2008-03-23 09:43:01 -0700 (Sun, 23 Mar 2008)
Log Message:
-----------
Small improvement in counting changed documents for Save All update.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/ui_utils.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-03-23 16:32:36 UTC (rev 2390)
+++ trunk/ChangeLog 2008-03-23 16:43:01 UTC (rev 2391)
@@ -14,6 +14,8 @@
opening Find dialogs.
* src/keybindings.c, src/keybindings.h, src/plugindata.h:
Add shortcut to switch to the sidebar.
+ * src/ui_utils.c:
+ Small improvement in counting changed documents for Save All update.
2008-03-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/ui_utils.c
===================================================================
--- trunk/src/ui_utils.c 2008-03-23 16:32:36 UTC (rev 2390)
+++ trunk/src/ui_utils.c 2008-03-23 16:43:01 UTC (rev 2391)
@@ -536,14 +536,17 @@
/* save all menu item and tool button */
for (i = 0; i < (guint) gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)); i++)
{
- /* count the amount of files where changes were made and if there are some,
+ /* check whether there are files where changes were made and if there are some,
* we need the save all button / item */
- if (! dirty_tabs && doc_list[i].is_valid && doc_list[i].changed)
+ if (DOC_IDX_VALID(i) && doc_list[i].changed)
+ {
dirty_tabs = TRUE;
+ break;
+ }
}
- gtk_widget_set_sensitive(ui_widgets.save_buttons[2], (dirty_tabs > 0) ? TRUE : FALSE);
- gtk_widget_set_sensitive(ui_widgets.save_buttons[3], (dirty_tabs > 0) ? TRUE : FALSE);
+ gtk_widget_set_sensitive(ui_widgets.save_buttons[2], dirty_tabs);
+ gtk_widget_set_sensitive(ui_widgets.save_buttons[3], dirty_tabs);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2390
http://geany.svn.sourceforge.net/geany/?rev=2390&view=rev
Author: eht16
Date: 2008-03-23 09:32:36 -0700 (Sun, 23 Mar 2008)
Log Message:
-----------
Add shortcut to switch to the sidebar.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/keybindings.c
trunk/src/keybindings.h
trunk/src/plugindata.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-03-23 16:29:43 UTC (rev 2389)
+++ trunk/ChangeLog 2008-03-23 16:32:36 UTC (rev 2390)
@@ -12,6 +12,8 @@
geany.glade:
Add preference for not using the current word under the cursor when
opening Find dialogs.
+ * src/keybindings.c, src/keybindings.h, src/plugindata.h:
+ Add shortcut to switch to the sidebar.
2008-03-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c 2008-03-23 16:29:43 UTC (rev 2389)
+++ trunk/src/keybindings.c 2008-03-23 16:32:36 UTC (rev 2390)
@@ -89,6 +89,7 @@
static void cb_func_switch_scribble(guint key_id);
static void cb_func_switch_vte(guint key_id);
static void cb_func_switch_search_bar(guint key_id);
+static void cb_func_switch_sidebar(guint key_id);
static void cb_func_switch_tableft(guint key_id);
static void cb_func_switch_tabright(guint key_id);
static void cb_func_switch_tablastused(guint key_id);
@@ -379,6 +380,8 @@
GDK_F4, 0, "switch_vte", _("Switch to VTE"), NULL);
keybindings_set_item(group, GEANY_KEYS_FOCUS_SEARCHBAR, cb_func_switch_search_bar,
GDK_F7, 0, "switch_search_bar", _("Switch to Search Bar"), NULL);
+ keybindings_set_item(group, GEANY_KEYS_FOCUS_SIDEBAR, cb_func_switch_sidebar,
+ 0, 0, "switch_sidebar", _("Switch to Sidebar"), NULL);
group = ADD_KB_GROUP(NOTEBOOK, _("Notebook tab"));
@@ -1157,6 +1160,17 @@
gtk_widget_grab_focus(lookup_widget(app->window, "entry1"));
}
+static void cb_func_switch_sidebar(G_GNUC_UNUSED guint key_id)
+{
+ if (ui_prefs.sidebar_visible)
+ {
+ gint page_num = gtk_notebook_get_current_page(GTK_NOTEBOOK(app->treeview_notebook));
+ GtkWidget *swin = gtk_notebook_get_nth_page(GTK_NOTEBOOK(app->treeview_notebook), page_num);
+
+ gtk_widget_grab_focus(gtk_bin_get_child(GTK_BIN(swin)));
+ }
+}
+
static void cb_func_switch_vte(G_GNUC_UNUSED guint key_id)
{
msgwin_switch_tab(MSG_VTE, TRUE);
Modified: trunk/src/keybindings.h
===================================================================
--- trunk/src/keybindings.h 2008-03-23 16:29:43 UTC (rev 2389)
+++ trunk/src/keybindings.h 2008-03-23 16:32:36 UTC (rev 2390)
@@ -241,6 +241,7 @@
GEANY_KEYS_FOCUS_SCRIBBLE,
GEANY_KEYS_FOCUS_VTE,
GEANY_KEYS_FOCUS_SEARCHBAR,
+ GEANY_KEYS_FOCUS_SIDEBAR,
GEANY_KEYS_FOCUS_COUNT
};
Modified: trunk/src/plugindata.h
===================================================================
--- trunk/src/plugindata.h 2008-03-23 16:29:43 UTC (rev 2389)
+++ trunk/src/plugindata.h 2008-03-23 16:32:36 UTC (rev 2390)
@@ -35,12 +35,12 @@
/* The API version should be incremented whenever any plugin data types below are
* modified or appended to. */
-static const gint api_version = 49;
+static const gint api_version = 50;
/* 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 = 22;
+static const gint abi_version = 23;
/** This performs runtime checks that try to ensure:
* 1. Geany ABI data types are compatible with this plugin.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2387
http://geany.svn.sourceforge.net/geany/?rev=2387&view=rev
Author: eht16
Date: 2008-03-23 07:57:53 -0700 (Sun, 23 Mar 2008)
Log Message:
-----------
Add styles to customize line and search marker and add translucency setting.
Modified Paths:
--------------
trunk/ChangeLog
trunk/data/filetypes.common
trunk/doc/geany.html
trunk/doc/geany.txt
trunk/src/highlighting.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-03-21 18:44:12 UTC (rev 2386)
+++ trunk/ChangeLog 2008-03-23 14:57:53 UTC (rev 2387)
@@ -1,3 +1,11 @@
+2008-03-23 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * data/filetypes.common, doc/geany.txt, doc/geany.html,
+ src/highlighting.c:
+ Add styles to customize line and search marker and add
+ translucency setting.
+
+
2008-03-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/callbacks.c:
Modified: trunk/data/filetypes.common
===================================================================
--- trunk/data/filetypes.common 2008-03-21 18:44:12 UTC (rev 2386)
+++ trunk/data/filetypes.common 2008-03-23 14:57:53 UTC (rev 2387)
@@ -26,6 +26,18 @@
# only the first and second argument is interpreted
translucency=256;256;false;false
+# style for a highlighted line (e.g when using Goto line or goto tag)
+# only the first and second argument is interpreted
+marker_line=0x000000;0xffff00;false;false
+
+# style for a highlighted search result (e.g when using "Mark" in Search dialogs)
+# only the first and second argument is interpreted
+marker_search=0x000000;0xB8F4B8;false;false
+
+# translucency for the line marker(first argument) and the search marker (second argument)
+# only the first and second argument is interpreted
+marker_translucency=256;256;false;false
+
# colour of the caret(the blinking cursor), only first and third argument is interpreted
# set the third argument to true to change the caret into a block caret
caret=0x000000;0x0;false;false
Modified: trunk/doc/geany.html
===================================================================
--- trunk/doc/geany.html 2008-03-21 18:44:12 UTC (rev 2386)
+++ trunk/doc/geany.html 2008-03-23 14:57:53 UTC (rev 2387)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.4.1: http://docutils.sourceforge.net/" />
<title>Geany</title>
<meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz" />
<meta name="date" content="2008-03-20" />
@@ -2588,13 +2588,35 @@
<p class="last"><em>Example:</em> <tt class="docutils literal"><span class="pre">line_wrap_indent=0;0;false;false</span></tt></p>
</dd>
<dt>translucency</dt>
-<dd><p class="first">Translucency for the current line(first argument) and the selection
+<dd><p class="first">Translucency for the current line (first argument) and the selection
(second argument). Values between 0 and 256 are accepted.</p>
<p>Note for Windows 95, 98 and ME users:
keep this value at 256 to disable translucency otherwise Geany might crash.</p>
<p>Only the first and second argument is interpreted.</p>
<p class="last"><em>Example:</em> <tt class="docutils literal"><span class="pre">translucency=256;256;false;false</span></tt></p>
</dd>
+<dt>marker_line</dt>
+<dd><p class="first">The style for a highlighted line (e.g when using Goto line or goto tag).
+The forground colour (first argument) is only used when the Markers margin
+is enabled (see View menu).</p>
+<p>Only the first and second argument is interpreted.</p>
+<p class="last"><em>Example:</em> <tt class="docutils literal"><span class="pre">marker_line=0x000000;0xffff00;false;false</span></tt></p>
+</dd>
+<dt>marker_search</dt>
+<dd><p class="first">The style for a highlighted search result (e.g when using "Mark" in
+Search dialogs). The foreground colour (first argument) is only used
+when the Markers margin is enabled (see View menu).</p>
+<p>Only the first and second argument is interpreted.</p>
+<p class="last"><em>Example:</em> <tt class="docutils literal"><span class="pre">marker_search=0x000000;0xB8F4B8;false;false</span></tt></p>
+</dd>
+<dt>marker_translucency</dt>
+<dd><p class="first">Translucency for the line marker (first argument) and the search marker
+(second argument). Values between 0 and 256 are accepted.</p>
+<p>Note for Windows 95, 98 and ME users:
+keep this value at 256 to disable translucency otherwise Geany might crash.</p>
+<p>Only the first and second argument is interpreted.</p>
+<p class="last"><em>Example:</em> <tt class="docutils literal"><span class="pre">marker_translucency=256;256;false;false</span></tt></p>
+</dd>
<dt>whitespace_chars</dt>
<dd><p class="first">Characters to treat as whitespace. These characters are ignored
when moving, selecting and deleting across word boundaries
@@ -3513,7 +3535,7 @@
<div class="footer">
<hr class="footer" />
<a class="reference" href="geany.txt">View document source</a>.
-Generated on: 2008-03-20 17:07 UTC.
+Generated on: 2008-03-23 14:56 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-03-21 18:44:12 UTC (rev 2386)
+++ trunk/doc/geany.txt 2008-03-23 14:57:53 UTC (rev 2387)
@@ -2311,7 +2311,7 @@
*Example:* ``line_wrap_indent=0;0;false;false``
translucency
- Translucency for the current line(first argument) and the selection
+ Translucency for the current line (first argument) and the selection
(second argument). Values between 0 and 256 are accepted.
Note for Windows 95, 98 and ME users:
@@ -2321,6 +2321,35 @@
*Example:* ``translucency=256;256;false;false``
+marker_line
+ The style for a highlighted line (e.g when using Goto line or goto tag).
+ The forground colour (first argument) is only used when the Markers margin
+ is enabled (see View menu).
+
+ Only the first and second argument is interpreted.
+
+ *Example:* ``marker_line=0x000000;0xffff00;false;false``
+
+marker_search
+ The style for a highlighted search result (e.g when using "Mark" in
+ Search dialogs). The foreground colour (first argument) is only used
+ when the Markers margin is enabled (see View menu).
+
+ Only the first and second argument is interpreted.
+
+ *Example:* ``marker_search=0x000000;0xB8F4B8;false;false``
+
+marker_translucency
+ Translucency for the line marker (first argument) and the search marker
+ (second argument). Values between 0 and 256 are accepted.
+
+ Note for Windows 95, 98 and ME users:
+ keep this value at 256 to disable translucency otherwise Geany might crash.
+
+ Only the first and second argument is interpreted.
+
+ *Example:* ``marker_translucency=256;256;false;false``
+
whitespace_chars
Characters to treat as whitespace. These characters are ignored
when moving, selecting and deleting across word boundaries
Modified: trunk/src/highlighting.c
===================================================================
--- trunk/src/highlighting.c 2008-03-21 18:44:12 UTC (rev 2386)
+++ trunk/src/highlighting.c 2008-03-23 14:57:53 UTC (rev 2387)
@@ -70,6 +70,9 @@
GCS_LINE_WRAP_VISUALS,
GCS_LINE_WRAP_INDENT,
GCS_TRANSLUCENCY,
+ GCS_MARKER_LINE,
+ GCS_MARKER_SEARCH,
+ GCS_MARKER_TRANSLUCENCY,
GCS_MAX
};
@@ -364,6 +367,10 @@
"0xc0c0c0", "0xffffff", "false", &common_style_set.styling[GCS_INDENT_GUIDE]);
get_keyfile_hex(config, config_home, "styling", "white_space",
"0xc0c0c0", "0xffffff", "true", &common_style_set.styling[GCS_WHITE_SPACE]);
+ get_keyfile_hex(config, config_home, "styling", "marker_line",
+ "0x000000", "0xffff00", "false", &common_style_set.styling[GCS_MARKER_LINE]);
+ get_keyfile_hex(config, config_home, "styling", "marker_search",
+ "0x000000", "0xB8F4B8", "false", &common_style_set.styling[GCS_MARKER_SEARCH]);
{
/* hack because get_keyfile_int uses a Style struct */
HighlightingStyle tmp_style;
@@ -391,6 +398,10 @@
256, 256, &tmp_style);
common_style_set.styling[GCS_TRANSLUCENCY].foreground = tmp_style.foreground;
common_style_set.styling[GCS_TRANSLUCENCY].background = tmp_style.background;
+ get_keyfile_int(config, config_home, "styling", "marker_translucency",
+ 256, 256, &tmp_style);
+ common_style_set.styling[GCS_MARKER_TRANSLUCENCY].foreground = tmp_style.foreground;
+ common_style_set.styling[GCS_MARKER_TRANSLUCENCY].background = tmp_style.background;
}
get_keyfile_wordchars(config, config_home, &common_style_set.wordchars);
@@ -436,13 +447,15 @@
/* define marker symbols
* 0 -> line marker */
SSM(sci, SCI_MARKERDEFINE, 0, SC_MARK_SHORTARROW);
- SSM(sci, SCI_MARKERSETFORE, 0, invert(0x00007f));
- SSM(sci, SCI_MARKERSETBACK, 0, invert(0x00ffff));
+ SSM(sci, SCI_MARKERSETFORE, 0, invert(common_style_set.styling[GCS_MARKER_LINE].foreground));
+ SSM(sci, SCI_MARKERSETBACK, 0, invert(common_style_set.styling[GCS_MARKER_LINE].background));
+ SSM(sci, SCI_MARKERSETALPHA, 0, common_style_set.styling[GCS_MARKER_TRANSLUCENCY].foreground);
/* 1 -> user marker */
SSM(sci, SCI_MARKERDEFINE, 1, SC_MARK_PLUS);
- SSM(sci, SCI_MARKERSETFORE, 1, invert(0x000000));
- SSM(sci, SCI_MARKERSETBACK, 1, invert(0xB8F4B8));
+ SSM(sci, SCI_MARKERSETFORE, 1, invert(common_style_set.styling[GCS_MARKER_SEARCH].foreground));
+ SSM(sci, SCI_MARKERSETBACK, 1, invert(common_style_set.styling[GCS_MARKER_SEARCH].background));
+ SSM(sci, SCI_MARKERSETALPHA, 1, common_style_set.styling[GCS_MARKER_TRANSLUCENCY].background);
/* 2 -> folding marker, other folding settings */
SSM(sci, SCI_SETMARGINTYPEN, 2, SC_MARGIN_SYMBOL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2385
http://geany.svn.sourceforge.net/geany/?rev=2385&view=rev
Author: eht16
Date: 2008-03-21 11:29:25 -0700 (Fri, 21 Mar 2008)
Log Message:
-----------
Fix crash on Windows due to missing error message when a process spawning fails.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/win32.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-03-21 18:24:21 UTC (rev 2384)
+++ trunk/ChangeLog 2008-03-21 18:29:25 UTC (rev 2385)
@@ -14,6 +14,9 @@
* data/snippets.conf:
Add missing colon to "for" snippet for Python and set cursor position
(thanks mamaar on IRC).
+ * src/win32.c:
+ Fix crash on Windows due to missing error message when a process
+ spawning fails.
2008-03-21 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/win32.c
===================================================================
--- trunk/src/win32.c 2008-03-21 18:24:21 UTC (rev 2384)
+++ trunk/src/win32.c 2008-03-21 18:29:25 UTC (rev 2385)
@@ -902,6 +902,8 @@
if (!fSuccess)
{
geany_debug("win32_spawn: Create process failed");
+ if (error != NULL)
+ *error = g_error_new(G_SPAWN_ERROR, G_SPAWN_ERROR_FAILED, "Create process failed");
return FALSE;
}
@@ -1014,7 +1016,7 @@
if (bFuncRetn == 0)
{
gchar *msg = g_win32_error_message(GetLastError());
- geany_debug("CreateChildProcess: CreateProcess failed");
+ geany_debug("CreateChildProcess: CreateProcess failed (%s)", msg);
if (*error != NULL)
*error = g_error_new(G_SPAWN_ERROR, G_SPAWN_ERROR_FAILED, msg);
g_free(msg);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2384
http://geany.svn.sourceforge.net/geany/?rev=2384&view=rev
Author: eht16
Date: 2008-03-21 11:24:21 -0700 (Fri, 21 Mar 2008)
Log Message:
-----------
Add missing colon to "for" snippet for Python and set cursor position
(thanks mamaar on IRC).
Modified Paths:
--------------
trunk/ChangeLog
trunk/data/snippets.conf
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-03-21 17:12:19 UTC (rev 2383)
+++ trunk/ChangeLog 2008-03-21 18:24:21 UTC (rev 2384)
@@ -11,6 +11,9 @@
* tagmanager/tcl.c, src/symbols.c:
Update TCL parser from CTags SVN which adds new symbol types for
classes and methods (closes #1918748).
+ * data/snippets.conf:
+ Add missing colon to "for" snippet for Python and set cursor position
+ (thanks mamaar on IRC).
2008-03-21 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/data/snippets.conf
===================================================================
--- trunk/data/snippets.conf 2008-03-21 17:12:19 UTC (rev 2383)
+++ trunk/data/snippets.conf 2008-03-21 18:24:21 UTC (rev 2384)
@@ -43,7 +43,7 @@
for=for ($i = 0; $i < %cursor%; $i++)%brace_open%\n%brace_close%
[Python]
-for=for i in range()\n\t
+for=for i in xrange(%cursor%):\n\t
[Ferite]
iferr=iferr%block_cursor%fix%block%
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2383
http://geany.svn.sourceforge.net/geany/?rev=2383&view=rev
Author: ntrel
Date: 2008-03-21 10:12:19 -0700 (Fri, 21 Mar 2008)
Log Message:
-----------
Change author to Alexander Rodin, as he did all the design work.
Modified Paths:
--------------
trunk/plugins/classbuilder.c
Modified: trunk/plugins/classbuilder.c
===================================================================
--- trunk/plugins/classbuilder.c 2008-03-21 17:10:08 UTC (rev 2382)
+++ trunk/plugins/classbuilder.c 2008-03-21 17:12:19 UTC (rev 2383)
@@ -40,7 +40,7 @@
VERSION_CHECK(7)
PLUGIN_INFO(_("Class Builder"), _("Creates source files for new class types."), VERSION,
- _("The Geany developer team"))
+ "Alexander Rodin")
enum
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2382
http://geany.svn.sourceforge.net/geany/?rev=2382&view=rev
Author: ntrel
Date: 2008-03-21 10:10:08 -0700 (Fri, 21 Mar 2008)
Log Message:
-----------
Fix asking detect reload question again if the user doesn't respond
within 10 seconds (oops).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/utils.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-03-21 16:59:30 UTC (rev 2381)
+++ trunk/ChangeLog 2008-03-21 17:10:08 UTC (rev 2382)
@@ -25,6 +25,9 @@
* src/dialogs.c, src/document.c:
Replace untitled file header filename after Save As and add to recent
files on Windows too.
+ * src/utils.c:
+ Fix asking detect reload question again if the user doesn't respond
+ within 10 seconds (oops).
2008-03-20 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c 2008-03-21 16:59:30 UTC (rev 2381)
+++ trunk/src/utils.c 2008-03-21 17:10:08 UTC (rev 2382)
@@ -377,7 +377,10 @@
else if (doc_list[idx].mtime < st.st_mtime)
{
if (check_reload(idx))
- doc_list[idx].last_check = t + delay_time; /* Disable checking until after reload */
+ {
+ /* Disable checking until after reload */
+ doc_list[idx].last_check = time(NULL) + delay_time;
+ }
else
doc_list[idx].mtime = st.st_mtime; /* Ignore this change on disk completely */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.