Don't use deprecated GtkNotebookPage

This commit is contained in:
Colomban Wendling 2012-09-11 16:52:19 +02:00
parent 4d16735380
commit 2d878c8a5d
3 changed files with 7 additions and 7 deletions

View File

@ -602,7 +602,7 @@ static gboolean delayed_check_disk_status(gpointer data)
/* Changes window-title after switching tabs and lots of other things.
* note: using 'after' makes Scintilla redraw before the UI, appearing more responsive */
G_MODULE_EXPORT void on_notebook1_switch_page_after(GtkNotebook *notebook, GtkNotebookPage *page,
G_MODULE_EXPORT void on_notebook1_switch_page_after(GtkNotebook *notebook, gpointer page,
guint page_num, gpointer user_data)
{
GeanyDocument *doc;
@ -641,7 +641,7 @@ G_MODULE_EXPORT void on_notebook1_switch_page_after(GtkNotebook *notebook, GtkNo
}
G_MODULE_EXPORT void on_tv_notebook_switch_page(GtkNotebook *notebook, GtkNotebookPage *page,
G_MODULE_EXPORT void on_tv_notebook_switch_page(GtkNotebook *notebook, gpointer page,
guint page_num, gpointer user_data)
{
/* suppress selection changed signal when switching to the open files list */
@ -649,7 +649,7 @@ G_MODULE_EXPORT void on_tv_notebook_switch_page(GtkNotebook *notebook, GtkNotebo
}
G_MODULE_EXPORT void on_tv_notebook_switch_page_after(GtkNotebook *notebook, GtkNotebookPage *page,
G_MODULE_EXPORT void on_tv_notebook_switch_page_after(GtkNotebook *notebook, gpointer page,
guint page_num, gpointer user_data)
{
ignore_callback = FALSE;

View File

@ -327,7 +327,7 @@ on_set_file_readonly1_toggled (GtkCheckMenuItem *checkmenuitem,
G_MODULE_EXPORT void
on_tv_notebook_switch_page (GtkNotebook *notebook,
GtkNotebookPage *page,
gpointer page,
guint page_num,
gpointer user_data);
@ -371,7 +371,7 @@ on_toolbutton_run_clicked (GtkAction *action,
G_MODULE_EXPORT void
on_notebook1_switch_page_after (GtkNotebook *notebook,
GtkNotebookPage *page,
gpointer page,
guint page_num,
gpointer user_data);
@ -508,7 +508,7 @@ on_motion_event (GtkWidget *widget,
G_MODULE_EXPORT void
on_tv_notebook_switch_page_after (GtkNotebook *notebook,
GtkNotebookPage *page,
gpointer page,
guint page_num,
gpointer user_data);

View File

@ -92,7 +92,7 @@ static void update_mru_docs_head(GeanyDocument *doc)
/* before the tab changes, add the current document to the MRU list */
static void on_notebook_switch_page(GtkNotebook *notebook,
GtkNotebookPage *page, guint page_num, gpointer user_data)
gpointer page, guint page_num, gpointer user_data)
{
GeanyDocument *new;