+2006-04-16 [colin] 2.1.0cvs49
+
+ * src/textview.c
+ Fix bgcolor not unset on gtk 2.8, while preventing warnings
+ with gtk < 2.8. Thanks to Fabien Vantard.
+
2006-04-15 [colin] 2.1.0cvs48
* src/etpan/imap-thread.c
( cvs diff -u -r 1.17.2.26 -r 1.17.2.27 src/send_message.c; ) > 2.1.0cvs46.patchset
( cvs diff -u -r 1.115.2.79 -r 1.115.2.80 src/main.c; ) > 2.1.0cvs47.patchset
( cvs diff -u -r 1.1.4.32 -r 1.1.4.33 src/etpan/imap-thread.c; ) > 2.1.0cvs48.patchset
+( cvs diff -u -r 1.96.2.110 -r 1.96.2.111 src/textview.c; ) > 2.1.0cvs49.patchset
textview_create_tags(GTK_TEXT_VIEW(textview->text), textview);
}
-#define CHANGE_TAG_COLOR(tagname, colorfg, colorbg) { \
+#if GTK_CHECK_VERSION(2, 8, 0)
+ #define CHANGE_TAG_COLOR(tagname, colorfg, colorbg) { \
tag = gtk_text_tag_table_lookup(tags, tagname); \
- if (tag && colorbg) \
+ if (tag) \
g_object_set(G_OBJECT(tag), "foreground-gdk", colorfg, "paragraph-background-gdk", colorbg, NULL); \
- else if (tag) \
+ }
+#else
+ #define CHANGE_TAG_COLOR(tagname, colorfg, colorbg) { \
+ tag = gtk_text_tag_table_lookup(tags, tagname); \
+ if (tag) \
g_object_set(G_OBJECT(tag), "foreground-gdk", colorfg, NULL); \
-}
+ }
+#endif
static void textview_update_message_colors(TextView *textview)
{