Revision: 910 http://svn.sourceforge.net/geany/?rev=910&view=rev Author: ntrel Date: 2006-10-21 04:00:37 -0700 (Sat, 21 Oct 2006)
Log Message: ----------- Remove unused argument. Rename document_find_next() document_search_bar_find().
Modified Paths: -------------- trunk/src/build.c trunk/src/callbacks.c trunk/src/document.c trunk/src/document.h
Modified: trunk/src/build.c =================================================================== --- trunk/src/build.c 2006-10-21 10:50:45 UTC (rev 909) +++ trunk/src/build.c 2006-10-21 11:00:37 UTC (rev 910) @@ -791,7 +791,7 @@ }
-static GtkWidget *create_build_menu_tex(gint idx) +static GtkWidget *create_build_menu_tex() { GtkWidget *menu, *item, *image, *separator; GtkAccelGroup *accel_group = gtk_accel_group_new(); @@ -957,7 +957,7 @@ if (ft->menu_items->menu == NULL) { ft->menu_items->menu = (ft->id == GEANY_FILETYPES_LATEX) ? - create_build_menu_tex(idx) : create_build_menu_gen(idx); + create_build_menu_tex() : create_build_menu_gen(idx); g_object_ref((gpointer)ft->menu_items->menu); // to hold it after removing } gtk_menu_item_set_submenu(GTK_MENU_ITEM(lookup_widget(app->window, "menu_build1")),
Modified: trunk/src/callbacks.c =================================================================== --- trunk/src/callbacks.c 2006-10-21 10:50:45 UTC (rev 909) +++ trunk/src/callbacks.c 2006-10-21 11:00:37 UTC (rev 910) @@ -622,7 +622,7 @@ gint idx = document_get_cur_idx();
setup_find_next(GTK_EDITABLE(entry)); - document_find_next(idx, search_data.text, 0, FALSE, FALSE); + document_search_bar_find(idx, search_data.text, 0, FALSE, FALSE); }
@@ -634,7 +634,7 @@ gint idx = document_get_cur_idx();
setup_find_next(editable); - document_find_next(idx, search_data.text, 0, FALSE, TRUE); + document_search_bar_find(idx, search_data.text, 0, FALSE, TRUE); }
@@ -648,7 +648,7 @@ GtkWidget *entry = lookup_widget(GTK_WIDGET(app->window), "entry1");
setup_find_next(GTK_EDITABLE(entry)); - document_find_next(idx, search_data.text, 0, TRUE, FALSE); + document_search_bar_find(idx, search_data.text, 0, TRUE, FALSE); }
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2006-10-21 10:50:45 UTC (rev 909) +++ trunk/src/document.c 2006-10-21 11:00:37 UTC (rev 910) @@ -862,7 +862,7 @@
/* special search function, used from the find entry in the toolbar */ -void document_find_next(gint idx, const gchar *text, gint flags, gboolean find_button, +void document_search_bar_find(gint idx, const gchar *text, gint flags, gboolean find_button, gboolean inc) { gint start_pos, search_pos;
Modified: trunk/src/document.h =================================================================== --- trunk/src/document.h 2006-10-21 10:50:45 UTC (rev 909) +++ trunk/src/document.h 2006-10-21 11:00:37 UTC (rev 910) @@ -136,7 +136,8 @@ gboolean document_save_file(gint idx, gboolean force);
/* special search function, used from the find entry in the toolbar */ -void document_find_next(gint, const gchar*, gint, gboolean, gboolean); +void document_search_bar_find(gint idx, const gchar *text, gint flags, gboolean find_button, + gboolean inc);
/* General search function, used from the find dialog. * Returns -1 on failure or the start position of the matching text. */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.