# HG changeset patch # User Mark Doliner # Date 1114377993 0 # Node ID 55e29b8e9689182259b61b157b2ba686eda87d71 # Parent f289e9f760530e9605d748d68f8a7f6f91e65770 [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: Tailor Script diff -r f289e9f76053 -r 55e29b8e9689 COPYRIGHT --- 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 diff -r f289e9f76053 -r 55e29b8e9689 src/gtkconv.c --- 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