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-date-edit-config.c | |
parent | 7e8f8bb9e5167b0219b48ab3e8062080d3740b0a (diff) | |
download | gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.gz 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-date-edit-config.c')
-rw-r--r-- | calendar/gui/e-date-edit-config.c | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/calendar/gui/e-date-edit-config.c b/calendar/gui/e-date-edit-config.c index f3c9895fe7..bc3752f3ca 100644 --- a/calendar/gui/e-date-edit-config.c +++ b/calendar/gui/e-date-edit-config.c @@ -1,12 +1,12 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * Author : +/* + * Author : * JP Rosevear <jpr@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, @@ -43,7 +43,7 @@ e_date_edit_config_set_property (GObject *object, guint property_id, const GValu EDateEditConfig *edit_config; edit_config = E_DATE_EDIT_CONFIG (object); - + switch (property_id) { case PROP_EDIT: e_date_edit_config_set_edit (edit_config, g_value_get_object (value)); @@ -60,7 +60,7 @@ e_date_edit_config_get_property (GObject *object, guint property_id, GValue *val EDateEditConfig *edit_config; edit_config = E_DATE_EDIT_CONFIG (object); - + switch (property_id) { case PROP_EDIT: g_value_set_object (value, e_date_edit_config_get_edit (edit_config)); @@ -75,9 +75,9 @@ static void e_date_edit_config_dispose (GObject *object) { EDateEditConfig *edit_config = E_DATE_EDIT_CONFIG (object); - + e_date_edit_config_set_edit (edit_config, NULL); - + if (G_OBJECT_CLASS (e_date_edit_config_parent_class)->dispose) G_OBJECT_CLASS (e_date_edit_config_parent_class)->dispose (object); } @@ -87,11 +87,11 @@ e_date_edit_config_finalize (GObject *object) { EDateEditConfig *edit_config = E_DATE_EDIT_CONFIG (object); EDateEditConfigPrivate *priv; - + priv = edit_config->priv; g_free (priv); - + if (G_OBJECT_CLASS (e_date_edit_config_parent_class)->finalize) G_OBJECT_CLASS (e_date_edit_config_parent_class)->finalize (object); } @@ -101,7 +101,7 @@ e_date_edit_config_class_init (EDateEditConfigClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GParamSpec *spec; - + /* Method override */ gobject_class->set_property = e_date_edit_config_set_property; gobject_class->get_property = e_date_edit_config_get_property; @@ -124,14 +124,14 @@ EDateEditConfig * e_date_edit_config_new (EDateEdit *date_edit) { EDateEditConfig *edit_config; - + edit_config = g_object_new (e_date_edit_config_get_type (), "edit", date_edit, NULL); return edit_config; } EDateEdit * -e_date_edit_config_get_edit (EDateEditConfig *edit_config) +e_date_edit_config_get_edit (EDateEditConfig *edit_config) { EDateEditConfigPrivate *priv; @@ -139,14 +139,14 @@ e_date_edit_config_get_edit (EDateEditConfig *edit_config) g_return_val_if_fail (E_IS_DATE_EDIT_CONFIG (edit_config), NULL); priv = edit_config->priv; - + return priv->edit; } static void -set_week_start (EDateEdit *date_edit) +set_week_start (EDateEdit *date_edit) { - int week_start_day; + int week_start_day; week_start_day = calendar_config_get_week_start_day (); @@ -161,14 +161,14 @@ week_start_changed_cb (GConfClient *client, guint id, GConfEntry *entry, gpointe { EDateEditConfig *edit_config = data; EDateEditConfigPrivate *priv; - + priv = edit_config->priv; - + set_week_start (priv->edit); } static void -set_twentyfour_hour (EDateEdit *date_edit) +set_twentyfour_hour (EDateEdit *date_edit) { gboolean use_24_hour; @@ -182,14 +182,14 @@ twentyfour_hour_changed_cb (GConfClient *client, guint id, GConfEntry *entry, gp { EDateEditConfig *edit_config = data; EDateEditConfigPrivate *priv; - + priv = edit_config->priv; - + set_twentyfour_hour (priv->edit); } static void -set_dnav_show_week_no (EDateEdit *date_edit) +set_dnav_show_week_no (EDateEdit *date_edit) { gboolean show_week_no; @@ -203,28 +203,28 @@ dnav_show_week_no_changed_cb (GConfClient *client, guint id, GConfEntry *entry, { EDateEditConfig *edit_config = data; EDateEditConfigPrivate *priv; - + priv = edit_config->priv; - + set_dnav_show_week_no (priv->edit); } void -e_date_edit_config_set_edit (EDateEditConfig *edit_config, EDateEdit *date_edit) +e_date_edit_config_set_edit (EDateEditConfig *edit_config, EDateEdit *date_edit) { EDateEditConfigPrivate *priv; guint not; GList *l; - + g_return_if_fail (edit_config != NULL); g_return_if_fail (E_IS_DATE_EDIT_CONFIG (edit_config)); priv = edit_config->priv; - + if (priv->edit) { g_object_unref (priv->edit); priv->edit = NULL; } - + for (l = priv->notifications; l; l = l->next) calendar_config_remove_notification (GPOINTER_TO_UINT (l->data)); @@ -234,17 +234,17 @@ e_date_edit_config_set_edit (EDateEditConfig *edit_config, EDateEdit *date_edit) /* If the new edit is NULL, return right now */ if (!date_edit) return; - + priv->edit = g_object_ref (date_edit); /* Week start */ - set_week_start (date_edit); + set_week_start (date_edit); not = calendar_config_add_notification_week_start_day (week_start_changed_cb, edit_config); priv->notifications = g_list_prepend (priv->notifications, GUINT_TO_POINTER (not)); /* 24 Hour format */ - set_twentyfour_hour (date_edit); + set_twentyfour_hour (date_edit); not = calendar_config_add_notification_24_hour_format (twentyfour_hour_changed_cb, edit_config); priv->notifications = g_list_prepend (priv->notifications, GUINT_TO_POINTER (not)); |