[balsa/gtk3] Deprecation cleanup
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Deprecation cleanup
- Date: Mon, 23 Mar 2015 21:15:05 +0000 (UTC)
commit 37786a6a2c06b84cd47cbefcbd525f4d1db5f44f
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Mar 23 17:12:33 2015 -0400
Deprecation cleanup
* src/balsa-mime-widget-text.c (quote_tag):
GtkTextTag:foreground-gdk is deprecated.
ChangeLog | 9 ++++++++-
src/balsa-mime-widget-text.c | 9 +--------
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b73579b..368b3e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,8 +2,15 @@
Deprecation cleanup
+ * src/balsa-mime-widget-text.c (quote_tag):
+ GtkTextTag:foreground-gdk is deprecated.
+
+2015-03-23 Peter Bloomfield <pbloomfield bellsouth net>
+
+ Deprecation cleanup
+
* src/balsa-app.c (balsa_app_init):
- GtkSettings:gtk-fallback-icon-theme is deprecated
+ GtkSettings:gtk-fallback-icon-theme is deprecated.
2015-03-23 Peter Bloomfield <pbloomfield bellsouth net>
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index cd2504d..60c77dc 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -382,18 +382,11 @@ quote_tag(GtkTextBuffer * buffer, gint level, gint margin)
if (!tag) {
GdkRGBA *rgba;
- GdkColor color;
rgba = &balsa_app.quoted_color[q_level];
- /* As of now, GtkTextTag has no "foreground-rgba" property :( */
- color.red = G_MAXUINT16 * rgba->red;
- color.green = G_MAXUINT16 * rgba->green;
- color.blue = G_MAXUINT16 * rgba->blue;
- color.pixel = 0;
-
tag =
gtk_text_buffer_create_tag(buffer, name,
- "foreground-gdk", &color,
+ "foreground-rgba", rgba,
"left-margin", BALSA_LEFT_MARGIN
+ margin * level,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]