SF.net SVN: geany: [1716] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Tue Jul 17 14:52:57 UTC 2007


Revision: 1716
          http://geany.svn.sourceforge.net/geany/?rev=1716&view=rev
Author:   ntrel
Date:     2007-07-17 07:52:57 -0700 (Tue, 17 Jul 2007)

Log Message:
-----------
Move font & file open/save dialog callbacks to dialogs.c.
Add document_clone() in document.c (for Save As open in new tab).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/callbacks.c
    trunk/src/callbacks.h
    trunk/src/dialogs.c
    trunk/src/document.c
    trunk/src/document.h

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-07-17 12:37:48 UTC (rev 1715)
+++ trunk/ChangeLog	2007-07-17 14:52:57 UTC (rev 1716)
@@ -1,3 +1,11 @@
+2007-07-17  Nick Treleaven  <nick.treleaven at btinternet.com>
+
+ * src/dialogs.c, src/callbacks.c, src/callbacks.h, src/document.c,
+   src/document.h:
+   Move font & file open/save dialog callbacks to dialogs.c.
+   Add document_clone() in document.c (for Save As open in new tab).
+
+
 2007-07-17  Enrico Tröger  <enrico.troeger at uvena.de>
 
  * src/editor.c:

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2007-07-17 12:37:48 UTC (rev 1715)
+++ trunk/src/callbacks.c	2007-07-17 14:52:57 UTC (rev 1716)
@@ -781,238 +781,6 @@
 
 
 /*
- * open dialog callbacks
-*/
-
-// file open dialog, opened
-void
-on_file_open_dialog_response           (GtkDialog *dialog,
-                                        gint response,
-                                        gpointer user_data)
-{
-	gtk_widget_hide(app->open_filesel);
-
-	if (response == GTK_RESPONSE_ACCEPT || response == GTK_RESPONSE_APPLY)
-	{
-		GSList *filelist;
-		gint filetype_idx = gtk_combo_box_get_active(GTK_COMBO_BOX(
-						lookup_widget(GTK_WIDGET(dialog), "filetype_combo")));
-		gint encoding_idx = gtk_combo_box_get_active(GTK_COMBO_BOX(
-						lookup_widget(GTK_WIDGET(dialog), "encoding_combo")));
-		filetype *ft = NULL;
-		gchar *charset = NULL;
-		gboolean ro = (response == GTK_RESPONSE_APPLY);	// View clicked
-
-		if (filetype_idx >= 0 && filetype_idx < GEANY_FILETYPES_ALL) ft = filetypes[filetype_idx];
-		if (encoding_idx >= 0 && encoding_idx < GEANY_ENCODINGS_MAX)
-			charset = encodings[encoding_idx].charset;
-
-		filelist = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(app->open_filesel));
-		if (filelist != NULL)
-		{
-			document_open_files(filelist, ro, ft, charset);
-			g_slist_foreach(filelist, (GFunc) g_free, NULL);	// free filenames
-		}
-		g_slist_free(filelist);
-	}
-}
-
-
-// callback for the text entry for typing in filename
-void
-on_file_open_entry_activate            (GtkEntry        *entry,
-                                        gpointer         user_data)
-{
-	gchar *locale_filename = utils_get_locale_from_utf8(gtk_entry_get_text(entry));
-
-	if (g_file_test(locale_filename, G_FILE_TEST_IS_DIR))
-	{
-		gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(app->open_filesel), locale_filename);
-	}
-	else if (g_file_test(locale_filename, G_FILE_TEST_IS_REGULAR | G_FILE_TEST_IS_SYMLINK))
-	{
-		gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(app->open_filesel), locale_filename);
-		on_file_open_dialog_response(GTK_DIALOG(app->open_filesel), GTK_RESPONSE_ACCEPT, NULL);
-	}
-
-	g_free(locale_filename);
-}
-
-
-void
-on_file_open_selection_changed         (GtkFileChooser  *filechooser,
-                                        gpointer         user_data)
-{
-	gchar *filename = gtk_file_chooser_get_filename(filechooser);
-	gboolean is_on = gtk_file_chooser_get_show_hidden(filechooser);
-
-	if (filename)
-	{
-		// try to get the UTF-8 equivalent for the filename, fallback to filename if error
-		gchar *utf8_filename = utils_get_utf8_from_locale(filename);
-
-		gtk_entry_set_text(GTK_ENTRY(lookup_widget(
-				GTK_WIDGET(filechooser), "file_entry")), utf8_filename);
-		g_free(utf8_filename);
-		g_free(filename);
-	}
-
-	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(
-			lookup_widget(GTK_WIDGET(filechooser), "check_hidden")), is_on);
-}
-
-
-static gint
-clone_document(gint old_idx, const gchar *utf8_filename)
-{
-	// create a new file and copy file content and properties
-	gint len, idx;
-	gchar *data;
-
-	// use old file type (or maybe NULL for auto detect would be better?)
-	idx = document_new_file(utf8_filename, doc_list[old_idx].file_type);
-
-	sci_set_undo_collection(doc_list[idx].sci, FALSE); // avoid creation of an undo action
-	sci_empty_undo_buffer(doc_list[idx].sci);
-
-	len = sci_get_length(doc_list[old_idx].sci) + 1;
-	data = (gchar*) g_malloc(len);
-	sci_get_text(doc_list[old_idx].sci, len, data);
-
-	sci_set_text(doc_list[idx].sci, data);
-
-	// copy file properties
-	doc_list[idx].line_breaking = doc_list[old_idx].line_breaking;
-	doc_list[idx].readonly = doc_list[old_idx].readonly;
-	doc_list[idx].has_bom = doc_list[old_idx].has_bom;
-	document_set_encoding(idx, doc_list[old_idx].encoding);
-	sci_set_lines_wrapped(doc_list[idx].sci, doc_list[idx].line_breaking);
-	sci_set_readonly(doc_list[idx].sci, doc_list[idx].readonly);
-	sci_set_undo_collection(doc_list[idx].sci, TRUE);
-
-	ui_document_show_hide(idx);
-
-	g_free(data);
-	return idx;
-}
-
-
-/*
- * save dialog callbacks
- */
-void
-on_file_save_dialog_response           (GtkDialog *dialog,
-                                        gint response,
-                                        gpointer user_data)
-{
-	gboolean rename_file = FALSE;
-
-	switch (response)
-	{
-		case GTK_RESPONSE_APPLY:
-			rename_file = TRUE;
-			// fall through
-
-		case GTK_RESPONSE_ACCEPT:
-		{
-			gint idx = document_get_cur_idx();
-			gchar *new_filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(app->save_filesel));
-			gchar *utf8_filename;
-			gboolean open_new_tab = gtk_toggle_button_get_active(
-					GTK_TOGGLE_BUTTON(lookup_widget(app->save_filesel, "check_open_new_tab")));
-
-#ifdef G_OS_WIN32
-			utf8_filename = g_strdup(new_filename);
-#else
-			utf8_filename = utils_get_utf8_from_locale(new_filename);
-#endif
-			// check if file exists and ask whether to overwrite or not
-			if (g_file_test(new_filename, G_FILE_TEST_EXISTS))
-			{
-				if (dialogs_show_question(
-					_("The file '%s' already exists. Do you want to overwrite it?"),
-					utf8_filename) == FALSE)
-					return;
-			}
-
-			if (open_new_tab)
-			{	// "open" the saved file in a new tab
-				idx = clone_document(idx, utf8_filename);
-				g_free(utf8_filename);
-			}
-			else
-			{
-				if (doc_list[idx].file_name != NULL)
-				{
-					if (rename_file)
-					{	// delete the previous file name
-#ifdef G_OS_WIN32
-						g_unlink(doc_list[idx].file_name);
-#else
-						gchar *old_filename = utils_get_locale_from_utf8(doc_list[idx].file_name);
-
-						g_unlink(old_filename);
-						g_free(old_filename);
-#endif
-					}
-					// create a new tm_source_file object otherwise tagmanager won't work correctly
-					tm_workspace_remove_object(doc_list[idx].tm_file, TRUE);
-					doc_list[idx].tm_file = NULL;
-					g_free(doc_list[idx].file_name);
-				}
-				doc_list[idx].file_name = utf8_filename;
-			}
-			utils_replace_filename(idx);
-			document_save_file(idx, TRUE);
-
-			if (! open_new_tab)
-				build_menu_update(idx);
-
-			// finally add current file to recent files menu
-			ui_add_recent_file(doc_list[idx].file_name);
-
-			g_free(new_filename);
-		}
-	}
-	gtk_widget_hide(app->save_filesel);
-}
-
-
-/*
- * font dialog callbacks
- */
-void
-on_font_ok_button_clicked              (GtkButton       *button,
-                                        gpointer         user_data)
-{
-	// We do the same thing as apply, but we close the dialog after.
-	on_font_apply_button_clicked(button, NULL);
-	gtk_widget_hide(app->open_fontsel);
-}
-
-
-void
-on_font_apply_button_clicked           (GtkButton       *button,
-                                        gpointer         user_data)
-{
-	gchar *fontname;
-
-	fontname = gtk_font_selection_dialog_get_font_name(
-		GTK_FONT_SELECTION_DIALOG(app->open_fontsel));
-	ui_set_editor_font(fontname);
-	g_free(fontname);
-}
-
-
-void
-on_font_cancel_button_clicked         (GtkButton       *button,
-                                        gpointer         user_data)
-{
-	gtk_widget_hide(app->open_fontsel);
-}
-
-
-/*
  * color dialog callbacks
  */
 void
@@ -1763,16 +1531,6 @@
 
 
 void
-on_file_open_check_hidden_toggled      (GtkToggleButton *togglebutton,
-                                        gpointer         user_data)
-{
-	gboolean is_on = gtk_toggle_button_get_active(togglebutton);
-
-	gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(app->open_filesel), is_on);
-}
-
-
-void
 on_file_properties_activate            (GtkMenuItem     *menuitem,
                                         gpointer         user_data)
 {

Modified: trunk/src/callbacks.h
===================================================================
--- trunk/src/callbacks.h	2007-07-17 12:37:48 UTC (rev 1715)
+++ trunk/src/callbacks.h	2007-07-17 14:52:57 UTC (rev 1716)
@@ -89,22 +89,12 @@
                                         gpointer         user_data);
 
 void
-on_file_open_dialog_response           (GtkDialog *dialog,
-                                        gint response,
-                                        gpointer user_data);
-
-void
 on_notebook1_switch_page               (GtkNotebook     *notebook,
                                         GtkNotebookPage *page,
                                         guint            page_num,
                                         gpointer         user_data);
 
 void
-on_file_save_dialog_response           (GtkDialog *dialog,
-                                        gint response,
-                                        gpointer user_data);
-
-void
 on_color_ok_button_clicked             (GtkButton       *button,
                                         gpointer         user_data);
 
@@ -113,10 +103,6 @@
                                         gpointer         user_data);
 
 void
-on_font_cancel_button_clicked          (GtkButton       *button,
-                                        gpointer         user_data);
-
-void
 on_save_all1_activate                  (GtkMenuItem     *menuitem,
                                         gpointer         user_data);
 
@@ -124,14 +110,6 @@
 on_close1_activate                     (GtkMenuItem     *menuitem,
                                         gpointer         user_data);
 
-void
-on_font_ok_button_clicked              (GtkButton       *button,
-                                        gpointer         user_data);
-
-void
-on_font_apply_button_clicked           (GtkButton       *button,
-                                        gpointer         user_data);
-
 gboolean
 on_close_all1_activate                 (GtkMenuItem     *menuitem,
                                         gpointer         user_data);
@@ -391,14 +369,6 @@
                                         gpointer         user_data);
 
 void
-on_file_open_selection_changed         (GtkFileChooser  *filechooser,
-                                        gpointer         user_data);
-
-void
-on_file_open_entry_activate            (GtkEntry        *entry,
-                                        gpointer         user_data);
-
-void
 on_toolbar_large_icons1_activate       (GtkMenuItem     *menuitem,
                                         gpointer         user_data);
 
@@ -411,10 +381,6 @@
                                         gpointer         user_data);
 
 void
-on_file_open_check_hidden_toggled      (GtkToggleButton *togglebutton,
-                                        gpointer         user_data);
-
-void
 on_tv_notebook_switch_page             (GtkNotebook     *notebook,
                                         GtkNotebookPage *page,
                                         guint            page_num,

Modified: trunk/src/dialogs.c
===================================================================
--- trunk/src/dialogs.c	2007-07-17 12:37:48 UTC (rev 1715)
+++ trunk/src/dialogs.c	2007-07-17 14:52:57 UTC (rev 1716)
@@ -52,14 +52,109 @@
 #include "ui_utils.h"
 #include "keybindings.h"
 #include "encodings.h"
+#include "build.h"
 
 
 #if ! GEANY_USE_WIN32_DIALOG
 static GtkWidget *add_file_open_extra_widget();
-static void on_save_as_new_tab_toggled(GtkToggleButton *togglebutton, gpointer user_data);
 #endif
 
 
+#if ! GEANY_USE_WIN32_DIALOG
+static void
+on_file_open_dialog_response           (GtkDialog *dialog,
+                                        gint response,
+                                        gpointer user_data)
+{
+	gtk_widget_hide(app->open_filesel);
+
+	if (response == GTK_RESPONSE_ACCEPT || response == GTK_RESPONSE_APPLY)
+	{
+		GSList *filelist;
+		gint filetype_idx = gtk_combo_box_get_active(GTK_COMBO_BOX(
+						lookup_widget(GTK_WIDGET(dialog), "filetype_combo")));
+		gint encoding_idx = gtk_combo_box_get_active(GTK_COMBO_BOX(
+						lookup_widget(GTK_WIDGET(dialog), "encoding_combo")));
+		filetype *ft = NULL;
+		gchar *charset = NULL;
+		gboolean ro = (response == GTK_RESPONSE_APPLY);	// View clicked
+
+		if (filetype_idx >= 0 && filetype_idx < GEANY_FILETYPES_ALL) ft = filetypes[filetype_idx];
+		if (encoding_idx >= 0 && encoding_idx < GEANY_ENCODINGS_MAX)
+			charset = encodings[encoding_idx].charset;
+
+		filelist = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(app->open_filesel));
+		if (filelist != NULL)
+		{
+			document_open_files(filelist, ro, ft, charset);
+			g_slist_foreach(filelist, (GFunc) g_free, NULL);	// free filenames
+		}
+		g_slist_free(filelist);
+	}
+}
+#endif
+
+
+#if ! GEANY_USE_WIN32_DIALOG
+// callback for the text entry for typing in filename
+static void
+on_file_open_entry_activate            (GtkEntry        *entry,
+                                        gpointer         user_data)
+{
+	gchar *locale_filename = utils_get_locale_from_utf8(gtk_entry_get_text(entry));
+
+	if (g_file_test(locale_filename, G_FILE_TEST_IS_DIR))
+	{
+		gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(app->open_filesel), locale_filename);
+	}
+	else if (g_file_test(locale_filename, G_FILE_TEST_IS_REGULAR | G_FILE_TEST_IS_SYMLINK))
+	{
+		gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(app->open_filesel), locale_filename);
+		on_file_open_dialog_response(GTK_DIALOG(app->open_filesel), GTK_RESPONSE_ACCEPT, NULL);
+	}
+
+	g_free(locale_filename);
+}
+#endif
+
+
+#if ! GEANY_USE_WIN32_DIALOG
+static void
+on_file_open_selection_changed         (GtkFileChooser  *filechooser,
+                                        gpointer         user_data)
+{
+	gchar *filename = gtk_file_chooser_get_filename(filechooser);
+	gboolean is_on = gtk_file_chooser_get_show_hidden(filechooser);
+
+	if (filename)
+	{
+		// try to get the UTF-8 equivalent for the filename, fallback to filename if error
+		gchar *utf8_filename = utils_get_utf8_from_locale(filename);
+
+		gtk_entry_set_text(GTK_ENTRY(lookup_widget(
+				GTK_WIDGET(filechooser), "file_entry")), utf8_filename);
+		g_free(utf8_filename);
+		g_free(filename);
+	}
+
+	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(
+			lookup_widget(GTK_WIDGET(filechooser), "check_hidden")), is_on);
+}
+#endif
+
+
+#if ! GEANY_USE_WIN32_DIALOG
+static void
+on_file_open_check_hidden_toggled      (GtkToggleButton *togglebutton,
+                                        gpointer         user_data)
+{
+	gboolean is_on = gtk_toggle_button_get_active(togglebutton);
+
+	gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(app->open_filesel), is_on);
+}
+#endif
+
+
 /* This shows the file selection dialog to open a file. */
 void dialogs_show_open_file ()
 {
@@ -172,7 +267,7 @@
 }
 
 
-#ifndef USE_WIN32_DIALOG
+#if ! GEANY_USE_WIN32_DIALOG
 static GtkWidget *add_file_open_extra_widget()
 {
 	GtkWidget *vbox, *table, *file_entry, *check_hidden;
@@ -265,6 +360,95 @@
 #endif
 
 
+#if ! GEANY_USE_WIN32_DIALOG
+static void on_save_as_new_tab_toggled(GtkToggleButton *togglebutton, gpointer user_data)
+{
+	gtk_widget_set_sensitive(GTK_WIDGET(user_data),
+		! gtk_toggle_button_get_active(togglebutton));
+}
+#endif
+
+
+#if ! GEANY_USE_WIN32_DIALOG
+static void
+on_file_save_dialog_response           (GtkDialog *dialog,
+                                        gint response,
+                                        gpointer user_data)
+{
+	gboolean rename_file = FALSE;
+
+	switch (response)
+	{
+		case GTK_RESPONSE_APPLY:
+			rename_file = TRUE;
+			// fall through
+
+		case GTK_RESPONSE_ACCEPT:
+		{
+			gint idx = document_get_cur_idx();
+			gchar *new_filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(app->save_filesel));
+			gchar *utf8_filename;
+			gboolean open_new_tab = gtk_toggle_button_get_active(
+					GTK_TOGGLE_BUTTON(lookup_widget(app->save_filesel, "check_open_new_tab")));
+
+#ifdef G_OS_WIN32
+			utf8_filename = g_strdup(new_filename);
+#else
+			utf8_filename = utils_get_utf8_from_locale(new_filename);
+#endif
+			// check if file exists and ask whether to overwrite or not
+			if (g_file_test(new_filename, G_FILE_TEST_EXISTS))
+			{
+				if (dialogs_show_question(
+					_("The file '%s' already exists. Do you want to overwrite it?"),
+					utf8_filename) == FALSE)
+					return;
+			}
+
+			if (open_new_tab)
+			{	// "open" the saved file in a new tab
+				idx = document_clone(idx, utf8_filename);
+				g_free(utf8_filename);
+			}
+			else
+			{
+				if (doc_list[idx].file_name != NULL)
+				{
+					if (rename_file)
+					{	// delete the previous file name
+#ifdef G_OS_WIN32
+						g_unlink(doc_list[idx].file_name);
+#else
+						gchar *old_filename = utils_get_locale_from_utf8(doc_list[idx].file_name);
+
+						g_unlink(old_filename);
+						g_free(old_filename);
+#endif
+					}
+					// create a new tm_source_file object otherwise tagmanager won't work correctly
+					tm_workspace_remove_object(doc_list[idx].tm_file, TRUE);
+					doc_list[idx].tm_file = NULL;
+					g_free(doc_list[idx].file_name);
+				}
+				doc_list[idx].file_name = utf8_filename;
+			}
+			utils_replace_filename(idx);
+			document_save_file(idx, TRUE);
+
+			if (! open_new_tab)
+				build_menu_update(idx);
+
+			// finally add current file to recent files menu
+			ui_add_recent_file(doc_list[idx].file_name);
+
+			g_free(new_filename);
+		}
+	}
+	gtk_widget_hide(app->save_filesel);
+}
+#endif
+
+
 /* This shows the file selection dialog to save a file, returning TRUE if
  * the file was saved. */
 gboolean dialogs_show_save_as()
@@ -468,6 +652,37 @@
 }
 
 
+static void
+on_font_apply_button_clicked           (GtkButton       *button,
+                                        gpointer         user_data)
+{
+	gchar *fontname;
+
+	fontname = gtk_font_selection_dialog_get_font_name(
+		GTK_FONT_SELECTION_DIALOG(app->open_fontsel));
+	ui_set_editor_font(fontname);
+	g_free(fontname);
+}
+
+
+static void
+on_font_ok_button_clicked              (GtkButton       *button,
+                                        gpointer         user_data)
+{
+	// We do the same thing as apply, but we close the dialog after.
+	on_font_apply_button_clicked(button, NULL);
+	gtk_widget_hide(app->open_fontsel);
+}
+
+
+static void
+on_font_cancel_button_clicked         (GtkButton       *button,
+                                        gpointer         user_data)
+{
+	gtk_widget_hide(app->open_fontsel);
+}
+
+
 /* This shows the font selection dialog to choose a font. */
 void dialogs_show_open_font()
 {
@@ -1149,8 +1364,3 @@
 }
 
 
-static void on_save_as_new_tab_toggled(GtkToggleButton *togglebutton, gpointer user_data)
-{
-	gtk_widget_set_sensitive(GTK_WIDGET(user_data),
-		! gtk_toggle_button_get_active(togglebutton));
-}

Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c	2007-07-17 12:37:48 UTC (rev 1715)
+++ trunk/src/document.c	2007-07-17 14:52:57 UTC (rev 1716)
@@ -2308,3 +2308,39 @@
 	else
 		sci_add_text(doc_list[idx].sci, colour);
 }
+
+
+gint document_clone(gint old_idx, const gchar *utf8_filename)
+{
+	// create a new file and copy file content and properties
+	gint len, idx;
+	gchar *data;
+
+	// use old file type (or maybe NULL for auto detect would be better?)
+	idx = document_new_file(utf8_filename, doc_list[old_idx].file_type);
+
+	sci_set_undo_collection(doc_list[idx].sci, FALSE); // avoid creation of an undo action
+	sci_empty_undo_buffer(doc_list[idx].sci);
+
+	len = sci_get_length(doc_list[old_idx].sci) + 1;
+	data = (gchar*) g_malloc(len);
+	sci_get_text(doc_list[old_idx].sci, len, data);
+
+	sci_set_text(doc_list[idx].sci, data);
+
+	// copy file properties
+	doc_list[idx].line_breaking = doc_list[old_idx].line_breaking;
+	doc_list[idx].readonly = doc_list[old_idx].readonly;
+	doc_list[idx].has_bom = doc_list[old_idx].has_bom;
+	document_set_encoding(idx, doc_list[old_idx].encoding);
+	sci_set_lines_wrapped(doc_list[idx].sci, doc_list[idx].line_breaking);
+	sci_set_readonly(doc_list[idx].sci, doc_list[idx].readonly);
+	sci_set_undo_collection(doc_list[idx].sci, TRUE);
+
+	ui_document_show_hide(idx);
+
+	g_free(data);
+	return idx;
+}
+
+

Modified: trunk/src/document.h
===================================================================
--- trunk/src/document.h	2007-07-17 12:37:48 UTC (rev 1715)
+++ trunk/src/document.h	2007-07-17 14:52:57 UTC (rev 1716)
@@ -133,7 +133,9 @@
    filename is expected in UTF-8 encoding. */
 gint document_new_file(const gchar *filename, filetype *ft);
 
+gint document_clone(gint old_idx, const gchar *utf8_filename);
 
+
 /* 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.
  * Returns: idx of the opened file or -1 if an error occurred.
@@ -160,6 +162,7 @@
  * It returns whether the file could be saved or not. */
 gboolean document_save_file(gint idx, gboolean force);
 
+
 gboolean document_search_bar_find(gint idx, const gchar *text, gint flags, gboolean inc);
 
 /* General search function, used from the find dialog.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list