[evolution] Change the order of histogram. New things at the right.



commit 2ca6a310e1983283a719c1a22823befc821115e1
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Wed Aug 11 16:00:40 2010 +0530

    Change the order of histogram. New things at the right.

 mail/e-mail-notebook-view.c |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/mail/e-mail-notebook-view.c b/mail/e-mail-notebook-view.c
index d35fb15..24dfb5e 100644
--- a/mail/e-mail-notebook-view.c
+++ b/mail/e-mail-notebook-view.c
@@ -993,26 +993,15 @@ build_histogram (GtkWidget *widget, CamelFolder *folder)
 
 	clutter_actor_show_all (texture);
 
-	//cairo_set_source_rgba (cr, color->red, color->green, color->blue, 1.0);
-	cairo_set_source_rgba (cr, 0.3, 0.2, 0.4, 1.0);
-
-	cairo_save (cr);
-	x+=4;
-
-	cairo_set_source_rgba (cr, 0.8, 0.5, 0.3, 1.0);
-	cairo_arc (cr, x,  50 - (weeks[0] * ratio), 3, 0, 2*M_PI);
-
-	cairo_fill (cr);
-	cairo_restore (cr);
 
 	cairo_save (cr);
 	cairo_new_path (cr);
-	cairo_move_to (cr, x, 50 - (weeks[0] * ratio));
+	cairo_move_to (cr, x, 50 - (weeks[52] * ratio));
 
 	cairo_set_source_rgba (cr, 0.3, 0.2, 0.4, 1.0);
 
-	for (i=1; i<53; i++) {	
-		x+=4;
+	for (i=51; i>=0; i--) {	
+		x+=3;
 		cairo_line_to (cr, x, 50 - (weeks[i]*ratio));
 
 	}
@@ -1020,6 +1009,14 @@ build_histogram (GtkWidget *widget, CamelFolder *folder)
 	cairo_stroke (cr);
 	cairo_restore (cr);
 
+	cairo_save (cr);
+
+	cairo_set_source_rgba (cr, 0.8, 0.5, 0.3, 1.0);
+	cairo_arc (cr, x,  50 - (weeks[0] * ratio), 3, 0, 2*M_PI);
+
+	cairo_fill (cr);
+	cairo_restore (cr);
+
   	cairo_destroy(cr);
 
 	return texture;



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