Hiroyuki Ikezoe
ikezo****@users*****
Thu Jan 4 22:45:54 JST 2007
Index: kazehakase/src/actions/kz-actions.c diff -u kazehakase/src/actions/kz-actions.c:1.236 kazehakase/src/actions/kz-actions.c:1.237 --- kazehakase/src/actions/kz-actions.c:1.236 Thu Jan 4 11:29:05 2007 +++ kazehakase/src/actions/kz-actions.c Thu Jan 4 22:45:54 2007 @@ -59,6 +59,7 @@ #include "kz-proxy-folder.h" #include "kz-icons.h" #include "kz-statusbar.h" +#include "kz-notebook.h" #include "kz-session.h" #include <time.h> @@ -635,47 +636,18 @@ static void act_prev_tab (GtkAction *action, KzWindow *kz) { - GtkNotebook *notebook; - gboolean circulation = FALSE; - - notebook = GTK_NOTEBOOK(kz->notebook); g_return_if_fail(KZ_IS_WINDOW(kz)); - KZ_CONF_GET("Tab", "wheel_circulation", circulation, BOOL); - if (circulation && - gtk_notebook_get_current_page(notebook) == 0) - { - gtk_notebook_set_current_page - (notebook, gtk_notebook_get_n_pages(notebook) - 1); - } - else - { - gtk_notebook_prev_page(notebook); - } + kz_notebook_prev_tab(KZ_NOTEBOOK(kz->notebook)); } static void act_next_tab (GtkAction *action, KzWindow *kz) { - GtkNotebook *notebook; - gboolean circulation = FALSE; - g_return_if_fail(KZ_IS_WINDOW(kz)); - notebook = GTK_NOTEBOOK(kz->notebook); - KZ_CONF_GET("Tab", "wheel_circulation", circulation, BOOL); - - if (circulation && - gtk_notebook_get_current_page(notebook) == - gtk_notebook_get_n_pages(notebook) - 1) - { - gtk_notebook_set_current_page(notebook, 0); - } - else - { - gtk_notebook_next_page(notebook); - } + kz_notebook_next_tab(KZ_NOTEBOOK(kz->notebook)); }