[balsa/gtk3] Deprecation cleanup--I missed one :(
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Deprecation cleanup--I missed one :(
- Date: Mon, 23 Mar 2015 21:24:15 +0000 (UTC)
commit 6227214e9c5c9e71ef14ef65be96497ba148337a
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Mar 23 17:23:52 2015 -0400
Deprecation cleanup--I missed one :(
* src/balsa-mime-widget-text.c (fill_text_buf_cited):
GtkTextTag:foreground-gdk is deprecated.
ChangeLog | 7 +++++++
src/balsa-mime-widget-text.c | 9 +++------
2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 368b3e6..15fbc55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2015-03-23 Peter Bloomfield <pbloomfield bellsouth net>
+ Deprecation cleanup--I missed one :(
+
+ * src/balsa-mime-widget-text.c (fill_text_buf_cited):
+ GtkTextTag:foreground-gdk is deprecated.
+
+2015-03-23 Peter Bloomfield <pbloomfield bellsouth net>
+
Deprecation cleanup
* src/balsa-mime-widget-text.c (quote_tag):
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index 60c77dc..ea659ba 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -1307,7 +1307,7 @@ fill_text_buf_cited(GtkWidget *widget, const gchar *text_body,
regex_t rex;
#endif /* USE_GREGEX */
gboolean have_regex;
- GdkColor color;
+ GdkRGBA *rgba;
/* prepare citation regular expression for plain bodies */
if (is_plain) {
@@ -1333,12 +1333,9 @@ fill_text_buf_cited(GtkWidget *widget, const gchar *text_body,
screen = gtk_widget_get_screen(widget);
margin = (char_width / 72.0) * gdk_screen_get_resolution(screen);
- color.red = G_MAXUINT16 * balsa_app.url_color.red;
- color.green = G_MAXUINT16 * balsa_app.url_color.green;
- color.blue = G_MAXUINT16 * balsa_app.url_color.blue;
- color.pixel = 0;
+ rgba = &balsa_app.url_color;
gtk_text_buffer_create_tag(buffer, "url",
- "foreground-gdk", &color, NULL);
+ "foreground-rgba", rgba, NULL);
gtk_text_buffer_create_tag(buffer, "emphasize",
"foreground", "red",
"underline", PANGO_UNDERLINE_SINGLE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]