Revision: 2600
http://geany.svn.sourceforge.net/geany/?rev=2600&view=rev
Author: ntrel
Date: 2008-05-19 05:40:35 -0700 (Mon, 19 May 2008)
Log Message:
-----------
Fix doxygen-1.4.6 warnings about undocumented function parameters
when using documentation comments e.g. for TODO.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
trunk/src/msgwindow.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-05-19 12:35:35 UTC (rev 2599)
+++ trunk/ChangeLog 2008-05-19 12:40:35 UTC (rev 2600)
@@ -21,6 +21,9 @@
check for any missing field initializers.
Rename plugin macro p_encoding to p_encodings to follow the core
function encodings_ prefix.
+ * src/msgwindow.c, src/editor.c:
+ Fix doxygen-1.4.6 warnings about undocumented function parameters
+ when using documentation comments e.g. for TODO.
2008-05-18 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2008-05-19 12:35:35 UTC (rev 2599)
+++ trunk/src/editor.c 2008-05-19 12:40:35 UTC (rev 2600)
@@ -2716,7 +2716,7 @@
}
/* set cursor position if there was no selection */
- /** TODO implement selection handling if there was a selection */
+ /* TODO: implement selection handling if there was a selection */
if (first_sel_start == first_sel_end)
sci_set_current_position(doc_list[idx].sci,
pos - (sel_end - sel_start) + strlen(indent), FALSE);
Modified: trunk/src/msgwindow.c
===================================================================
--- trunk/src/msgwindow.c 2008-05-19 12:35:35 UTC (rev 2599)
+++ trunk/src/msgwindow.c 2008-05-19 12:40:35 UTC (rev 2600)
@@ -302,7 +302,7 @@
/* work around a strange problem when adding very long lines(greater than 4000 bytes)
* cut the string to a maximum of 1024 bytes and discard the rest */
- /** TODO find the real cause for the display problem / if it is GtkTreeView file a bug report */
+ /* TODO: find the real cause for the display problem / if it is GtkTreeView file a bug report */
if (strlen(string) > 1024)
tmp = g_strndup(string, 1024);
else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2598
http://geany.svn.sourceforge.net/geany/?rev=2598&view=rev
Author: eht16
Date: 2008-05-18 09:27:08 -0700 (Sun, 18 May 2008)
Log Message:
-----------
Allow loading projects from command line (closes #1961083).
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/geany.1.in
trunk/doc/geany.html
trunk/doc/geany.txt
trunk/src/main.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-05-18 16:08:26 UTC (rev 2597)
+++ trunk/ChangeLog 2008-05-18 16:27:08 UTC (rev 2598)
@@ -4,6 +4,8 @@
Force using tabs for indentation when opening Makefiles.
* plugins/pluginmacros.h:
Define p_editor in the right way, oops.
+ * doc/geany.1.in, doc/geany.html, doc/geany.txt, src/main.c:
+ Allow loading projects from command line (closes #1961083).
2008-05-16 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/doc/geany.1.in
===================================================================
--- trunk/doc/geany.1.in 2008-05-18 16:08:26 UTC (rev 2597)
+++ trunk/doc/geany.1.in 2008-05-18 16:27:08 UTC (rev 2598)
@@ -17,6 +17,9 @@
A space-separated list of filenames. Absolute and relative filenames can be used. Geany also
recognises line and column information when appended to the filename with colons, e.g.
"geany foo.bar:10:5" will open the file foo.bar and place the cursor in line 10 at column 5.
+.IP "\fB\fP \fB\fP " 10
+Projects can also be opened but a project file (*.geany) must be the first non-option argument.
+All additionally given files are ignored.
.IP "\fB\fP \fB\+number\fP " 10
Set initial line
.I number
Modified: trunk/doc/geany.html
===================================================================
--- trunk/doc/geany.html 2008-05-18 16:08:26 UTC (rev 2597)
+++ trunk/doc/geany.html 2008-05-18 16:27:08 UTC (rev 2598)
@@ -6,7 +6,7 @@
<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-05-13" />
+<meta name="date" content="2008-05-14" />
<style type="text/css">
/*
@@ -133,7 +133,7 @@
<br />Nick Treleaven
<br />Frank Lanitz</td></tr>
<tr><th class="docinfo-name">Date:</th>
-<td>2008-05-13</td></tr>
+<td>2008-05-14</td></tr>
<tr><th class="docinfo-name">Version:</th>
<td>0.15</td></tr>
</tbody>
@@ -591,13 +591,17 @@
</tr>
<tr><td><em>none</em></td>
<td>[files ...]</td>
-<td>Open all given files at startup. This option causes
+<td><p class="first">Open all given files at startup. This option causes
Geany to ignore loading stored files from the last
session (if enabled).
Geany also recognises line and column information when
appended to the filename with colons, e.g.
"geany foo.bar:10:5" will open the file foo.bar and
-place the cursor in line 10 at column 5.</td>
+place the cursor in line 10 at column 5.</p>
+<p class="last">Projects can also be opened but a project file (*.geany)
+must be the first non-option argument. All additionally
+given files are ignored.</p>
+</td>
</tr>
</tbody>
</table>
@@ -4107,7 +4111,7 @@
<div class="footer">
<hr class="footer" />
<a class="reference" href="geany.txt">View document source</a>.
-Generated on: 2008-05-14 14:29 UTC.
+Generated on: 2008-05-18 16:23 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-05-18 16:08:26 UTC (rev 2597)
+++ trunk/doc/geany.txt 2008-05-18 16:27:08 UTC (rev 2598)
@@ -243,6 +243,10 @@
appended to the filename with colons, e.g.
"geany foo.bar:10:5" will open the file foo.bar and
place the cursor in line 10 at column 5.
+
+ Projects can also be opened but a project file (\*.geany)
+ must be the first non-option argument. All additionally
+ given files are ignored.
============ ======================= =================================================
Geany supports all generic GTK options, a list is available on the
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2008-05-18 16:08:26 UTC (rev 2597)
+++ trunk/src/main.c 2008-05-18 16:27:08 UTC (rev 2598)
@@ -754,6 +754,7 @@
{
gint idx;
gint config_dir_result;
+ gboolean load_project_from_cl = FALSE;
app = g_new0(GeanyApp, 1);
memset(&main_status, 0, sizeof(GeanyStatus));
@@ -877,13 +878,18 @@
/* load keybinding settings after plugins have added their groups */
keybindings_load_keyfile();
+ load_project_from_cl = (argc > 1) && g_str_has_suffix(argv[1], ".geany");
+
/* load any command line files or session files */
main_status.opening_session_files = TRUE;
- if (! open_cl_files(argc, argv))
+ if (load_project_from_cl || ! open_cl_files(argc, argv))
{
if (prefs.load_session && cl_options.load_session)
{
- load_project_file();
+ if (load_project_from_cl)
+ project_load_file(argv[1]);
+ else
+ load_project_file();
/* load session files into tabs, as they are found in the session_files variable */
configuration_open_files();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2596
http://geany.svn.sourceforge.net/geany/?rev=2596&view=rev
Author: eht16
Date: 2008-05-18 09:03:20 -0700 (Sun, 18 May 2008)
Log Message:
-----------
Force using tabs for indentation when opening Makefiles.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/document.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-05-16 14:35:41 UTC (rev 2595)
+++ trunk/ChangeLog 2008-05-18 16:03:20 UTC (rev 2596)
@@ -1,3 +1,9 @@
+2008-05-18 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/document.c:
+ Force using tabs for indentation when opening Makefiles.
+
+
2008-05-16 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* plugins/pluginmacros.h, plugins/vcdiff.c, src/build.c,
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2008-05-16 14:35:41 UTC (rev 2595)
+++ trunk/src/document.c 2008-05-18 16:03:20 UTC (rev 2596)
@@ -946,6 +946,25 @@
}
+static void set_indentation(gint idx)
+{
+ /* force using tabs for indentation for Makefiles */
+ if (FILETYPE_ID(doc_list[idx].file_type) == GEANY_FILETYPES_MAKE)
+ editor_set_use_tabs(idx, TRUE);
+ else if (! editor_prefs.detect_tab_mode)
+ editor_set_use_tabs(idx, editor_prefs.use_tabs);
+ else
+ { /* detect & set tabs/spaces */
+ gboolean use_tabs = detect_use_tabs(doc_list[idx].sci);
+
+ if (use_tabs != editor_prefs.use_tabs)
+ ui_set_statusbar(TRUE, _("Setting %s indentation mode."),
+ (use_tabs) ? _("Tabs") : _("Spaces"));
+ editor_set_use_tabs(idx, use_tabs);
+ }
+}
+
+
/* To open a new file, set idx to -1; filename should be locale encoded.
* To reload a file, set the idx for the document to be reloaded; filename should be NULL.
* pos is the cursor position, which can be overridden by --line and --column.
@@ -1038,21 +1057,6 @@
sci_set_eol_mode(doc_list[idx].sci, editor_mode);
g_free(filedata.data);
- if (reload)
- editor_set_use_tabs(idx, doc_list[idx].use_tabs); /* resetup sci */
- else
- if (! editor_prefs.detect_tab_mode)
- editor_set_use_tabs(idx, editor_prefs.use_tabs);
- else
- { /* detect & set tabs/spaces */
- gboolean use_tabs = detect_use_tabs(doc_list[idx].sci);
-
- if (use_tabs != editor_prefs.use_tabs)
- ui_set_statusbar(TRUE, _("Setting %s indentation mode."),
- (use_tabs) ? _("Tabs") : _("Spaces"));
- editor_set_use_tabs(idx, use_tabs);
- }
-
sci_set_undo_collection(doc_list[idx].sci, TRUE);
doc_list[idx].mtime = filedata.mtime; /* get the modification time from file and keep it */
@@ -1092,6 +1096,12 @@
/* update taglist, typedef keywords and build menu if necessary */
document_set_filetype(idx, use_ft);
+ /* set indentation settings after setting the filetype */
+ if (reload)
+ editor_set_use_tabs(idx, doc_list[idx].use_tabs); /* resetup sci */
+ else
+ set_indentation(idx);
+
document_set_text_changed(idx); /* also updates tab state */
ui_document_show_hide(idx); /* update the document menu */
@@ -1414,8 +1424,9 @@
return FALSE;
}
- /* replaces tabs by spaces */
- if (file_prefs.replace_tabs) editor_replace_tabs(idx);
+ /* replaces tabs by spaces but only if the current file is not a Makefile */
+ if (file_prefs.replace_tabs && FILETYPE_ID(doc_list[idx].file_type) != GEANY_FILETYPES_MAKE)
+ editor_replace_tabs(idx);
/* strip trailing spaces */
if (file_prefs.strip_trailing_spaces) editor_strip_trailing_spaces(idx);
/* ensure the file has a newline at the end */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2592
http://geany.svn.sourceforge.net/geany/?rev=2592&view=rev
Author: ntrel
Date: 2008-05-16 05:16:03 -0700 (Fri, 16 May 2008)
Log Message:
-----------
Make right clicking on items not lose the current selection, like
the standard GtkFileChooser.
Add separator before the Clear filter toolbar button.
Modified Paths:
--------------
trunk/ChangeLog
trunk/plugins/filebrowser.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-05-16 12:08:39 UTC (rev 2591)
+++ trunk/ChangeLog 2008-05-16 12:16:03 UTC (rev 2592)
@@ -21,6 +21,10 @@
Add Geany prefix for EditorPrefs.
Add Geany prefix for SearchPrefs.
Initialize search_prefs to zero in main.c.
+ * plugins/filebrowser.c:
+ Make right clicking on items not lose the current selection, like
+ the standard GtkFileChooser.
+ Add separator before the Clear filter toolbar button.
2008-05-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/plugins/filebrowser.c
===================================================================
--- trunk/plugins/filebrowser.c 2008-05-16 12:08:39 UTC (rev 2591)
+++ trunk/plugins/filebrowser.c 2008-05-16 12:16:03 UTC (rev 2592)
@@ -593,6 +593,8 @@
{
if (event->button == 1 && event->type == GDK_2BUTTON_PRESS)
on_open_clicked(NULL, NULL);
+ else if (event->button == 3)
+ return TRUE;
return FALSE;
}
@@ -765,6 +767,9 @@
g_signal_connect(G_OBJECT(wid), "clicked", G_CALLBACK(on_current_path), NULL);
gtk_container_add(GTK_CONTAINER(toolbar), wid);
+ wid = (GtkWidget *) gtk_separator_tool_item_new();
+ gtk_container_add(GTK_CONTAINER(toolbar), wid);
+
wid = (GtkWidget *) gtk_tool_button_new_from_stock(GTK_STOCK_CLEAR);
gtk_tool_item_set_tooltip(GTK_TOOL_ITEM(wid), tooltips, _("Clear the filter"), NULL);
g_signal_connect(G_OBJECT(wid), "clicked", G_CALLBACK(on_clear_filter), NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.