Skip to content

Commit

Permalink
Rename gradually_sort_doc_* to gradually_sort_tab_*
Browse files Browse the repository at this point in the history
  • Loading branch information
konsolebox committed Jul 29, 2016
1 parent 85d5b31 commit c064984
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/notebook.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ void on_sort_tabs_pathname_activate(GtkMenuItem *menuitem, gpointer user_data)
}


static void gradually_sort_doc_based_on_filename(GeanyDocument *doc)
static void gradually_sort_tab_based_on_filename(GeanyDocument *doc)
{
GeanyDocument *doc_b;
gchar *base_a, *base_b;
Expand Down Expand Up @@ -999,7 +999,7 @@ static void gradually_sort_doc_based_on_filename(GeanyDocument *doc)
}


static void gradually_sort_doc_based_on_pathname(GeanyDocument *doc)
static void gradually_sort_tab_based_on_pathname(GeanyDocument *doc)
{
GeanyDocument *doc_b;
GtkWidget *page;
Expand Down Expand Up @@ -1062,9 +1062,9 @@ static void on_document_open(GObject *obj, GeanyDocument *doc)
if (interface_prefs.show_notebook_tabs)
{
if (interface_prefs.auto_sort_tabs_filename)
gradually_sort_doc_based_on_filename(doc);
gradually_sort_tab_based_on_filename(doc);
else if (interface_prefs.auto_sort_tabs_pathname)
gradually_sort_doc_based_on_pathname(doc);
gradually_sort_tab_based_on_pathname(doc);
}
}

Expand All @@ -1080,9 +1080,9 @@ static void on_document_save(GObject *obj, GeanyDocument *doc)
if (doc_saves_to_new_file && interface_prefs.show_notebook_tabs)
{
if (interface_prefs.auto_sort_tabs_filename)
gradually_sort_doc_based_on_filename(doc);
gradually_sort_tab_based_on_filename(doc);
else if (interface_prefs.auto_sort_tabs_pathname)
gradually_sort_doc_based_on_pathname(doc);
gradually_sort_tab_based_on_pathname(doc);
}
}

Expand Down

0 comments on commit c064984

Please sign in to comment.