Revision: 785
http://svn.sourceforge.net/geany/?rev=785&view=rev
Author: ntrel
Date: 2006-09-03 12:19:56 -0700 (Sun, 03 Sep 2006)
Log Message:
-----------
Open a new instance without loading session files if socket already exists and no filenames are specified on the command-line
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/main.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-09-03 13:30:12 UTC (rev 784)
+++ trunk/ChangeLog 2006-09-03 19:19:56 UTC (rev 785)
@@ -1,3 +1,10 @@
+2006-09-03 Nick Treleaven <nick.treleaven(a)btinternet.com>
+
+ * src/main.c: Open a new instance without loading session files if
+ socket already exists and no filenames are specified
+ on the command-line.
+
+
2006-09-03 Enrico Tröger <enrico.troeger(a)uvena.de>
* src/utils.c: Save All button is also active when only one file is
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2006-09-03 13:30:12 UTC (rev 784)
+++ trunk/src/main.c 2006-09-03 19:19:56 UTC (rev 785)
@@ -96,6 +96,7 @@
#endif
static gboolean debug_mode = FALSE;
+static gboolean load_session = TRUE;
static gboolean ignore_global_tags = FALSE;
static gboolean no_msgwin = FALSE;
static gboolean show_version = FALSE;
@@ -508,14 +509,20 @@
socket_info.lock_socket = socket_init(argc, argv);
if (socket_info.lock_socket < 0)
{
- g_free(app->configdir);
- g_free(app->datadir);
- g_free(app->docdir);
- g_free(app);
- return 0;
+ // Socket exists
+ if (argc > 1) // filenames were sent to first instance, so quit
+ {
+ g_free(app->configdir);
+ g_free(app->datadir);
+ g_free(app->docdir);
+ g_free(app);
+ return 0;
+ }
+ // Start a new instance if no command line strings were passed
+ socket_info.ignore_socket = TRUE;
+ load_session = FALSE;
}
}
-
#endif
gtk_init(&argc, &argv);
@@ -603,7 +610,7 @@
}
}
}
- else if (app->pref_main_load_session)
+ else if (app->pref_main_load_session && load_session)
{
if (! configuration_open_files())
{
@@ -702,13 +709,13 @@
#endif
// remote command mode, here we have another running instance and want to use it
- geany_debug("using running instance of Geany");
-
if (argc > 1)
{
gint i;
gchar *filename;
+ geany_debug("using running instance of Geany");
+
socket_fd_write_all(sock, "open\n", 5);
for(i = 1; i < argc && argv[i] != NULL; i++)
@@ -956,13 +963,12 @@
else
geany_debug("got data from socket, but it does not look like a filename");
}
+ gtk_window_deiconify(GTK_WINDOW(app->window));
+ gtk_window_present(GTK_WINDOW(app->window));
}
socket_fd_close(sock);
- gtk_window_deiconify(GTK_WINDOW(app->window));
- gtk_window_present(GTK_WINDOW(app->window));
-
return TRUE;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 784
http://svn.sourceforge.net/geany/?rev=784&view=rev
Author: eht16
Date: 2006-09-03 06:30:12 -0700 (Sun, 03 Sep 2006)
Log Message:
-----------
Save All button is also active when only one file is changed(improves usability).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/utils.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-09-02 23:28:34 UTC (rev 783)
+++ trunk/ChangeLog 2006-09-03 13:30:12 UTC (rev 784)
@@ -1,3 +1,9 @@
+2006-09-03 Enrico Tröger <enrico.troeger(a)uvena.de>
+
+ * src/utils.c: Save All button is also active when only one file is
+ changed(improves usability).
+
+
2006-09-02 Enrico Tröger <enrico.troeger(a)uvena.de>
* src/document.c, src/search.c:
Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c 2006-09-02 23:28:34 UTC (rev 783)
+++ trunk/src/utils.c 2006-09-03 13:30:12 UTC (rev 784)
@@ -249,7 +249,7 @@
void utils_save_buttons_toggle(gboolean enable)
{
guint i;
- guint dirty_tabs = 0;
+ gboolean dirty_tabs = FALSE;
gtk_widget_set_sensitive(app->save_buttons[0], enable);
gtk_widget_set_sensitive(app->save_buttons[1], enable);
@@ -257,14 +257,14 @@
// 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 tabs where changes were made and if they are more than one,
+ // count the amount of files where changes were made and if there are some,
// we need the save all button / item
- if (doc_list[i].is_valid && doc_list[i].changed)
- dirty_tabs++;
+ if (! dirty_tabs && doc_list[i].is_valid && doc_list[i].changed)
+ dirty_tabs = TRUE;
}
- gtk_widget_set_sensitive(app->save_buttons[2], (dirty_tabs > 1) ? TRUE : FALSE);
- gtk_widget_set_sensitive(app->save_buttons[3], (dirty_tabs > 1) ? TRUE : FALSE);
+ gtk_widget_set_sensitive(app->save_buttons[2], (dirty_tabs > 0) ? TRUE : FALSE);
+ gtk_widget_set_sensitive(app->save_buttons[3], (dirty_tabs > 0) ? TRUE : FALSE);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 782
http://svn.sourceforge.net/geany/?rev=782&view=rev
Author: ntrel
Date: 2006-09-02 14:04:47 -0700 (Sat, 02 Sep 2006)
Log Message:
-----------
Use parse_file_line() for grep and compiler error messages.
Add error message support for D, also for the GDC frontend
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/msgwindow.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-09-02 20:49:11 UTC (rev 781)
+++ trunk/ChangeLog 2006-09-02 21:04:47 UTC (rev 782)
@@ -3,6 +3,9 @@
* src/utils.c, src/sci_cb.c, src/main.c:
Fixed C89 variable declaration and two sign comparison warnings.
* src/document.c, src/document.h: Add document_get_current().
+ * src/msgwindow.c:
+ Use parse_file_line() for grep and compiler error messages.
+ Add error message support for D, also for the GDC frontend.
2006-09-01 Enrico Tröger <enrico.troeger(a)uvena.de>
Modified: trunk/src/msgwindow.c
===================================================================
--- trunk/src/msgwindow.c 2006-09-02 20:49:11 UTC (rev 781)
+++ trunk/src/msgwindow.c 2006-09-02 21:04:47 UTC (rev 782)
@@ -41,6 +41,16 @@
guint file_type_id;
} build_info = {NULL, GEANY_FILETYPES_ALL};
+// used for parse_file_line
+typedef struct
+{
+ const gchar *string; // line data
+ const gchar *dir; // working directory when string was generated
+ const gchar *pattern; // pattern to split the error message into some fields
+ guint min_fields; // used to detect errors after parsing
+ guint line_idx; // idx of the field where the line is
+ gint file_idx; // idx of the field where the filename is or -1
+} ParseData;
static GdkColor dark = {0, 58832, 58832, 58832};
static GdkColor white = {0, 65535, 65535, 65535};
@@ -324,65 +334,122 @@
* relevant file with the error in *filename.
* *line will be -1 if no error was found in string.
* *filename must be freed unless it is NULL. */
-void msgwin_parse_compiler_error_line(const gchar *string, gchar **filename, gint *line)
+static void parse_file_line(ParseData *data, gchar **filename, gint *line)
{
gchar *end = NULL;
gchar **fields;
- gchar *pattern; // pattern to split the error message into some fields
- guint field_min_len; // used to detect errors after parsing
- guint field_idx_line; // idx of the field where the line is
- guint field_idx_file; // idx of the field where the filename is
guint skip_dot_slash = 0; // number of characters to skip at the beginning of the filename
*filename = NULL;
*line = -1;
+ g_return_if_fail(data->dir != NULL && data->string != NULL);
+
+ fields = g_strsplit_set(data->string, data->pattern, data->min_fields);
+
+ // parse the line
+ if (g_strv_length(fields) < data->min_fields)
+ {
+ g_strfreev(fields);
+ return;
+ }
+
+ *line = strtol(fields[data->line_idx], &end, 10);
+
+ // if the line could not be read, line is 0 and an error occurred, so we leave
+ if (fields[data->line_idx] == end)
+ {
+ g_strfreev(fields);
+ return;
+ }
+
+ // let's stop here if there is no filename in the error message
+ if (data->file_idx == -1)
+ {
+ // we have no filename in the error message, so take the current one and hope it's correct
+ document *doc = document_get_current();
+ if (doc != NULL)
+ *filename = g_strdup(doc->file_name);
+ g_strfreev(fields);
+ return;
+ }
+
+ // skip some characters at the beginning of the filename, at the moment only "./"
+ // can be extended if other "trash" is known
+ if (strncmp(fields[data->file_idx], "./", 2) == 0) skip_dot_slash = 2;
+
+ // get the build directory to get the path to look for other files
+ if (! utils_is_absolute_path(fields[data->file_idx]))
+ *filename = g_strconcat(data->dir, G_DIR_SEPARATOR_S,
+ fields[data->file_idx] + skip_dot_slash, NULL);
+ else
+ *filename = g_strdup(fields[data->file_idx]);
+
+ g_strfreev(fields);
+}
+
+
+/* try to parse the file and line number where the error occured described in string
+ * and when something useful is found, it stores the line number in *line and the
+ * relevant file with the error in *filename.
+ * *line will be -1 if no error was found in string.
+ * *filename must be freed unless it is NULL. */
+void msgwin_parse_compiler_error_line(const gchar *string, gchar **filename, gint *line)
+{
+ ParseData data = {string, build_info.dir, NULL, 0, 0, 0};
+
+ *filename = NULL;
+ *line = -1;
+
g_return_if_fail(build_info.dir != NULL);
if (string == NULL) return;
switch (build_info.file_type_id)
{
+ case GEANY_FILETYPES_ALL:
+ {
+ return;
+ }
// only gcc is supported, I don't know any other C(++) compilers and their error messages
case GEANY_FILETYPES_C:
case GEANY_FILETYPES_CPP:
case GEANY_FILETYPES_RUBY:
case GEANY_FILETYPES_JAVA:
- case GEANY_FILETYPES_MAKE: // Assume makefile is building C-like code
{
// empty.h:4: Warnung: type defaults to `int' in declaration of `foo'
// empty.c:21: error: conflicting types for `foo'
- pattern = ":";
- field_min_len = 4;
- field_idx_line = 1;
- field_idx_file = 0;
+ data.pattern = ":";
+ data.min_fields = 4;
+ data.line_idx = 1;
+ data.file_idx = 0;
break;
}
case GEANY_FILETYPES_FORTRAN:
case GEANY_FILETYPES_LATEX:
{
// ./kommtechnik_2b.tex:18: Emergency stop.
- pattern = ":";
- field_min_len = 3;
- field_idx_line = 1;
- field_idx_file = 0;
+ data.pattern = ":";
+ data.min_fields = 3;
+ data.line_idx = 1;
+ data.file_idx = 0;
break;
}
case GEANY_FILETYPES_PHP:
{
// Parse error: parse error, unexpected T_CASE in brace_bug.php on line 3
- pattern = " ";
- field_min_len = 11;
- field_idx_line = 10;
- field_idx_file = 7;
+ data.pattern = " ";
+ data.min_fields = 11;
+ data.line_idx = 10;
+ data.file_idx = 7;
break;
}
case GEANY_FILETYPES_PERL:
{
// syntax error at test.pl line 7, near "{
- pattern = " ";
- field_min_len = 6;
- field_idx_line = 5;
- field_idx_file = 3;
+ data.pattern = " ";
+ data.min_fields = 6;
+ data.line_idx = 5;
+ data.file_idx = 3;
break;
}
// the error output of python and tcl equals
@@ -391,28 +458,43 @@
{
// File "HyperArch.py", line 37, in ?
// (file "clrdial.tcl" line 12)
- pattern = " \"";
- field_min_len = 6;
- field_idx_line = 5;
- field_idx_file = 2;
+ data.pattern = " \"";
+ data.min_fields = 6;
+ data.line_idx = 5;
+ data.file_idx = 2;
break;
}
case GEANY_FILETYPES_PASCAL:
{
// bandit.pas(149,3) Fatal: Syntax error, ";" expected but "ELSE" found
- pattern = "(";
- field_min_len = 2;
- field_idx_line = 1;
- field_idx_file = 0;
+ data.pattern = "(";
+ data.min_fields = 2;
+ data.line_idx = 1;
+ data.file_idx = 0;
break;
}
case GEANY_FILETYPES_D:
{
+ // GNU D compiler front-end, gdc
+ // gantry.d:18: variable gantry.main.c reference to auto class must be auto
+ // warning - gantry.d:20: statement is not reachable
+ // Digital Mars dmd compiler
// warning - pi.d(118): implicit conversion of expression (digit) of type int ...
- pattern = " (";
- field_min_len = 4;
- field_idx_line = 3;
- field_idx_file = 2;
+ // gantry.d(18): variable gantry.main.c reference to auto class must be auto
+ if (strncmp(string, "warning - ", 10) == 0)
+ {
+ data.pattern = " (:";
+ data.min_fields = 4;
+ data.line_idx = 3;
+ data.file_idx = 2;
+ }
+ else
+ {
+ data.pattern = "(:";
+ data.min_fields = 2;
+ data.line_idx = 1;
+ data.file_idx = 0;
+ }
break;
}
case GEANY_FILETYPES_FERITE:
@@ -421,71 +503,43 @@
// Error: Compile Error: on line 24, in /test/class.fe
if (strncmp(string, "Error: Compile Error", 20) == 0)
{
- pattern = " ";
- field_min_len = 8;
- field_idx_line = 5;
- field_idx_file = 7;
+ data.pattern = " ";
+ data.min_fields = 8;
+ data.line_idx = 5;
+ data.file_idx = 7;
}
else
{
- pattern = " \"";
- field_min_len = 10;
- field_idx_line = 5;
- field_idx_file = 8;
+ data.pattern = " \"";
+ data.min_fields = 10;
+ data.line_idx = 5;
+ data.file_idx = 8;
}
break;
}
case GEANY_FILETYPES_HTML:
{
// line 78 column 7 - Warning: <table> missing '>' for end of tag
- pattern = " ";
- field_min_len = 4;
- field_idx_line = 1;
- field_idx_file = -1;
+ data.pattern = " ";
+ data.min_fields = 4;
+ data.line_idx = 1;
+ data.file_idx = -1;
break;
}
- default: return;
+ case GEANY_FILETYPES_MAKE: // Assume makefile is building with gcc
+ default: // The default is a GNU gcc type error
+ {
+ // gantry.d:6: variable gantry.main.c reference to auto class must be auto
+ data.pattern = ":";
+ data.min_fields = 3;
+ data.line_idx = 1;
+ data.file_idx = 0;
+ break;
+ }
}
- fields = g_strsplit_set(string, pattern, field_min_len);
-
- // parse the line
- if (g_strv_length(fields) < field_min_len)
- {
- g_strfreev(fields);
- return;
- }
-
- *line = strtol(fields[field_idx_line], &end, 10);
-
- // if the line could not be read, line is 0 and an error occurred, so we leave
- if (fields[field_idx_line] == end)
- {
- g_strfreev(fields);
- return;
- }
-
- // let's stop here if there is no filename in the error message
- if (field_idx_file == -1)
- {
- // we have no filename in the error message, so take the current one and hope it's correct
- *filename = g_strdup(doc_list[document_get_cur_idx()].file_name);
- g_strfreev(fields);
- return;
- }
-
- // skip some characters at the beginning of the filename, at the moment only "./"
- // can be extended if other "trash" is known
- if (strncmp(fields[field_idx_file], "./", 2) == 0) skip_dot_slash = 2;
-
- // get the build directory to get the path to look for other files
- if (! utils_is_absolute_path(fields[field_idx_file]))
- *filename = g_strconcat(build_info.dir, G_DIR_SEPARATOR_S,
- fields[field_idx_file] + skip_dot_slash, NULL);
- else
- *filename = g_strdup(fields[field_idx_file]);
-
- g_strfreev(fields);
+ if (data.pattern != NULL)
+ parse_file_line(&data, filename, line);
}
@@ -524,7 +578,6 @@
}
-// Taken from utils_parse_compiler_error_line, could refactor both (keep get_cur_idx).
/* Try to parse the file and line number for string and when something useful is
* found, store the line number in *line and the relevant file with the error in
* *filename.
@@ -532,14 +585,7 @@
* *filename must be freed unless NULL. */
static void msgwin_parse_grep_line(const gchar *string, gchar **filename, gint *line)
{
- gchar *end = NULL;
- gchar **fields;
- gchar *pattern; // pattern to split the error message into some fields
- guint field_min_len; // used to detect errors after parsing
- guint field_idx_line; // idx of the field where the line is
- guint field_idx_file; // idx of the field where the filename is
- guint skip_dot_slash = 0; // number of characters to skip at the beginning of the filename
- gint cur_idx;
+ ParseData data;
*filename = NULL;
*line = -1;
@@ -548,42 +594,14 @@
if (string == NULL) return;
// conflict:3:conflicting types for `foo'
- pattern = ":";
- field_min_len = 3;
- field_idx_line = 1;
- field_idx_file = 0;
+ data.string = string;
+ data.dir = msgwindow.find_in_files_dir;
+ data.pattern = ":";
+ data.min_fields = 3;
+ data.line_idx = 1;
+ data.file_idx = 0;
- fields = g_strsplit_set(string, pattern, field_min_len);
-
- // parse the line
- if (g_strv_length(fields) < field_min_len)
- {
- g_strfreev(fields);
- return;
- }
-
- *line = strtol(fields[field_idx_line], &end, 10);
-
- // if the line could not be read, line is 0 and an error occurred, so we leave
- if (fields[field_idx_line] == end)
- {
- g_strfreev(fields);
- return;
- }
-
- // skip some characters at the beginning of the filename, at the moment only "./"
- // can be extended if other "trash" is known
- if (strncmp(fields[field_idx_file], "./", 2) == 0) skip_dot_slash = 2;
-
- // get the basename of the built file to get the path to look for other files
- cur_idx = document_get_cur_idx();
- if (cur_idx >= 0 && doc_list[cur_idx].is_valid)
- {
- *filename = g_strconcat(msgwindow.find_in_files_dir, G_DIR_SEPARATOR_S,
- fields[field_idx_file] + skip_dot_slash, NULL);
- }
-
- g_strfreev(fields);
+ parse_file_line(&data, filename, line);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 781
http://svn.sourceforge.net/geany/?rev=781&view=rev
Author: ntrel
Date: 2006-09-02 13:49:11 -0700 (Sat, 02 Sep 2006)
Log Message:
-----------
Add document_get_current()
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/document.c
trunk/src/document.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-09-02 20:30:35 UTC (rev 780)
+++ trunk/ChangeLog 2006-09-02 20:49:11 UTC (rev 781)
@@ -2,6 +2,7 @@
* src/utils.c, src/sci_cb.c, src/main.c:
Fixed C89 variable declaration and two sign comparison warnings.
+ * src/document.c, src/document.h: Add document_get_current().
2006-09-01 Enrico Tröger <enrico.troeger(a)uvena.de>
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2006-09-02 20:30:35 UTC (rev 780)
+++ trunk/src/document.c 2006-09-02 20:49:11 UTC (rev 781)
@@ -118,7 +118,7 @@
/* returns the index of the current notebook page in the document list */
-gint document_get_cur_idx(void)
+gint document_get_cur_idx()
{
gint cur_page = gtk_notebook_get_current_page(GTK_NOTEBOOK(app->notebook));
ScintillaObject *sci = (ScintillaObject*)gtk_notebook_get_nth_page(GTK_NOTEBOOK(app->notebook), cur_page);
@@ -130,10 +130,19 @@
}
+/* returns NULL if no documents are open */
+document *document_get_current()
+{
+ gint idx = document_get_cur_idx();
+
+ return DOC_IDX_VALID(idx) ? &doc_list[idx] : NULL;
+}
+
+
/* returns the next free place(i.e. index) in the document list
* If there is for any reason no free place, -1 is returned
*/
-gint document_get_new_idx(void)
+gint document_get_new_idx()
{
guint i;
@@ -178,7 +187,7 @@
/* sets in all document structs the flag is_valid to FALSE and initializes some members to NULL,
* to mark it uninitialized. The flag is_valid is set to TRUE in document_create_new_sci(). */
-void document_init_doclist(void)
+void document_init_doclist()
{
gint i;
Modified: trunk/src/document.h
===================================================================
--- trunk/src/document.h 2006-09-02 20:30:35 UTC (rev 780)
+++ trunk/src/document.h 2006-09-02 20:49:11 UTC (rev 781)
@@ -34,7 +34,8 @@
#include "geany.h"
#include "filetypes.h"
-#define VALID_DOC_IDX(idx) \
+
+#define DOC_IDX_VALID(idx) \
((idx) >= 0 && (idx) < GEANY_MAX_OPEN_FILES && doc_list[idx].is_valid)
@@ -79,16 +80,19 @@
/* returns the index of the current notebook page in the document list */
-gint document_get_cur_idx(void);
+gint document_get_cur_idx();
+/* returns NULL if no documents are open */
+document *document_get_current();
+
/* returns the index of the given notebook page in the document list */
gint document_get_n_idx(guint);
/* returns the next free place(i.e. index) in the document list
* If there is for any reason no free place, -1 is returned */
-gint document_get_new_idx(void);
+gint document_get_new_idx();
/* changes the color of the tab text according to the status */
@@ -100,7 +104,7 @@
/* sets in all document structs the flag is_valid to FALSE and initializes some members to NULL,
* to mark it uninitialized. The flag is_valid is set to TRUE in document_create_new_sci(). */
-void document_init_doclist(void);
+void document_init_doclist();
// Apply just the prefs that can change in the Preferences dialog
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 780
http://svn.sourceforge.net/geany/?rev=780&view=rev
Author: ntrel
Date: 2006-09-02 13:30:35 -0700 (Sat, 02 Sep 2006)
Log Message:
-----------
Fixed C89 variable declaration and two sign comparison warnings
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/main.c
trunk/src/sci_cb.c
trunk/src/utils.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-09-01 17:07:49 UTC (rev 779)
+++ trunk/ChangeLog 2006-09-02 20:30:35 UTC (rev 780)
@@ -1,3 +1,9 @@
+2006-09-02 Nick Treleaven <nick.treleaven(a)btinternet.com>
+
+ * src/utils.c, src/sci_cb.c, src/main.c:
+ Fixed C89 variable declaration and two sign comparison warnings.
+
+
2006-09-01 Enrico Tröger <enrico.troeger(a)uvena.de>
* src/document.c, src/dialogs.c, src/prefs.c, src/callbacks.c,
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2006-09-01 17:07:49 UTC (rev 779)
+++ trunk/src/main.c 2006-09-02 20:30:35 UTC (rev 780)
@@ -1017,13 +1017,13 @@
{
struct timeval timeout;
fd_set fds;
+ gint flags;
timeout.tv_sec = 60;
timeout.tv_usec = 0;
#ifdef G_OS_UNIX
// checking for non-blocking mode
- gint flags;
flags = fcntl(fd, F_GETFL, 0);
if (flags < 0)
Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c 2006-09-01 17:07:49 UTC (rev 779)
+++ trunk/src/sci_cb.c 2006-09-02 20:30:35 UTC (rev 780)
@@ -648,7 +648,7 @@
if (strncmp(buf + start, "\\begin", 6) == 0)
{
gchar full_cmd[15];
- gint j = 0;
+ guint j = 0;
// take also "\begingroup" (or whatever there can be) and append "\endgroup" and so on.
i = start + 6;
Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c 2006-09-01 17:07:49 UTC (rev 779)
+++ trunk/src/utils.c 2006-09-02 20:30:35 UTC (rev 780)
@@ -255,7 +255,7 @@
gtk_widget_set_sensitive(app->save_buttons[1], enable);
// save all menu item and tool button
- for (i = 0; i < gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)); i++)
+ for (i = 0; i < (guint) gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)); i++)
{
// count the amount of tabs where changes were made and if they are more than one,
// we need the save all button / item
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 778
http://svn.sourceforge.net/geany/?rev=778&view=rev
Author: eht16
Date: 2006-09-01 08:48:56 -0700 (Fri, 01 Sep 2006)
Log Message:
-----------
Fixed some typos.
Modified Paths:
--------------
trunk/ChangeLog
trunk/geany.glade
trunk/src/callbacks.c
trunk/src/dialogs.c
trunk/src/document.c
trunk/src/interface.c
trunk/src/prefs.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-09-01 11:22:47 UTC (rev 777)
+++ trunk/ChangeLog 2006-09-01 15:48:56 UTC (rev 778)
@@ -1,6 +1,12 @@
+2006-09-01 Enrico Tröger <enrico.troeger(a)uvena.de>
+
+ * src/document.c, src/dialogs.c, src/prefs.c, src/callbacks.c,
+ src/interface.c, geany.glade: Fixed some typos.
+
+
2006-09-01 Frank Lanitz <frank(a)frank.uvena.de>
- * configure.in, po/vi.po
+ * configure.in, po/vi.po:
Added Vietnamese translation (Thanks Clytie Siddall).
* THANKS, src/about.c: Added translator credits.
Modified: trunk/geany.glade
===================================================================
--- trunk/geany.glade 2006-09-01 11:22:47 UTC (rev 777)
+++ trunk/geany.glade 2006-09-01 15:48:56 UTC (rev 778)
@@ -461,7 +461,7 @@
<child>
<widget class="GtkMenuItem" id="insert_file_header1">
<property name="visible">True</property>
- <property name="tooltip" translatable="yes">Inserts a few information at the beginning of the file</property>
+ <property name="tooltip" translatable="yes">Inserts a file header at the beginning of the file</property>
<property name="label" translatable="yes">Insert file header</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_comments_fileheader_activate" last_modification_time="Mon, 03 Oct 2005 17:33:08 GMT"/>
@@ -2277,7 +2277,7 @@
<property name="use_underline">True</property>
<child internal-child="image">
- <widget class="GtkImage" id="image1051">
+ <widget class="GtkImage" id="image1054">
<property name="visible">True</property>
<property name="stock">gtk-add</property>
<property name="icon_size">1</property>
@@ -2309,7 +2309,7 @@
<property name="use_underline">True</property>
<child internal-child="image">
- <widget class="GtkImage" id="image1052">
+ <widget class="GtkImage" id="image1055">
<property name="visible">True</property>
<property name="stock">gtk-add</property>
<property name="icon_size">1</property>
@@ -2336,7 +2336,7 @@
<child>
<widget class="GtkMenuItem" id="insert_file_header2">
<property name="visible">True</property>
- <property name="tooltip" translatable="yes">Inserts a few information at the beginning of the file</property>
+ <property name="tooltip" translatable="yes">Inserts a file header at the beginning of the file</property>
<property name="label" translatable="yes">Insert file header</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_comments_fileheader_activate" last_modification_time="Mon, 03 Oct 2005 17:33:08 GMT"/>
@@ -2505,7 +2505,7 @@
<signal name="activate" handler="on_find_usage1_activate" last_modification_time="Fri, 27 May 2005 21:55:12 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1053">
+ <widget class="GtkImage" id="image1056">
<property name="visible">True</property>
<property name="stock">gtk-find</property>
<property name="icon_size">1</property>
@@ -2551,7 +2551,7 @@
<signal name="activate" handler="on_go_to_line_activate" last_modification_time="Sat, 16 Jul 2005 11:20:32 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1054">
+ <widget class="GtkImage" id="image1057">
<property name="visible">True</property>
<property name="stock">gtk-jump-to</property>
<property name="icon_size">1</property>
@@ -2722,7 +2722,7 @@
<child>
<widget class="GtkCheckButton" id="check_switch_pages">
<property name="visible">True</property>
- <property name="tooltip" translatable="yes">Switch to the status message tab(in the notebook window at the bottom) if a new status message arrive.</property>
+ <property name="tooltip" translatable="yes">Switch to the status message tab (in the notebook window at the bottom) if a new status message arrives.</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Switch to status message list at new message</property>
<property name="use_underline">True</property>
@@ -3480,7 +3480,7 @@
<child>
<widget class="GtkRadioButton" id="radio_long_line_line">
<property name="visible">True</property>
- <property name="tooltip" translatable="yes">Prints a vertical line in the editor window at the given cursor position(see below).</property>
+ <property name="tooltip" translatable="yes">Prints a vertical line in the editor window at the given cursor position (see below).</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Line</property>
<property name="use_underline">True</property>
@@ -3500,7 +3500,7 @@
<child>
<widget class="GtkRadioButton" id="radio_long_line_background">
<property name="visible">True</property>
- <property name="tooltip" translatable="yes">The background colour of characters after the given cursor position(see below) changed to the colour set below. (This is recommended if you use proportional fonts)</property>
+ <property name="tooltip" translatable="yes">The background colour of characters after the given cursor position (see below) changed to the colour set below. (This is recommended if you use proportional fonts)</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Background</property>
<property name="use_underline">True</property>
@@ -4869,7 +4869,7 @@
<child>
<widget class="GtkCheckButton" id="check_xmltag">
<property name="visible">True</property>
- <property name="tooltip" translatable="yes">Automatic completion of open XML tags(includes HTML tags)</property>
+ <property name="tooltip" translatable="yes">Automatic completion of open XML tags (includes HTML tags)</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">XML tag auto completion</property>
<property name="use_underline">True</property>
@@ -4960,7 +4960,7 @@
<child>
<widget class="GtkSpinButton" id="spin_autocheight">
<property name="visible">True</property>
- <property name="tooltip" translatable="yes">Number of rows to display when the auto completion list is shown.</property>
+ <property name="tooltip" translatable="yes">Number of rows to display in the auto completion list.</property>
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
<property name="digits">0</property>
@@ -5356,7 +5356,7 @@
<child>
<widget class="GtkEntry" id="entry_print">
<property name="visible">True</property>
- <property name="tooltip" translatable="yes">Path to the command for printing files(use %f for the filename).</property>
+ <property name="tooltip" translatable="yes">Path to the command for printing files (use %f for the filename).</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
<property name="visibility">True</property>
@@ -5528,7 +5528,7 @@
<widget class="GtkLabel" id="label120">
<property name="visible">True</property>
<property name="label" translatable="yes">Specify here information you want to use in templates.
-See documentation if you don't know, how templates work.</property>
+See documentation if you don't know how templates work.</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c 2006-09-01 11:22:47 UTC (rev 777)
+++ trunk/src/callbacks.c 2006-09-01 15:48:56 UTC (rev 778)
@@ -2230,7 +2230,7 @@
if (utils_strcmp("", app->custom_date_format)) app->custom_date_format = g_strdup("%d.%m.%Y");
dialogs_show_input(_("Custom date format"),
- _("Enter here a custom date and time format which should be inserted. You can use all conversion specifiers which can be used with the ANSI C strftime function. See \"man strftime\" for more information."),
+ _("Enter here a custom date and time format. You can use any conversion specifiers which can be used with the ANSI C strftime function. See \"man strftime\" for more information."),
app->custom_date_format,
G_CALLBACK(on_custom_date_dialog_response),
G_CALLBACK(on_custom_date_entry_activate));
Modified: trunk/src/dialogs.c
===================================================================
--- trunk/src/dialogs.c 2006-09-01 11:22:47 UTC (rev 777)
+++ trunk/src/dialogs.c 2006-09-01 15:48:56 UTC (rev 778)
@@ -1054,7 +1054,8 @@
if (idx == -1 || ! doc_list[idx].is_valid || doc_list[idx].file_name == NULL)
{
- dialogs_show_error(_("An error occurred or file information could not be retrieved(e.g. from a new file)."));
+ dialogs_show_error(
+ _("An error occurred or file information could not be retrieved (e.g. from a new file)."));
return;
}
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2006-09-01 11:22:47 UTC (rev 777)
+++ trunk/src/document.c 2006-09-01 15:48:56 UTC (rev 778)
@@ -1280,7 +1280,6 @@
/* simple file print */
void document_print(gint idx)
{
- /// TODO test under Win32
gchar *cmdline;
if (idx == -1 || ! doc_list[idx].is_valid || doc_list[idx].file_name == NULL) return;
@@ -1297,7 +1296,7 @@
rc = system(cmdline);
if (rc != 0)
{
- dialogs_show_error(_("Printing of \"%s\" failed(return code: %d)."),
+ dialogs_show_error(_("Printing of \"%s\" failed (return code: %d)."),
doc_list[idx].file_name, rc);
}
else
Modified: trunk/src/interface.c
===================================================================
--- trunk/src/interface.c 2006-09-01 11:22:47 UTC (rev 777)
+++ trunk/src/interface.c 2006-09-01 15:48:56 UTC (rev 778)
@@ -465,7 +465,7 @@
insert_file_header1 = gtk_menu_item_new_with_mnemonic (_("Insert file header"));
gtk_widget_show (insert_file_header1);
gtk_container_add (GTK_CONTAINER (add_comments1_menu), insert_file_header1);
- gtk_tooltips_set_tip (tooltips, insert_file_header1, _("Inserts a few information at the beginning of the file"), NULL);
+ gtk_tooltips_set_tip (tooltips, insert_file_header1, _("Inserts a file header at the beginning of the file"), NULL);
insert_function_description2 = gtk_menu_item_new_with_mnemonic (_("Insert function description"));
gtk_widget_show (insert_function_description2);
@@ -1685,11 +1685,11 @@
GtkWidget *normal_size2;
GtkWidget *separator6;
GtkWidget *insert_include1;
- GtkWidget *image1051;
+ GtkWidget *image1054;
GtkWidget *insert_include1_menu;
GtkWidget *invisible3;
GtkWidget *comments;
- GtkWidget *image1052;
+ GtkWidget *image1055;
GtkWidget *comments_menu;
GtkWidget *add_changelog_entry2;
GtkWidget *insert_file_header2;
@@ -1713,12 +1713,12 @@
GtkWidget *menu_decrease_indent2;
GtkWidget *separator7;
GtkWidget *find_usage1;
- GtkWidget *image1053;
+ GtkWidget *image1056;
GtkWidget *goto_tag_definition1;
GtkWidget *goto_tag_declaration1;
GtkWidget *separator15;
GtkWidget *go_to_line;
- GtkWidget *image1054;
+ GtkWidget *image1057;
GtkAccelGroup *accel_group;
GtkTooltips *tooltips;
@@ -1792,9 +1792,9 @@
gtk_widget_show (insert_include1);
gtk_container_add (GTK_CONTAINER (edit_menu1), insert_include1);
- image1051 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image1051);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (insert_include1), image1051);
+ image1054 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image1054);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (insert_include1), image1054);
insert_include1_menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (insert_include1), insert_include1_menu);
@@ -1806,9 +1806,9 @@
gtk_widget_show (comments);
gtk_container_add (GTK_CONTAINER (edit_menu1), comments);
- image1052 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image1052);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (comments), image1052);
+ image1055 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image1055);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (comments), image1055);
comments_menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (comments), comments_menu);
@@ -1821,7 +1821,7 @@
insert_file_header2 = gtk_menu_item_new_with_mnemonic (_("Insert file header"));
gtk_widget_show (insert_file_header2);
gtk_container_add (GTK_CONTAINER (comments_menu), insert_file_header2);
- gtk_tooltips_set_tip (tooltips, insert_file_header2, _("Inserts a few information at the beginning of the file"), NULL);
+ gtk_tooltips_set_tip (tooltips, insert_file_header2, _("Inserts a file header at the beginning of the file"), NULL);
insert_function_description1 = gtk_menu_item_new_with_mnemonic (_("Insert function description"));
gtk_widget_show (insert_function_description1);
@@ -1907,9 +1907,9 @@
gtk_widget_show (find_usage1);
gtk_container_add (GTK_CONTAINER (edit_menu1), find_usage1);
- image1053 = gtk_image_new_from_stock ("gtk-find", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image1053);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (find_usage1), image1053);
+ image1056 = gtk_image_new_from_stock ("gtk-find", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image1056);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (find_usage1), image1056);
goto_tag_definition1 = gtk_menu_item_new_with_mnemonic (_("Go to tag definition"));
gtk_widget_show (goto_tag_definition1);
@@ -1929,9 +1929,9 @@
gtk_container_add (GTK_CONTAINER (edit_menu1), go_to_line);
gtk_tooltips_set_tip (tooltips, go_to_line, _("Goto to the entered line"), NULL);
- image1054 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_MENU);
- gtk_widget_show (image1054);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (go_to_line), image1054);
+ image1057 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_MENU);
+ gtk_widget_show (image1057);
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (go_to_line), image1057);
g_signal_connect ((gpointer) undo1, "activate",
G_CALLBACK (on_undo1_activate),
@@ -2029,11 +2029,11 @@
GLADE_HOOKUP_OBJECT (edit_menu1, normal_size2, "normal_size2");
GLADE_HOOKUP_OBJECT (edit_menu1, separator6, "separator6");
GLADE_HOOKUP_OBJECT (edit_menu1, insert_include1, "insert_include1");
- GLADE_HOOKUP_OBJECT (edit_menu1, image1051, "image1051");
+ GLADE_HOOKUP_OBJECT (edit_menu1, image1054, "image1054");
GLADE_HOOKUP_OBJECT (edit_menu1, insert_include1_menu, "insert_include1_menu");
GLADE_HOOKUP_OBJECT (edit_menu1, invisible3, "invisible3");
GLADE_HOOKUP_OBJECT (edit_menu1, comments, "comments");
- GLADE_HOOKUP_OBJECT (edit_menu1, image1052, "image1052");
+ GLADE_HOOKUP_OBJECT (edit_menu1, image1055, "image1055");
GLADE_HOOKUP_OBJECT (edit_menu1, comments_menu, "comments_menu");
GLADE_HOOKUP_OBJECT (edit_menu1, add_changelog_entry2, "add_changelog_entry2");
GLADE_HOOKUP_OBJECT (edit_menu1, insert_file_header2, "insert_file_header2");
@@ -2057,12 +2057,12 @@
GLADE_HOOKUP_OBJECT (edit_menu1, menu_decrease_indent2, "menu_decrease_indent2");
GLADE_HOOKUP_OBJECT (edit_menu1, separator7, "separator7");
GLADE_HOOKUP_OBJECT (edit_menu1, find_usage1, "find_usage1");
- GLADE_HOOKUP_OBJECT (edit_menu1, image1053, "image1053");
+ GLADE_HOOKUP_OBJECT (edit_menu1, image1056, "image1056");
GLADE_HOOKUP_OBJECT (edit_menu1, goto_tag_definition1, "goto_tag_definition1");
GLADE_HOOKUP_OBJECT (edit_menu1, goto_tag_declaration1, "goto_tag_declaration1");
GLADE_HOOKUP_OBJECT (edit_menu1, separator15, "separator15");
GLADE_HOOKUP_OBJECT (edit_menu1, go_to_line, "go_to_line");
- GLADE_HOOKUP_OBJECT (edit_menu1, image1054, "image1054");
+ GLADE_HOOKUP_OBJECT (edit_menu1, image1057, "image1057");
GLADE_HOOKUP_OBJECT_NO_REF (edit_menu1, tooltips, "tooltips");
gtk_menu_set_accel_group (GTK_MENU (edit_menu1), accel_group);
@@ -2318,7 +2318,7 @@
check_switch_pages = gtk_check_button_new_with_mnemonic (_("Switch to status message list at new message"));
gtk_widget_show (check_switch_pages);
gtk_box_pack_start (GTK_BOX (vbox4), check_switch_pages, FALSE, FALSE, 0);
- gtk_tooltips_set_tip (tooltips, check_switch_pages, _("Switch to the status message tab(in the notebook window at the bottom) if a new status message arrive."), NULL);
+ gtk_tooltips_set_tip (tooltips, check_switch_pages, _("Switch to the status message tab (in the notebook window at the bottom) if a new status message arrives."), NULL);
gtk_button_set_focus_on_click (GTK_BUTTON (check_switch_pages), FALSE);
check_vte = gtk_check_button_new_with_mnemonic (_("Load virtual terminal emulation at startup"));
@@ -2545,14 +2545,14 @@
radio_long_line_line = gtk_radio_button_new_with_mnemonic (NULL, _("Line"));
gtk_widget_show (radio_long_line_line);
gtk_box_pack_start (GTK_BOX (hbox5), radio_long_line_line, FALSE, FALSE, 0);
- gtk_tooltips_set_tip (tooltips, radio_long_line_line, _("Prints a vertical line in the editor window at the given cursor position(see below)."), NULL);
+ gtk_tooltips_set_tip (tooltips, radio_long_line_line, _("Prints a vertical line in the editor window at the given cursor position (see below)."), NULL);
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radio_long_line_line), radio_long_line_line_group);
radio_long_line_line_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radio_long_line_line));
radio_long_line_background = gtk_radio_button_new_with_mnemonic (NULL, _("Background"));
gtk_widget_show (radio_long_line_background);
gtk_box_pack_start (GTK_BOX (hbox5), radio_long_line_background, FALSE, FALSE, 0);
- gtk_tooltips_set_tip (tooltips, radio_long_line_background, _("The background colour of characters after the given cursor position(see below) changed to the colour set below. (This is recommended if you use proportional fonts)"), NULL);
+ gtk_tooltips_set_tip (tooltips, radio_long_line_background, _("The background colour of characters after the given cursor position (see below) changed to the colour set below. (This is recommended if you use proportional fonts)"), NULL);
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radio_long_line_background), radio_long_line_line_group);
radio_long_line_line_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radio_long_line_background));
@@ -2998,7 +2998,7 @@
check_xmltag = gtk_check_button_new_with_mnemonic (_("XML tag auto completion"));
gtk_widget_show (check_xmltag);
gtk_box_pack_start (GTK_BOX (vbox17), check_xmltag, FALSE, FALSE, 0);
- gtk_tooltips_set_tip (tooltips, check_xmltag, _("Automatic completion of open XML tags(includes HTML tags)"), NULL);
+ gtk_tooltips_set_tip (tooltips, check_xmltag, _("Automatic completion of open XML tags (includes HTML tags)"), NULL);
gtk_button_set_focus_on_click (GTK_BUTTON (check_xmltag), FALSE);
check_folding = gtk_check_button_new_with_mnemonic (_("Enable folding"));
@@ -3025,7 +3025,7 @@
spin_autocheight = gtk_spin_button_new (GTK_ADJUSTMENT (spin_autocheight_adj), 1, 0);
gtk_widget_show (spin_autocheight);
gtk_box_pack_start (GTK_BOX (hbox6), spin_autocheight, FALSE, TRUE, 0);
- gtk_tooltips_set_tip (tooltips, spin_autocheight, _("Number of rows to display when the auto completion list is shown."), NULL);
+ gtk_tooltips_set_tip (tooltips, spin_autocheight, _("Number of rows to display in the auto completion list."), NULL);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin_autocheight), TRUE);
label172 = gtk_label_new (_("<b>Features</b>"));
@@ -3136,7 +3136,7 @@
gtk_table_attach (GTK_TABLE (table1), entry_print, 1, 2, 3, 4,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- gtk_tooltips_set_tip (tooltips, entry_print, _("Path to the command for printing files(use %f for the filename)."), NULL);
+ gtk_tooltips_set_tip (tooltips, entry_print, _("Path to the command for printing files (use %f for the filename)."), NULL);
button_print = gtk_button_new ();
gtk_widget_show (button_print);
@@ -3179,7 +3179,7 @@
gtk_widget_show (vbox9);
gtk_container_add (GTK_CONTAINER (notebook2), vbox9);
- label120 = gtk_label_new (_("Specify here information you want to use in templates.\nSee documentation if you don't know, how templates work."));
+ label120 = gtk_label_new (_("Specify here information you want to use in templates.\nSee documentation if you don't know how templates work."));
gtk_widget_show (label120);
gtk_box_pack_start (GTK_BOX (vbox9), label120, FALSE, FALSE, 0);
gtk_misc_set_padding (GTK_MISC (label120), 0, 6);
Modified: trunk/src/prefs.c
===================================================================
--- trunk/src/prefs.c 2006-09-01 11:22:47 UTC (rev 777)
+++ trunk/src/prefs.c 2006-09-01 15:48:56 UTC (rev 778)
@@ -1061,7 +1061,7 @@
gtk_table_attach(GTK_TABLE(table), check_ignore_menu_key, 1, 2, 8, 9,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
- gtk_tooltips_set_tip(tooltips, check_ignore_menu_key, _("This option disables the keybinding to popup the menu bar(default is F10). Disabling it can be useful if you use for example the Midnight Commander within the VTE."), NULL);
+ gtk_tooltips_set_tip(tooltips, check_ignore_menu_key, _("This option disables the keybinding to popup the menu bar (default is F10). Disabling it can be useful if you use, for example, Midnight Commander within the VTE."), NULL);
gtk_button_set_focus_on_click(GTK_BUTTON(check_ignore_menu_key), FALSE);
check_follow_path = gtk_check_button_new_with_mnemonic(_("Follow the path of the current file"));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.