summaryrefslogtreecommitdiff
blob: 7edff1c74990d8357aa3a049fc5325ce96d5df4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From c9db9953296709ba3c86a7b0471fcd60469225ed Mon Sep 17 00:00:00 2001
From: Jim Ramsay <jim_ramsay@dell.com>
Date: Mon, 1 Nov 2010 08:43:17 -0400
Subject: [PATCH 2/3] Use gkrellm_gkd_string_width

This wrapper is designed to transition from GdkFont to
PangoFontDescription.  Without it, there is a warning and a probable
runtime crash, as we are feeding the wrong structure into
'gdk_string_width'.
---
 mailwatch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mailwatch.c b/mailwatch.c
index 3f0f0a2..5cca01e 100644
--- a/mailwatch.c
+++ b/mailwatch.c
@@ -608,7 +608,7 @@ update_plugin(void) {
 
       p->statstext->x_off =
         gkrellm_chart_width() -
-        gdk_string_width(p->panel->textstyle->font,
+        gkrellm_gdk_string_width(p->panel->textstyle->font,
                          buf) -
         2 * gkrellm_get_style_margins(p->panel->style)->left;
 
-- 
1.7.3.1