Hiroyuki Ikezoe
ikezo****@users*****
Thu Jan 4 22:25:04 JST 2007
Index: kazehakase/src/kz-notebook.c diff -u kazehakase/src/kz-notebook.c:1.10 kazehakase/src/kz-notebook.c:1.11 --- kazehakase/src/kz-notebook.c:1.10 Thu Jan 4 22:22:39 2007 +++ kazehakase/src/kz-notebook.c Thu Jan 4 22:25:04 2007 @@ -492,35 +492,37 @@ } ret_page = KZ_CONF_GET_STR("Tab", "page_to_return_when_close"); - if (ret_page && !strcmp(ret_page, "last_shown")) + if (ret_page) { - GList *node; - - if (priv->view_hist && - (node = g_list_next(priv->view_hist))) + if (!strcmp(ret_page, "last_shown")) { - next = node->data; + GList *node; + + if (priv->view_hist && + (node = g_list_next(priv->view_hist))) + { + next = node->data; + } } - } - else if (ret_page && !strcmp(ret_page, "last_created")) - { - GList *node = priv->open_hist; + else if (!strcmp(ret_page, "last_created")) + { + GList *node = priv->open_hist; - for (; node && !next; node = g_list_next(node)) + for (; node && !next; node = g_list_next(node)) + { + if (current != node->data) + next = node->data; + } + } + else if (!strcmp(ret_page, "prev_tab")) { - if (current != node->data) - next = node->data; + gtk_notebook_prev_page(GTK_NOTEBOOK(notebook)); + } + else if (!strcmp(ret_page, "next_tab")) + { + gtk_notebook_next_page(GTK_NOTEBOOK(notebook)); } } - else if (ret_page && !strcmp(ret_page, "prev_tab")) - { - gtk_notebook_prev_page(GTK_NOTEBOOK(notebook)); - } - else if (ret_page && !strcmp(ret_page, "next_tab")) - { - gtk_notebook_next_page(GTK_NOTEBOOK(notebook)); - } - if (next) { gint num;