From 7e8b0bf22949191dce5b36993ff63636a2dffe1c Mon Sep 17 00:00:00 2001 From: Alexander Friesen Date: Sat, 5 Mar 2011 02:08:19 +0100 Subject: [PATCH] Move forward should move the last tab to the front --- midori/midori-browser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index a5816780..d40e67c4 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -4395,7 +4395,10 @@ _action_tab_move_forward_activate (GtkAction* action, { gint n = gtk_notebook_get_current_page (GTK_NOTEBOOK (browser->notebook)); GtkWidget* widget = gtk_notebook_get_nth_page (GTK_NOTEBOOK (browser->notebook), n); - gtk_notebook_reorder_child (GTK_NOTEBOOK (browser->notebook), widget, n + 1); + if (n == (gtk_notebook_get_n_pages (GTK_NOTEBOOK (browser->notebook)) - 1)) + gtk_notebook_reorder_child (GTK_NOTEBOOK (browser->notebook), widget, 0); + else + gtk_notebook_reorder_child (GTK_NOTEBOOK (browser->notebook), widget, n + 1); } static void -- 2.39.5