Fix for Bug 302299 [gtkhtml]

Rohini <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
Hi

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

Please Review.

Thanks,
Rohini

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
bug302299.diff (text/x-patch, 1.2 KB)
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  <[email protected]>
+
+	* gtkhtml.c (gtk_html_toggle_font_style): Can toggle font style only in html mode.
+
+	Fixes bug #302299
+
 2006-02-21  Rohini S  <[email protected]>
 
 	* htmltext.c: Changed regular expression to match sftp url's too.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.