diff options
-rw-r--r-- | sb.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -116,16 +116,13 @@ gtk_notebook_set_show_tabs(GTK_NOTEBOOK(w.notebook), TRUE); static void tab_switch(gboolean b) { gint(current) = gtk_notebook_get_current_page(GTK_NOTEBOOK(w.notebook)); -gint(total) = gtk_notebook_get_n_pages(GTK_NOTEBOOK(w.notebook)); if(b) { if (current == gtk_notebook_get_n_pages(GTK_NOTEBOOK(w.notebook)) -1 ) { current = 0; } else { current = current + 1;} } else{ if (current == 0) { - current = gtk_notebook_get_n_pages(GTK_NOTEBOOK(w.notebook)); - current = current - 1; } - + current = gtk_notebook_get_n_pages(GTK_NOTEBOOK(w.notebook)) - 1; } else {current = current -1; } } |