Mercurial > pidgin.yaz
changeset 1621:cf2071b095ca
[gaim-migrate @ 1631]
alt-[1-9] to get to pane [1-9]
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 19 Mar 2001 23:53:50 +0000 |
parents | 35dbd22e3af5 |
children | 1acef460964a |
files | src/conversation.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/conversation.c Mon Mar 19 23:12:42 2001 +0000 +++ b/src/conversation.c Mon Mar 19 23:53:50 2001 +0000 @@ -552,12 +552,14 @@ if (general_options & OPT_GEN_CTL_CHARS) { switch (event->keyval) { case 'i': + case 'I': quiet_set(c->italic, !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(c->italic))); do_italic(c->italic, c->entry); gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event"); break; case 'u': /* ctl-u is GDK_Clear, which clears the line */ + case 'U': quiet_set(c->underline, !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (c->underline))); @@ -565,12 +567,14 @@ gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event"); break; case 'b': /* ctl-b is GDK_Left, which moves backwards */ + case 'B': quiet_set(c->bold, !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(c->bold))); do_bold(c->bold, c->entry); gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event"); break; case 's': + case 'S': quiet_set(c->strike, !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(c->strike))); do_strike(c->strike, c->entry); @@ -692,6 +696,10 @@ gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event"); } } + } else if ((display_options & OPT_DISP_ONE_WINDOW) && (event->state & GDK_MOD1_MASK) && + isdigit(event->keyval) && (event->keyval > '0')) { + gtk_notebook_set_page(GTK_NOTEBOOK(convo_notebook), event->keyval - '1'); + gtk_signal_emit_stop_by_name(GTK_OBJECT(entry), "key_press_event"); } return TRUE;