changeset 11252:55356a29cdd1

[gaim-migrate @ 13421] sf patch #1238709, from Sadrul Habib Chowdhury Add keyboard shortcuts for shifting tabs around. Shouldn't hurt anything. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 13 Aug 2005 06:04:30 +0000
parents ad9a61894d9b
children 7d31d61e6438
files src/gtkconv.c
diffstat 1 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 */
 	}