gchar *sMsg = NULL;
gint pageNum;
- pageNum = gtk_notebook_current_page( GTK_NOTEBOOK(exphtml_dlg.notebook) );
+ pageNum = gtk_notebook_get_current_page( GTK_NOTEBOOK(exphtml_dlg.notebook) );
if( pageNum == PAGE_FILE_INFO ) {
sMsg = _( "Please specify output directory and file to create." );
}
static void export_html_cancel( GtkWidget *widget, gpointer data ) {
gint pageNum;
- pageNum = gtk_notebook_current_page( GTK_NOTEBOOK(exphtml_dlg.notebook) );
+ pageNum = gtk_notebook_get_current_page( GTK_NOTEBOOK(exphtml_dlg.notebook) );
if( pageNum != PAGE_FINISH ) {
exphtml_dlg.cancelled = TRUE;
}
static void export_html_prev( GtkWidget *widget ) {
gint pageNum;
- pageNum = gtk_notebook_current_page( GTK_NOTEBOOK(exphtml_dlg.notebook) );
+ pageNum = gtk_notebook_get_current_page( GTK_NOTEBOOK(exphtml_dlg.notebook) );
if( pageNum == PAGE_FORMAT ) {
/* Goto file page stuff */
- gtk_notebook_set_page(
+ gtk_notebook_set_current_page(
GTK_NOTEBOOK(exphtml_dlg.notebook), PAGE_FILE_INFO );
gtk_widget_set_sensitive( exphtml_dlg.btnPrev, FALSE );
}
else if( pageNum == PAGE_FINISH ) {
/* Goto format page */
- gtk_notebook_set_page(
+ gtk_notebook_set_current_page(
GTK_NOTEBOOK(exphtml_dlg.notebook), PAGE_FORMAT );
gtk_widget_set_sensitive( exphtml_dlg.btnNext, TRUE );
}
static void export_html_next( GtkWidget *widget ) {
gint pageNum;
- pageNum = gtk_notebook_current_page( GTK_NOTEBOOK(exphtml_dlg.notebook) );
+ pageNum = gtk_notebook_get_current_page( GTK_NOTEBOOK(exphtml_dlg.notebook) );
if( pageNum == PAGE_FILE_INFO ) {
/* Goto format page */
if( exp_html_move_file() ) {
- gtk_notebook_set_page(
+ gtk_notebook_set_current_page(
GTK_NOTEBOOK(exphtml_dlg.notebook), PAGE_FORMAT );
gtk_widget_set_sensitive( exphtml_dlg.btnPrev, TRUE );
}
else if( pageNum == PAGE_FORMAT ) {
/* Goto finish page */
if( exp_html_move_format() ) {
- gtk_notebook_set_page(
+ gtk_notebook_set_current_page(
GTK_NOTEBOOK(exphtml_dlg.notebook), PAGE_FINISH );
exp_html_finish_show();
exporthtml_save_settings( _exportCtl_ );
export_html_fill_fields( _exportCtl_ );
gtk_widget_grab_default(exphtml_dlg.btnNext);
- gtk_notebook_set_page( GTK_NOTEBOOK(exphtml_dlg.notebook), PAGE_FILE_INFO );
+ gtk_notebook_set_current_page( GTK_NOTEBOOK(exphtml_dlg.notebook), PAGE_FILE_INFO );
gtk_widget_set_sensitive( exphtml_dlg.btnPrev, FALSE );
gtk_widget_set_sensitive( exphtml_dlg.btnNext, TRUE );