Kaydet (Commit) 89b3f4c3 authored tarafından Nick Treleaven's avatar Nick Treleaven

Remove unused argument. Rename document_find_next() document_search_bar_find().

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@910 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst f391cc95
......@@ -791,7 +791,7 @@ static GtkWidget *create_build_menu_gen(gint idx)
}
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 @@ void build_menu_update(gint idx)
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")),
......
......@@ -622,7 +622,7 @@ on_entry1_activate (GtkEntry *entry,
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 @@ on_entry1_changed (GtkEditable *editable,
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 @@ on_toolbutton18_clicked (GtkToolButton *toolbutton,
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);
}
......
......@@ -862,7 +862,7 @@ gboolean document_save_file(gint idx, gboolean force)
/* 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;
......
......@@ -136,7 +136,8 @@ int document_reload_file(gint idx, const gchar *forced_enc);
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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment