View | Details | Raw Unified | Return to bug 135866
Collapse All | Expand All

(-)Makefile (-2 / +2 lines)
Lines 7-18 Link Here
7
7
8
PORTNAME=	xfce4-cpugraph-plugin
8
PORTNAME=	xfce4-cpugraph-plugin
9
PORTVERSION=	0.3.0
9
PORTVERSION=	0.3.0
10
PORTREVISION=	7
10
PORTREVISION=	8
11
CATEGORIES=	sysutils xfce
11
CATEGORIES=	sysutils xfce
12
MASTER_SITES=	http://goodies.xfce.org/releases/${PORTNAME}/
12
MASTER_SITES=	http://goodies.xfce.org/releases/${PORTNAME}/
13
DIST_SUBDIR=	xfce4
13
DIST_SUBDIR=	xfce4
14
14
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	fbsd@opal.com
16
COMMENT=	XFce4 systemload plugin with multiple CPU display modes
16
COMMENT=	XFce4 systemload plugin with multiple CPU display modes
17
17
18
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
(-)files/patch-panel-plugin-cpu.c (+20 lines)
Added Link Here
1
--- panel-plugin/cpu.c.orig	2005-10-09 05:06:46.000000000 -0400
2
+++ panel-plugin/cpu.c	2009-06-15 18:29:08.000000000 -0400
3
@@ -606,7 +606,7 @@
4
     op->m_Notebook = gtk_notebook_new ();
5
     gtk_container_set_border_width (GTK_CONTAINER (op->m_Notebook), 
6
                                     BORDER - 2);
7
-    label = gtk_label_new (_("Apperance"));
8
+    label = gtk_label_new (_("Appearance"));
9
     gtk_notebook_append_page (GTK_NOTEBOOK (op->m_Notebook),
10
                               GTK_WIDGET (vbox2), GTK_WIDGET (label));
11
     label = gtk_label_new (_("Advanced"));
12
@@ -952,7 +952,7 @@
13
 SetHistorySize (CPUGraph * base, int size)
14
 {
15
     base->m_History =
16
-        (long *) realloc (base->m_History, size * sizeof (long));
17
+        (int *) realloc (base->m_History, size * sizeof (int));
18
     int i;
19
 
20
     for (i = size - 1; i >= base->m_Values; i--)
(-)files/patch-panel-plugin-cpu.h (+19 lines)
Added Link Here
1
--- panel-plugin/cpu.h.orig	2005-10-09 05:19:34.000000000 -0400
2
+++ panel-plugin/cpu.h	2009-06-15 18:07:25.000000000 -0400
3
@@ -10,6 +10,7 @@
4
 #include <math.h>
5
 #include <stdio.h>
6
 #include <string.h>
7
+#include <stdlib.h>
8
 
9
 #include <libxfce4util/libxfce4util.h>
10
 #include <libxfcegui4/libxfcegui4.h>
11
@@ -83,7 +84,7 @@
12
 	
13
 	guint m_TimeoutID; // Timeout ID for the tooltip;
14
 	long m_CPUUsage;
15
-	long *m_History;
16
+	int *m_History;
17
 	int m_Values;
18
 
19
 	int m_Orientation;

Return to bug 135866