Date: Mon, 20 Aug 2001 06:07:54 -0400 (EDT) From: Patrick Li <pat@databits.net> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/29894: Add patch-gkrellweather.c to port misc/gkrellweather Message-ID: <200108201007.f7KA7si51602@cc92687-a.wlgrv1.pa.home.com>
next in thread | raw e-mail | index | archive | help
>Number: 29894 >Category: ports >Synopsis: Add patch-gkrellweather.c to port misc/gkrellweather >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Aug 20 03:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Patrick Li >Release: FreeBSD 4.4-PRERELEASE i386 >Organization: N/A >Environment: System: FreeBSD bottlenek 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #0: Mon Aug 13 19:08:19 EDT 2001 pat@bottlenek:/usr/src/sys/compile/BOTTLENEK i386 >Description: gkrellweather currently displays 100% humidity as 10%. Below is a little patch that i made to fix this little problem. >How-To-Repeat: Live somewhere hot and wet with 100% humidity or edit ~/.wmWeatherReports/"$METARstation".dat and change humidity field to 100% without applying patch below. >Fix: add files/patch-gkrellweather.c --- gkrellweather.c.orig Sun May 20 03:04:50 2001 +++ gkrellweather.c Mon Aug 20 05:21:41 2001 @@ -243,7 +243,7 @@ decal_unit2->w; decal_temperature->x = (gkrellm_chart_width() - w + 1) / 2 + 1; decal_unit1->x = decal_temperature->x + decal_temperature->w - 1; - decal_humidity->x = decal_unit1->x + decal_unit1->w + 1; + decal_humidity->x = decal_unit1->x + decal_unit1->w; decal_unit2->x = decal_humidity->x + decal_humidity->w - 1; break; } @@ -500,7 +500,7 @@ ext_unit1.ts = *gkrellm_meter_textstyle(cal_style_id); string_extents("C", &ext_unit1); ext_humidity.ts = *gkrellm_meter_alt_textstyle(clock_style_id); - string_extents("88", &ext_humidity); + string_extents("888", &ext_humidity); ext_unit2.ts = *gkrellm_meter_textstyle(cal_style_id); string_extents("%", &ext_unit2); ext_dew_point.ts = *gkrellm_meter_alt_textstyle(clock_style_id); @@ -522,7 +522,7 @@ &ext_temperature.ts, style, 0, 3, ext_temperature.width + 2); decal_unit1 = gkrellm_create_decal_text(panel, "C", &ext_unit1.ts, style, 0, 3, ext_unit1.width + 2); - decal_humidity = gkrellm_create_decal_text(panel, "88", &ext_humidity.ts, + decal_humidity = gkrellm_create_decal_text(panel, "888", &ext_humidity.ts, style, 0, 3, ext_humidity.width + 2); decal_unit2 = gkrellm_create_decal_text(panel, "%", &ext_unit2.ts, style, 0, 3, ext_unit2.width + 2); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108201007.f7KA7si51602>