diff options
author | Milan Crha <mcrha@redhat.com> | 2009-07-30 17:22:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-11 04:31:35 +0800 |
commit | aa8a700dd924a83e1dcd8eb374df777fb0a83b66 (patch) | |
tree | a6571a43052aafb50ddc927c3c7d03b092d4fabd /calendar/gui/e-day-view-top-item.c | |
parent | 7eee013e97aa3d1d28112f5b25744035941ec23c (diff) | |
download | gsoc2013-evolution-aa8a700dd924a83e1dcd8eb374df777fb0a83b66.tar.gz gsoc2013-evolution-aa8a700dd924a83e1dcd8eb374df777fb0a83b66.tar.zst gsoc2013-evolution-aa8a700dd924a83e1dcd8eb374df777fb0a83b66.zip |
Bug #300567 - Calendar drawing optimizations
Diffstat (limited to 'calendar/gui/e-day-view-top-item.c')
-rw-r--r-- | calendar/gui/e-day-view-top-item.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/calendar/gui/e-day-view-top-item.c b/calendar/gui/e-day-view-top-item.c index dd497e0f7b..51af20bbea 100644 --- a/calendar/gui/e-day-view-top-item.c +++ b/calendar/gui/e-day-view-top-item.c @@ -34,6 +34,7 @@ #include <libecal/e-cal-time-util.h> #include <libedataserver/e-data-server-util.h> #include <libedataserver/e-categories.h> +#include "calendar-config.h" #include "e-calendar-view.h" #include "e-day-view-top-item.h" @@ -363,7 +364,6 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, { EDayView *day_view; EDayViewEvent *event; - GConfClient *gconf_client; GtkStyle *style; GdkGC *gc, *fg_gc; gint start_day, end_day; @@ -394,15 +394,8 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, cr = gdk_cairo_create (drawable); - gconf_client = gconf_client_get_default (); - alpha = gconf_client_get_float (gconf_client, - "/apps/evolution/calendar/display/events_transparency", - NULL); - - gradient = gconf_client_get_bool (gconf_client, - "/apps/evolution/calendar/display/events_gradient", - NULL); - g_object_unref (gconf_client); + gradient = calendar_config_get_display_events_gradient (); + alpha = calendar_config_get_display_events_alpha (); /* If the event is currently being dragged, don't draw it. It will be drawn in the special drag items. */ |