Skip to content

Commit

Permalink
Fix wrong definition of callback function
Browse files Browse the repository at this point in the history
  • Loading branch information
konsolebox committed Jul 24, 2016
1 parent db8d823 commit d8c4f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/notebook.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ notebook_tab_close_clicked_cb(GtkButton *button, gpointer user_data);

static void setup_tab_dnd(void);

static gboolean on_document_open(GeanyDocument* doc);
static void on_document_open(GObject *obj, GeanyDocument *doc);


static void update_mru_docs_head(GeanyDocument *doc)
Expand Down Expand Up @@ -995,7 +995,7 @@ static gboolean on_idle_auto_sort_tabs(gpointer user_data)
}


static gboolean on_document_open(GeanyDocument* doc)
static void on_document_open(GObject *obj, GeanyDocument *doc)
{
if (!on_idle_auto_sort_hooked && interface_prefs.show_notebook_tabs &&
(interface_prefs.auto_sort_tabs_filename || interface_prefs.auto_sort_tabs_pathname))
Expand Down

0 comments on commit d8c4f70

Please sign in to comment.