1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

Some minor cosmetic changes to the unofficial patch.

This commit is contained in:
Alexey Dokuchaev 2013-03-08 10:09:45 +00:00
parent 3a23c54522
commit 2a11fcacfd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313631

View File

@ -24,7 +24,7 @@
extern struct widget_interface clock_interface;
/**************************************************************************
+ ACPI TZ Temperature (CPU)
+ Temperature (for CPU, etc.)
+**************************************************************************/
+
+struct temperature_widget {
@ -70,7 +70,7 @@
+int curtemp;
+
+/**************************************************************************
+ TZ Temp "theme" (widget, really)
+ Temperature "theme" (widget, really)
+**************************************************************************/
+
+static int parse_temperature_theme(struct temperature_widget *tw,
@ -87,7 +87,7 @@
+}
+
+/**************************************************************************
+ TZ Temp interface
+ Temperature interface
+**************************************************************************/
+
+static int create_widget_private(struct widget *w,
@ -105,7 +105,7 @@
+ int pics_width = 0;
+
+ /* this should give us enough width for any real temperature */
+ char buftemp[8] = "999°";
+ char buftemp[8] = "99°";
+
+ text_extents(w->panel->layout, tw->font.pfd, buftemp, &text_width, 0);
+