[Xfce4-commits] <xfce4-cpugraph-plugin:master> Move a function

Florian noreply at xfce.org
Sat Apr 17 16:16:09 CEST 2010


Updating branch refs/heads/master
         to 7f1077fb78bad59d4da0c19154af7e6301f03a45 (commit)
       from fc2d847918fcdd03016a09283888335e013c3f5e (commit)

commit 7f1077fb78bad59d4da0c19154af7e6301f03a45
Author: Florian Rivoal <frivoal at gmail.com>
Date:   Mon Feb 8 10:43:57 2010 +0900

    Move a function
    
    Move the _lerp function to the mode.c, where it is actually used.

 panel-plugin/cpu.c  |    5 -----
 panel-plugin/mode.c |    5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/cpu.c b/panel-plugin/cpu.c
index 60e0e88..a2bcd01 100644
--- a/panel-plugin/cpu.c
+++ b/panel-plugin/cpu.c
@@ -1,11 +1,6 @@
 #include "cpu.h"
 #include "mode.h"
 
-guint16 _lerp( double t, guint16 a, guint16 b )
-{
-	return (guint16) (a + t * (b - a));
-}
-
 static void cpugraph_construct( XfcePanelPlugin *plugin )
 {
 	CPUGraph *base;
diff --git a/panel-plugin/mode.c b/panel-plugin/mode.c
index f6aac9a..a9cd09c 100644
--- a/panel-plugin/mode.c
+++ b/panel-plugin/mode.c
@@ -23,6 +23,11 @@
 
 #include "mode.h"
 
+guint16 _lerp( double t, guint16 a, guint16 b )
+{
+	return (guint16) (a + t * (b - a));
+}
+
 /*** MODE 0 : Normal ***/
 void drawGraphModeNormal( CPUGraph *base, GdkGC *fg1, GtkWidget *da, int w, int h )
 {



More information about the Xfce4-commits mailing list