# HG changeset patch # User Mark Doliner # Date 1123913070 0 # Node ID 55356a29cdd1093b54537061600a819709437055 # Parent ad9a61894d9bbfb058a80f2fba4344597e5f8150 [gaim-migrate @ 13421] sf patch #1238709, from Sadrul Habib Chowdhury Add keyboard shortcuts for shifting tabs around. Shouldn't hurt anything. committer: Tailor Script diff -r ad9a61894d9b -r 55356a29cdd1 src/gtkconv.c --- a/src/gtkconv.c Sat Aug 13 05:54:34 2005 +0000 +++ b/src/gtkconv.c Sat Aug 13 06:04:30 2005 +0000 @@ -1719,7 +1719,7 @@ } } } - + if (!found) { /* Now check from the beginning up to this position. */ for (i = 0; !found && i < index && (next_gtkconv = gaim_gtk_get_gtkconv_at_index(win, i)); i++) { @@ -1736,7 +1736,6 @@ /* Okay, just grab the next conversation tab. */ if (!(next_gtkconv = gaim_gtk_get_gtkconv_at_index(win, index + 1))) next_gtkconv = gaim_gtk_get_gtkconv_at_index(win, 0); - } } @@ -1846,6 +1845,18 @@ return TRUE; break; + case GDK_comma: + gtk_notebook_reorder_child(GTK_NOTEBOOK(gtkwin->notebook), + gtk_notebook_get_nth_page(GTK_NOTEBOOK(gtkwin->notebook), curconv), + curconv - 1); + break; + + case GDK_period: + gtk_notebook_reorder_child(GTK_NOTEBOOK(gtkwin->notebook), + gtk_notebook_get_nth_page(GTK_NOTEBOOK(gtkwin->notebook), curconv), + (curconv + 1) % gtk_notebook_get_n_pages(GTK_NOTEBOOK(gtkwin->notebook))); + break; + } /* End of switch */ }