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/calendar-config.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/calendar-config.c')
-rw-r--r-- | calendar/gui/calendar-config.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index 6b458adf58..4a727f486a 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -41,6 +41,8 @@ #include "calendar-config.h" static GConfClient *config = NULL; +static gboolean display_events_gradient = TRUE; +static gfloat display_events_alpha = 1.0; static void do_cleanup (void) @@ -59,6 +61,9 @@ calendar_config_init (void) g_atexit ((GVoidFunc) do_cleanup); gconf_client_add_dir (config, CALENDAR_CONFIG_PREFIX, GCONF_CLIENT_PRELOAD_RECURSIVE, NULL); + + display_events_gradient = gconf_client_get_bool (config, CALENDAR_CONFIG_DISPLAY_EVENTS_GRADIENT, NULL); + display_events_alpha = gconf_client_get_float (config, CALENDAR_CONFIG_DISPLAY_EVENTS_ALPHA, NULL); } void @@ -1017,3 +1022,19 @@ calendar_config_get_default_count (void) return res; } + +gboolean +calendar_config_get_display_events_gradient (void) +{ + calendar_config_init (); + + return display_events_gradient; +} + +gfloat +calendar_config_get_display_events_alpha (void) +{ + calendar_config_init (); + + return display_events_alpha; +} |