[gaim-migrate @ 12548]

Sun, 24 Apr 2005 21:26:33 +0000

author
Will Thompson <resiak@pidgin.im>
date
Sun, 24 Apr 2005 21:26:33 +0000
changeset 10864
dc67964f00ec
parent 10863
0473100b6ea3
child 10865
f5bb66be81a0

[gaim-migrate @ 12548]
sf patch 1189105, from Will Thompson
"Completes the previously commented-out block in
gtkconv.c dealing with Alt-#. Checks that the tab
exists before switching to it."

committer: Mark Doliner <markdoliner@pidgin.im>

COPYRIGHT file | annotate | diff | comparison | revisions
src/gtkconv.c file | annotate | diff | comparison | revisions
--- a/COPYRIGHT	Sun Apr 24 20:49:55 2005 +0000
+++ b/COPYRIGHT	Sun Apr 24 21:26:33 2005 +0000
@@ -189,6 +189,7 @@
 Philip Tellis
 Arun A. Tharuvai
 Cestonaro Thilo
+Will Thompson
 Douglas Thrift (douglaswth)
 Stu Tomlinson
 Bill Tompkins
--- a/src/gtkconv.c	Sun Apr 24 20:49:55 2005 +0000
+++ b/src/gtkconv.c	Sun Apr 24 21:26:33 2005 +0000
@@ -1733,20 +1733,18 @@
 		} /* End of switch */
 	}
 
-#if 0
 	/* If ALT (or whatever) was held down... */
 	else if (event->state & GDK_MOD1_MASK)
 	{
-		/* XXX - Make sure the conv exists before switching to it */
-		if (event->keyval > '0' && event->keyval <= '9') {
+		if (event->keyval > '0' && event->keyval <= '9')
+		{
 			int switchto = event->keyval - '1';
-			if (switchto < numconvs)
-				gaim_conv_window_switch_conversation(win, switchto);
+			if (switchto < gaim_conv_window_get_conversation_count(win))
+				gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkwin->notebook), switchto);
 
 			return TRUE;
 		}
 	}
-#endif
 
 	/* If neither CTRL nor ALT were held down... */
 	else

mercurial