[Pkg-xfce-commits] r2685 - in goodies/xfce4-hdaps/debian: . patches

sargentd-guest at alioth.debian.org sargentd-guest at alioth.debian.org
Tue Feb 10 23:15:07 UTC 2009


Author: sargentd-guest
Date: 2009-02-10 23:15:07 +0000 (Tue, 10 Feb 2009)
New Revision: 2685

Added:
   goodies/xfce4-hdaps/debian/patches/
   goodies/xfce4-hdaps/debian/patches/0001-Set-status-to-1-when-we-read-a-value-0.patch
   goodies/xfce4-hdaps/debian/patches/0002-Include-libxfce4util-libxfce4util.h-or-we-fail-to-bu.patch
   goodies/xfce4-hdaps/debian/patches/series
Log:
add two patches


Added: goodies/xfce4-hdaps/debian/patches/0001-Set-status-to-1-when-we-read-a-value-0.patch
===================================================================
--- goodies/xfce4-hdaps/debian/patches/0001-Set-status-to-1-when-we-read-a-value-0.patch	                        (rev 0)
+++ goodies/xfce4-hdaps/debian/patches/0001-Set-status-to-1-when-we-read-a-value-0.patch	2009-02-10 23:15:07 UTC (rev 2685)
@@ -0,0 +1,28 @@
+From c1e505937f36751020ada12dbff3a12477837699 Mon Sep 17 00:00:00 2001
+From: Evgeni Golov <sargentd at die-welt.net>
+Date: Tue, 10 Feb 2009 22:27:30 +0100
+Subject: [PATCH] Set status to 1 when we read a value > 0
+
+---
+ panel-plugin/xfce4-hdaps.c |    5 +++++
+ 1 files changed, 5 insertions(+), 0 deletions(-)
+
+diff --git a/panel-plugin/xfce4-hdaps.c b/panel-plugin/xfce4-hdaps.c
+index c9d9cb5..4bc9af1 100644
+--- a/panel-plugin/xfce4-hdaps.c
++++ b/panel-plugin/xfce4-hdaps.c
+@@ -314,6 +314,11 @@ static gboolean hdaps_update_status(HdapsPlugin *hdaps) {
+   /* This just gets the status. */
+   int status = parse_int_from_file(hdaps->sysfs_file);
+ 
++  /* The status is really "how many miliseconds will the drive be
++     parked", but we only want to update when it changes (-1, 0, >0) */
++  if (status > 0)
++    status = 1;
++
+   if (status != hdaps->previous_status) {
+     /* And we only update the icon if we need to. */
+     hdaps_set_icon(hdaps, status);
+-- 
+1.5.6.5
+

Added: goodies/xfce4-hdaps/debian/patches/0002-Include-libxfce4util-libxfce4util.h-or-we-fail-to-bu.patch
===================================================================
--- goodies/xfce4-hdaps/debian/patches/0002-Include-libxfce4util-libxfce4util.h-or-we-fail-to-bu.patch	                        (rev 0)
+++ goodies/xfce4-hdaps/debian/patches/0002-Include-libxfce4util-libxfce4util.h-or-we-fail-to-bu.patch	2009-02-10 23:15:07 UTC (rev 2685)
@@ -0,0 +1,24 @@
+From 0bf2ebf7b109138d9838785f2e3c5e63eba1af16 Mon Sep 17 00:00:00 2001
+From: Evgeni Golov <sargentd at die-welt.net>
+Date: Wed, 11 Feb 2009 00:11:39 +0100
+Subject: [PATCH] Include libxfce4util/libxfce4util.h or we fail to build with Xfce 4.6
+
+---
+ panel-plugin/xfce4-hdaps.h |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/panel-plugin/xfce4-hdaps.h b/panel-plugin/xfce4-hdaps.h
+index 312c534..fd881ab 100644
+--- a/panel-plugin/xfce4-hdaps.h
++++ b/panel-plugin/xfce4-hdaps.h
+@@ -4,6 +4,7 @@
+ #include <gtk/gtk.h>
+ #include <libxfce4panel/xfce-panel-plugin.h>
+ #include <libxfce4panel/xfce-hvbox.h>
++#include <libxfce4util/libxfce4util.h>
+ #include "hdaps.h"
+ 
+ G_BEGIN_DECLS
+-- 
+1.5.6.5
+

Added: goodies/xfce4-hdaps/debian/patches/series
===================================================================
--- goodies/xfce4-hdaps/debian/patches/series	                        (rev 0)
+++ goodies/xfce4-hdaps/debian/patches/series	2009-02-10 23:15:07 UTC (rev 2685)
@@ -0,0 +1,3 @@
+0001-Set-status-to-1-when-we-read-a-value-0.patch
+0002-Include-libxfce4util-libxfce4util.h-or-we-fail-to-bu.patch
+




More information about the Pkg-xfce-commits mailing list