# HG changeset patch # User Stu Tomlinson # Date 1111005536 0 # Node ID c8b4bf3bf9e5541d3cec81f80cf75ce55952913d # Parent 2f646d020011007cf0818dec9b757b4eb050412c [gaim-migrate @ 12256] Christopher (siege) O'Brien fixed the bug where gtkimhtml doesn't honor button features when using the keyboard. The toolbar buttons still get toggled though, so someone should fix that. committer: Tailor Script diff -r 2f646d020011 -r c8b4bf3bf9e5 src/gtkimhtml.c --- a/src/gtkimhtml.c Tue Mar 15 02:39:38 2005 +0000 +++ b/src/gtkimhtml.c Wed Mar 16 20:38:56 2005 +0000 @@ -962,6 +962,11 @@ static void imhtml_toggle_format(GtkIMHtml *imhtml, GtkIMHtmlButtons buttons) { + /* since this function is the handler for the formatting keystrokes, + we need to check here that the formatting attempted is permitted */ + if (!(imhtml->format_functions & buttons)) + return; + switch (buttons) { case GTK_IMHTML_BOLD: gtk_imhtml_toggle_bold(imhtml);