aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view-main-item.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-07-24 16:34:40 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-07-24 16:34:40 +0800
commit2653c31d732e47e6fe3d365eb5cbcbaa76f0237f (patch)
tree9f71558c6b17e2b5af1b7e438ded742533fb5243 /calendar/gui/e-day-view-main-item.c
parenta53017cbb5407aba93c0270001069cfef3fa5074 (diff)
downloadgsoc2013-evolution-2653c31d732e47e6fe3d365eb5cbcbaa76f0237f.tar.gz
gsoc2013-evolution-2653c31d732e47e6fe3d365eb5cbcbaa76f0237f.tar.zst
gsoc2013-evolution-2653c31d732e47e6fe3d365eb5cbcbaa76f0237f.zip
Cairo fixes by rajeev
svn path=/trunk/; revision=32397
Diffstat (limited to 'calendar/gui/e-day-view-main-item.c')
-rw-r--r--calendar/gui/e-day-view-main-item.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c
index 6af0ef2fcd..d85f930085 100644
--- a/calendar/gui/e-day-view-main-item.c
+++ b/calendar/gui/e-day-view-main-item.c
@@ -1269,6 +1269,7 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
gint end_hour, end_display_hour, end_minute, end_suffix_width;
int scroll_flag = 0;
gint row_y;
+ GConfClient *gconf;
day_view = dvmitem->day_view;
@@ -1278,14 +1279,18 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
gc = day_view->main_gc;
- alpha = gconf_client_get_float (gconf_client_get_default (),
+ gconf = gconf_client_get_default ();
+
+ alpha = gconf_client_get_float (gconf,
"/apps/evolution/calendar/display/events_transparency",
NULL);
- gradient = gconf_client_get_bool (gconf_client_get_default (),
+ gradient = gconf_client_get_bool (gconf,
"/apps/evolution/calendar/display/events_gradient",
NULL);
+ g_object_unref (gconf);
+
/* If the event is currently being dragged, don't draw it. It will
be drawn in the special drag items. */
if (day_view->drag_event_day == day
@@ -1512,8 +1517,9 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
draw_curved_rectangle (cr, x0, y0, rect_width, rect_height, radius);
date_fraction = rect_height / day_view->row_height;
- short_event = (((event->end_minute - event->start_minute)/day_view->mins_per_row) >= 2) ? FALSE : TRUE ;
-
+ short_event = ((((event->end_minute - event->start_minute)/day_view->mins_per_row) >= 2)
+ || (((event->end_minute - event->start_minute)%day_view->mins_per_row) <= day_view->mins_per_row))? FALSE : TRUE ;
+
if (day_view->editing_event_day == day
&& day_view->editing_event_num == event_num)
short_event = TRUE;