[gnome-power-manager/gnome-2-26] Don't always show a single graph dot in gnome-power-statistics
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-power-manager/gnome-2-26] Don't always show a single graph dot in gnome-power-statistics
- Date: Fri, 29 May 2009 09:42:17 -0400 (EDT)
commit 96bb3054bf40504c6794f0aed6a0682fe0fd20b1
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 c863521..6dc4de7 100644
--- a/src/gpm-graph-widget.c
+++ b/src/gpm-graph-widget.c
@@ -735,7 +735,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 *) egg_obj_list_index (data, i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]