diff options
author | Srinivasa Ragavan <sragavan@gnome.org> | 2010-08-11 18:30:40 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@gnome.org> | 2010-08-11 18:30:40 +0800 |
commit | 2ca6a310e1983283a719c1a22823befc821115e1 (patch) | |
tree | d6f650d86120420b5fc0959e3b84c9dad440e07e | |
parent | 0d1d8d2a07a0ba67621f0ce4ffa489efaf3cfa5a (diff) | |
download | gsoc2013-evolution-2ca6a310e1983283a719c1a22823befc821115e1.tar gsoc2013-evolution-2ca6a310e1983283a719c1a22823befc821115e1.tar.gz gsoc2013-evolution-2ca6a310e1983283a719c1a22823befc821115e1.tar.bz2 gsoc2013-evolution-2ca6a310e1983283a719c1a22823befc821115e1.tar.lz gsoc2013-evolution-2ca6a310e1983283a719c1a22823befc821115e1.tar.xz gsoc2013-evolution-2ca6a310e1983283a719c1a22823befc821115e1.tar.zst gsoc2013-evolution-2ca6a310e1983283a719c1a22823befc821115e1.zip |
Change the order of histogram. New things at the right.
-rw-r--r-- | 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 d35fb1540f..24dfb5e4fe 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; |