aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-06-18 21:34:33 +0800
committerMilan Crha <mcrha@redhat.com>2012-06-18 21:35:44 +0800
commit6c05b09be16ac8eceb17653c3c26c0c6f963ef10 (patch)
tree5bb22771cf05419f851373ee43b1ad39a0dcfeaa /calendar/gui/e-day-view.c
parente045e6f12324e1063a87488ac298fd23affea581 (diff)
downloadgsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.tar.gz
gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.tar.zst
gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.zip
Do not call g_object_notify() when property didn't change
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 4d15f03939..da77c4d51d 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -2827,6 +2827,9 @@ e_day_view_marcus_bains_set_show_line (EDayView *day_view,
{
g_return_if_fail (E_IS_DAY_VIEW (day_view));
+ if ((day_view->marcus_bains_show_line ? 1 : 0) == (show_line ? 1 : 0))
+ return;
+
day_view->marcus_bains_show_line = show_line;
e_day_view_marcus_bains_update (day_view);
@@ -2848,6 +2851,9 @@ e_day_view_marcus_bains_set_day_view_color (EDayView *day_view,
{
g_return_if_fail (E_IS_DAY_VIEW (day_view));
+ if (g_strcmp0 (day_view->marcus_bains_day_view_color, day_view_color) == 0)
+ return;
+
g_free (day_view->marcus_bains_day_view_color);
day_view->marcus_bains_day_view_color = g_strdup (day_view_color);
@@ -2870,6 +2876,9 @@ e_day_view_marcus_bains_set_time_bar_color (EDayView *day_view,
{
g_return_if_fail (E_IS_DAY_VIEW (day_view));
+ if (g_strcmp0 (day_view->marcus_bains_time_bar_color, time_bar_color) == 0)
+ return;
+
g_free (day_view->marcus_bains_time_bar_color);
day_view->marcus_bains_time_bar_color = g_strdup (time_bar_color);