Revision: 1208
http://svn.sourceforge.net/geany/?rev=1208&view=rev
Author: eht16
Date: 2007-01-19 10:19:58 -0800 (Fri, 19 Jan 2007)
Log Message:
-----------
Documented GEANY_PROJECT_EXT.
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/geany.docbook
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-19 18:15:13 UTC (rev 1207)
+++ trunk/ChangeLog 2007-01-19 18:19:58 UTC (rev 1208)
@@ -3,6 +3,7 @@
* src/build.c: Use "rm" to delete the run script because unlink is not
available on all systems.
* geany.desktop.in: Added more mimetypes supplied by Nick Schermer.
+ * doc/geany.docbook: Documented GEANY_PROJECT_EXT.
2007-01-18 Enrico Tröger <enrico.troeger(a)uvena.de>
Modified: trunk/doc/geany.docbook
===================================================================
--- trunk/doc/geany.docbook 2007-01-19 18:15:13 UTC (rev 1207)
+++ trunk/doc/geany.docbook 2007-01-19 18:19:58 UTC (rev 1208)
@@ -796,6 +796,13 @@
<entry>10</entry>
</row>
<row>
+ <entry>GEANY_PROJECT_EXT</entry>
+ <entry>The default filename extension for Geany project files.
+ It is used when creating new projects and as filter mask
+ for the project open dialog.</entry>
+ <entry>geany</entry>
+ </row>
+ <row>
<entry>GEANY_STRING_UNTITLED</entry>
<entry>A string used as the default name for new files. Be aware
that the string can be translated,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1207
http://svn.sourceforge.net/geany/?rev=1207&view=rev
Author: eht16
Date: 2007-01-19 10:15:13 -0800 (Fri, 19 Jan 2007)
Log Message:
-----------
Added more mimetypes supplied by Nick Schermer.
Modified Paths:
--------------
trunk/ChangeLog
trunk/geany.desktop.in
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-19 15:45:43 UTC (rev 1206)
+++ trunk/ChangeLog 2007-01-19 18:15:13 UTC (rev 1207)
@@ -2,6 +2,7 @@
* src/build.c: Use "rm" to delete the run script because unlink is not
available on all systems.
+ * geany.desktop.in: Added more mimetypes supplied by Nick Schermer.
2007-01-18 Enrico Tröger <enrico.troeger(a)uvena.de>
Modified: trunk/geany.desktop.in
===================================================================
--- trunk/geany.desktop.in 2007-01-19 15:45:43 UTC (rev 1206)
+++ trunk/geany.desktop.in 2007-01-19 18:15:13 UTC (rev 1207)
@@ -11,7 +11,7 @@
Type=Application
Categories=Application;GTK;Development;IDE;
Encoding=UTF-8
-MimeType=text/plain;
+MimeType=text/plain;text/html;text/css;text/x-chdr;text/x-csrc;text/x-c++src;text/x-java;text/x-dsrc;text/x-sql;application/x-php;
# currently false, changes perhaps in the future
StartupNotify=false
Version=1.1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1206
http://svn.sourceforge.net/geany/?rev=1206&view=rev
Author: eht16
Date: 2007-01-19 07:45:43 -0800 (Fri, 19 Jan 2007)
Log Message:
-----------
Use "rm" to delete the run script because unlink is not available on all systems.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/build.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-18 22:28:21 UTC (rev 1205)
+++ trunk/ChangeLog 2007-01-19 15:45:43 UTC (rev 1206)
@@ -1,3 +1,9 @@
+2007-01-19 Enrico Tröger <enrico.troeger(a)uvena.de>
+
+ * src/build.c: Use "rm" to delete the run script because unlink is not
+ available on all systems.
+
+
2007-01-18 Enrico Tröger <enrico.troeger(a)uvena.de>
* src/project.c: Do not auto complete project filename and base path
Modified: trunk/src/build.c
===================================================================
--- trunk/src/build.c 2007-01-18 22:28:21 UTC (rev 1205)
+++ trunk/src/build.c 2007-01-19 15:45:43 UTC (rev 1206)
@@ -857,7 +857,7 @@
#else
str = g_strdup_printf(
"#!/bin/sh\n\n%s\n\necho \"\n\n------------------\n(program exited with code: $?)\" \
- \n\n%s\nunlink $0\n", cmd, (autoclose) ? "" :
+ \n\n%s\nrm $0\n", cmd, (autoclose) ? "" :
"\necho \"Press return to continue\"\n#to be more compatible with shells like dash\ndummy_var=\"\"\nread dummy_var");
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1205
http://svn.sourceforge.net/geany/?rev=1205&view=rev
Author: eht16
Date: 2007-01-18 14:28:21 -0800 (Thu, 18 Jan 2007)
Log Message:
-----------
Added MimeType entry as suggested by Nick Schermer.
Modified Paths:
--------------
trunk/ChangeLog
trunk/geany.desktop.in
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-18 22:20:30 UTC (rev 1204)
+++ trunk/ChangeLog 2007-01-18 22:28:21 UTC (rev 1205)
@@ -7,9 +7,9 @@
Added GEANY_PROJECT_EXT macro.
* geany.glade, src/interface.c:
Removed unintended keybindings for the project menu items.
+ * geany.desktop.in: Added MimeType entry as suggested by Nick Schermer.
-
2007-01-18 Nick Treleaven <nick.treleaven(a)btinternet.com>
* src/keybindings.c:
Modified: trunk/geany.desktop.in
===================================================================
--- trunk/geany.desktop.in 2007-01-18 22:20:30 UTC (rev 1204)
+++ trunk/geany.desktop.in 2007-01-18 22:28:21 UTC (rev 1205)
@@ -11,6 +11,7 @@
Type=Application
Categories=Application;GTK;Development;IDE;
Encoding=UTF-8
+MimeType=text/plain;
# currently false, changes perhaps in the future
StartupNotify=false
Version=1.1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1202
http://svn.sourceforge.net/geany/?rev=1202&view=rev
Author: eht16
Date: 2007-01-18 10:48:43 -0800 (Thu, 18 Jan 2007)
Log Message:
-----------
Do not auto complete project filename and base path when they were changed manually.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/project.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-18 11:31:37 UTC (rev 1201)
+++ trunk/ChangeLog 2007-01-18 18:48:43 UTC (rev 1202)
@@ -1,3 +1,9 @@
+2007-01-18 Enrico Tröger <enrico.troeger(a)uvena.de>
+
+ * src/project.c: Do not auto complete project filename and base path
+ when they were changed manually.
+
+
2007-01-18 Nick Treleaven <nick.treleaven(a)btinternet.com>
* src/keybindings.c:
Modified: trunk/src/project.c
===================================================================
--- trunk/src/project.c 2007-01-18 11:31:37 UTC (rev 1201)
+++ trunk/src/project.c 2007-01-18 18:48:43 UTC (rev 1202)
@@ -35,6 +35,8 @@
#endif
+static gboolean entries_modified;
+
// simple struct to keep references to the elements of the properties dialog
typedef struct
{
@@ -54,6 +56,7 @@
static void on_folder_open_button_clicked(GtkButton *button, GtkWidget *entry);
static gboolean close_open_project();
static void on_name_entry_changed(GtkEditable *editable, PropertyDialogElements *e);
+static void on_entries_changed(GtkEditable *editable, PropertyDialogElements *e);
void project_new()
@@ -112,6 +115,7 @@
ok_button, GTK_RESPONSE_OK, NULL);
vbox = ui_dialog_vbox_new(GTK_DIALOG(e->dialog));
+ entries_modified = FALSE;
table = gtk_table_new(5, 2, FALSE);
gtk_table_set_row_spacings(GTK_TABLE(table), 5);
@@ -207,6 +211,9 @@
g_signal_connect((gpointer) e->name, "changed", G_CALLBACK(on_name_entry_changed), e);
// run the callback manually to initialise the base_path and file_name fields
on_name_entry_changed(GTK_EDITABLE(e->name), e);
+
+ g_signal_connect((gpointer) e->file_name, "changed", G_CALLBACK(on_entries_changed), e);
+ g_signal_connect((gpointer) e->base_path, "changed", G_CALLBACK(on_entries_changed), e);
}
g_signal_connect((gpointer) e->dialog, "response",
G_CALLBACK(on_properties_dialog_response), e);
@@ -465,18 +472,21 @@
#endif
}
+
// "projects" is part of the default project base path so be carefully when translating
// please avoid special characters and spaces, look at the source for details or ask Frank
#define PROJECT_DIR _("projects")
/* sets the project base path and the project file name according to the project name */
-/// TODO cancel the process once base_path resp. file_name has been changed manually
static void on_name_entry_changed(GtkEditable *editable, PropertyDialogElements *e)
{
gchar *base_path;
gchar *file_name;
gchar *name;
+ if (entries_modified)
+ return;
+
name = gtk_editable_get_chars(editable, 0, -1);
if (name != NULL && strlen(name) > 0)
{
@@ -499,6 +509,14 @@
gtk_entry_set_text(GTK_ENTRY(e->base_path), base_path);
gtk_entry_set_text(GTK_ENTRY(e->file_name), file_name);
+ entries_modified = FALSE;
+
g_free(base_path);
g_free(file_name);
}
+
+
+static void on_entries_changed(GtkEditable *editable, PropertyDialogElements *e)
+{
+ entries_modified = TRUE;
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1199
http://svn.sourceforge.net/geany/?rev=1199&view=rev
Author: ntrel
Date: 2007-01-17 09:42:23 -0800 (Wed, 17 Jan 2007)
Log Message:
-----------
Make Go to Tag Definition work for all tags except forward
declarations and externs.
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/geany.docbook
trunk/src/callbacks.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-16 15:57:00 UTC (rev 1198)
+++ trunk/ChangeLog 2007-01-17 17:42:23 UTC (rev 1199)
@@ -1,3 +1,10 @@
+2007-01-17 Nick Treleaven <nick.treleaven(a)btinternet.com>
+
+ * src/callbacks.c, doc/geany.docbook:
+ Make Go to Tag Definition work for all tags except forward
+ declarations and externs.
+
+
2007-01-16 Enrico Tröger <enrico.troeger(a)uvena.de>
* src/vte.c: Use g_shell_quote to avoid problems with special
Modified: trunk/doc/geany.docbook
===================================================================
--- trunk/doc/geany.docbook 2007-01-16 15:57:00 UTC (rev 1198)
+++ trunk/doc/geany.docbook 2007-01-17 17:42:23 UTC (rev 1199)
@@ -576,11 +576,11 @@
see the entry for '\n' in <xref linkend="regexp"/>.
</para>
</section>
- <section>
+ <section id="go_to_tag">
<title>Go to tag definition</title>
<para>
- If the current word is the name of a function and the file containing the
- function definition (a.k.a. function body) is open, Go to tag definition will
+ If the current word is the name of a tag definition (like a function body)
+ and the file containing the tag definition is open, this command will
switch to that file and go to the corresponding line number.
The current word is either taken from the word nearest the edit cursor, or
the word underneath the popup menu click position when the popup menu is
@@ -590,8 +590,9 @@
<section>
<title>Go to tag declaration</title>
<para>
- Like Go to tag definition, but for a forward function declaration (a.k.a.
- function prototype) instead of a function definition.
+ Like Go to tag definition, but for a forward declaration such as a
+ function prototype or <literal>extern</literal> declaration instead
+ of a function body.
</para>
</section>
<section>
@@ -1400,7 +1401,7 @@
<entry>Jump to the definition of the current word (near the
keyboard cursor). If the definition cannot be found (e.g. the
relevant file is not open) <application>Geany</application>
- will beep and do nothing. Used for function definitions.
+ will beep and do nothing. See <xref linkend="go_to_tag"/>.
</entry>
</row>
<row>
@@ -1408,7 +1409,7 @@
<entry>Jump to the declaration of the current word (near the
keyboard cursor). If the declaration cannot be found (e.g. the
relevant file is not open) <application>Geany</application>
- will beep and do nothing. Used for function prototypes.
+ will beep and do nothing. See <xref linkend="go_to_tag"/>.
</entry>
</row>
</tbody>
Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c 2007-01-16 15:57:00 UTC (rev 1198)
+++ trunk/src/callbacks.c 2007-01-17 17:42:23 UTC (rev 1199)
@@ -1227,13 +1227,15 @@
on_goto_tag_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
+ const gint forward_types = tm_tag_prototype_t | tm_tag_externvar_t;
gint type;
TMTag *tmtag;
+ // goto tag definition: all except prototypes / forward declarations / externs
if (menuitem == GTK_MENU_ITEM(lookup_widget(app->popup_menu, "goto_tag_definition1")))
- type = tm_tag_function_t;
+ type = tm_tag_max_t - forward_types;
else
- type = tm_tag_prototype_t;
+ type = forward_types;
tmtag = symbols_find_in_workspace(editor_info.current_word, type);
if (tmtag != NULL)
@@ -1245,10 +1247,10 @@
}
// if we are here, there was no match and we are beeping ;-)
utils_beep();
- if (type == tm_tag_prototype_t)
- ui_set_statusbar(_("Declaration of \"%s()\" not found"), editor_info.current_word);
+ if (type == forward_types)
+ ui_set_statusbar(_("Forward declaration \"%s\" not found."), editor_info.current_word);
else
- ui_set_statusbar(_("Definition of \"%s()\" not found"), editor_info.current_word);
+ ui_set_statusbar(_("Definition of \"%s\" not found."), editor_info.current_word);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.