[gaim-migrate @ 12256]

Wed, 16 Mar 2005 20:38:56 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Wed, 16 Mar 2005 20:38:56 +0000
changeset 10699
7f9fa4f13758
parent 10698
97e3bc34cbbd
child 10700
93f5099b2775

[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.

src/gtkimhtml.c file | annotate | diff | comparison | revisions
--- 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);

mercurial