diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-11-15 06:04:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-11-15 06:04:21 +0800 |
commit | 9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91 (patch) | |
tree | 2e1e96f33404781354c422a7e9beaf458ebeb655 /calendar/gui/e-cal-list-view-config.c | |
parent | 7e8f8bb9e5167b0219b48ab3e8062080d3740b0a (diff) | |
download | gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.gz gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.bz2 gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.lz gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.xz gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.zst gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.zip |
** Remove trailing whitespace from source code.
2007-11-14 Matthew Barnes <mbarnes@redhat.com>
** Remove trailing whitespace from source code.
svn path=/trunk/; revision=34537
Diffstat (limited to 'calendar/gui/e-cal-list-view-config.c')
-rw-r--r-- | calendar/gui/e-cal-list-view-config.c | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/calendar/gui/e-cal-list-view-config.c b/calendar/gui/e-cal-list-view-config.c index 13e9bf174c..be8128a14d 100644 --- a/calendar/gui/e-cal-list-view-config.c +++ b/calendar/gui/e-cal-list-view-config.c @@ -1,13 +1,13 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * Author : +/* + * Author : * Rodrigo Moya <rodrigo@ximian.com> * * Copyright 2003, Ximian, Inc. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public + * This program is free software; you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, @@ -44,7 +44,7 @@ e_cal_list_view_config_set_property (GObject *object, guint property_id, const G ECalListViewConfig *view_config; view_config = E_CAL_LIST_VIEW_CONFIG (object); - + switch (property_id) { case PROP_VIEW: e_cal_list_view_config_set_view (view_config, g_value_get_object (value)); @@ -61,7 +61,7 @@ e_cal_list_view_config_get_property (GObject *object, guint property_id, GValue ECalListViewConfig *view_config; view_config = E_CAL_LIST_VIEW_CONFIG (object); - + switch (property_id) { case PROP_VIEW: g_value_set_object (value, e_cal_list_view_config_get_view (view_config)); @@ -76,9 +76,9 @@ static void e_cal_list_view_config_dispose (GObject *object) { ECalListViewConfig *view_config = E_CAL_LIST_VIEW_CONFIG (object); - + e_cal_list_view_config_set_view (view_config, NULL); - + if (G_OBJECT_CLASS (e_cal_list_view_config_parent_class)->dispose) G_OBJECT_CLASS (e_cal_list_view_config_parent_class)->dispose (object); } @@ -88,11 +88,11 @@ e_cal_list_view_config_finalize (GObject *object) { ECalListViewConfig *view_config = E_CAL_LIST_VIEW_CONFIG (object); ECalListViewConfigPrivate *priv; - + priv = view_config->priv; g_free (priv); - + if (G_OBJECT_CLASS (e_cal_list_view_config_parent_class)->finalize) G_OBJECT_CLASS (e_cal_list_view_config_parent_class)->finalize (object); } @@ -102,7 +102,7 @@ e_cal_list_view_config_class_init (ECalListViewConfigClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GParamSpec *spec; - + /* Method override */ gobject_class->set_property = e_cal_list_view_config_set_property; gobject_class->get_property = e_cal_list_view_config_get_property; @@ -125,14 +125,14 @@ ECalListViewConfig * e_cal_list_view_config_new (ECalListView *list_view) { ECalListViewConfig *view_config; - + view_config = g_object_new (e_cal_list_view_config_get_type (), "view", list_view, NULL); return view_config; } ECalListView * -e_cal_list_view_config_get_view (ECalListViewConfig *view_config) +e_cal_list_view_config_get_view (ECalListViewConfig *view_config) { ECalListViewConfigPrivate *priv; @@ -140,16 +140,16 @@ e_cal_list_view_config_get_view (ECalListViewConfig *view_config) g_return_val_if_fail (E_IS_CAL_LIST_VIEW_CONFIG (view_config), NULL); priv = view_config->priv; - + return priv->view; } static void -set_timezone (ECalListView *list_view) +set_timezone (ECalListView *list_view) { icaltimezone *zone; - - zone = calendar_config_get_icaltimezone (); + + zone = calendar_config_get_icaltimezone (); e_calendar_view_set_timezone (E_CALENDAR_VIEW (list_view), zone); } @@ -158,14 +158,14 @@ timezone_changed_cb (GConfClient *client, guint id, GConfEntry *entry, gpointer { ECalListViewConfig *view_config = data; ECalListViewConfigPrivate *priv; - + priv = view_config->priv; - + set_timezone (priv->view); } static void -set_twentyfour_hour (ECalListView *list_view) +set_twentyfour_hour (ECalListView *list_view) { gboolean use_24_hour; @@ -179,29 +179,29 @@ twentyfour_hour_changed_cb (GConfClient *client, guint id, GConfEntry *entry, gp { ECalListViewConfig *view_config = data; ECalListViewConfigPrivate *priv; - + priv = view_config->priv; - + set_twentyfour_hour (priv->view); } void -e_cal_list_view_config_set_view (ECalListViewConfig *view_config, ECalListView *list_view) +e_cal_list_view_config_set_view (ECalListViewConfig *view_config, ECalListView *list_view) { ECalListViewConfigPrivate *priv; guint not; GList *l; - + g_return_if_fail (view_config != NULL); g_return_if_fail (E_IS_CAL_LIST_VIEW_CONFIG (view_config)); priv = view_config->priv; - + if (priv->view) { g_object_unref (priv->view); priv->view = NULL; } - + for (l = priv->notifications; l; l = l->next) calendar_config_remove_notification (GPOINTER_TO_UINT (l->data)); @@ -211,17 +211,17 @@ e_cal_list_view_config_set_view (ECalListViewConfig *view_config, ECalListView * /* If the new view is NULL, return right now */ if (!list_view) return; - + priv->view = g_object_ref (list_view); /* Time zone */ set_timezone (list_view); - + not = calendar_config_add_notification_timezone (timezone_changed_cb, view_config); priv->notifications = g_list_prepend (priv->notifications, GUINT_TO_POINTER (not)); /* 24 Hour format */ - set_twentyfour_hour (list_view); + set_twentyfour_hour (list_view); not = calendar_config_add_notification_24_hour_format (twentyfour_hour_changed_cb, view_config); priv->notifications = g_list_prepend (priv->notifications, GUINT_TO_POINTER (not)); |