[gnome-power-manager] Don't always show a single graph dot in gnome-power-statistics



commit 2a7c57f163d827068ad747b7e72f0c4f65cb7ef6
Author: Richard Hughes <richard hughsie com>
Date:   Fri May 29 13:10:02 2009 +0100

    Don't always show a single graph dot in gnome-power-statistics
---
 src/gpm-graph-widget.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gpm-graph-widget.c b/src/gpm-graph-widget.c
index 9418644..90b9d40 100644
--- a/src/gpm-graph-widget.c
+++ b/src/gpm-graph-widget.c
@@ -932,7 +932,8 @@ gpm_graph_widget_draw_line (GpmGraphWidget *graph, cairo_t *cr)
 		oldx = 0;
 		oldy = 0;
 		gpm_graph_widget_get_pos_on_graph (graph, point->x, point->y, &oldx, &oldy);
-		gpm_graph_widget_draw_dot (cr, oldx, oldy, point->color);
+		if (plot == GPM_GRAPH_WIDGET_PLOT_POINTS || plot == GPM_GRAPH_WIDGET_PLOT_BOTH)
+			gpm_graph_widget_draw_dot (cr, oldx, oldy, point->color);
 
 		for (i=1; i < data->len; i++) {
 			point = (GpmPointObj *) g_ptr_array_index (data, i);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]