[evolution-patches] Fix for Bug 302299 [gtkhtml]



Hi

Attached fix for Bug 302299 – insensitive buttons can be toggled with
the keyboard

Please Review.

Thanks,
Rohini
Index: gtkhtml.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/gtkhtml.c,v
retrieving revision 1.613
diff -u -p -r1.613 gtkhtml.c
--- gtkhtml.c	6 Feb 2006 09:59:36 -0000	1.613
+++ gtkhtml.c	22 Feb 2006 08:18:09 -0000
@@ -4233,6 +4233,9 @@ gtk_html_toggle_font_style (GtkHTML *htm
 	g_return_if_fail (html != NULL);
 	g_return_if_fail (GTK_IS_HTML (html));
 
+	if (HTML_IS_PLAIN_PAINTER (html->engine->painter))
+		return;
+
 	if (html_engine_toggle_font_style (html->engine, style))
 		g_signal_emit (html, signals [INSERTION_FONT_STYLE_CHANGED], 0, html->engine->insertion_font_style);
 }
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.2164
diff -u -p -r1.2164 ChangeLog
--- ChangeLog	21 Feb 2006 12:09:31 -0000	1.2164
+++ ChangeLog	22 Feb 2006 08:21:50 -0000
@@ -1,3 +1,9 @@
+2006-02-22  Rohini S  <srohini novell com>
+
+	* gtkhtml.c (gtk_html_toggle_font_style): Can toggle font style only in html mode.
+
+	Fixes bug #302299
+
 2006-02-21  Rohini S  <srohini novell com>
 
 	* htmltext.c: Changed regular expression to match sftp url's too.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]