[evolution] EMeetingStore: Removed unused "week-start-day" property.



commit 5c13485203337f8676abc9ba299c25ea52f5943c
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Mar 9 07:18:07 2013 -0500

    EMeetingStore: Removed unused "week-start-day" property.

 calendar/gui/e-meeting-store.c              |   52 +--------------------------
 calendar/gui/e-meeting-store.h              |    5 ---
 modules/settings/e-settings-meeting-store.c |    5 ---
 3 files changed, 1 insertions(+), 61 deletions(-)
---
diff --git a/calendar/gui/e-meeting-store.c b/calendar/gui/e-meeting-store.c
index 4d53037..ae10d60 100644
--- a/calendar/gui/e-meeting-store.c
+++ b/calendar/gui/e-meeting-store.c
@@ -57,8 +57,6 @@ struct _EMeetingStorePrivate {
        gint default_reminder_interval;
        EDurationType default_reminder_units;
 
-       gint week_start_day;
-
        gchar *fb_uri;
 
        GPtrArray *refresh_queue;
@@ -95,8 +93,7 @@ enum {
        PROP_DEFAULT_REMINDER_INTERVAL,
        PROP_DEFAULT_REMINDER_UNITS,
        PROP_FREE_BUSY_TEMPLATE,
-       PROP_TIMEZONE,
-       PROP_WEEK_START_DAY
+       PROP_TIMEZONE
 };
 
 /* Forward Declarations */
@@ -667,12 +664,6 @@ meeting_store_set_property (GObject *object,
                                E_MEETING_STORE (object),
                                g_value_get_pointer (value));
                        return;
-
-               case PROP_WEEK_START_DAY:
-                       e_meeting_store_set_week_start_day (
-                               E_MEETING_STORE (object),
-                               g_value_get_int (value));
-                       return;
        }
 
        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
@@ -719,13 +710,6 @@ meeting_store_get_property (GObject *object,
                                e_meeting_store_get_timezone (
                                E_MEETING_STORE (object)));
                        return;
-
-               case PROP_WEEK_START_DAY:
-                       g_value_set_int (
-                               value,
-                               e_meeting_store_get_week_start_day (
-                               E_MEETING_STORE (object)));
-                       return;
        }
 
        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
@@ -827,18 +811,6 @@ e_meeting_store_class_init (EMeetingStoreClass *class)
                        "Timezone",
                        NULL,
                        G_PARAM_READWRITE));
-
-       g_object_class_install_property (
-               object_class,
-               PROP_WEEK_START_DAY,
-               g_param_spec_int (
-                       "week-start-day",
-                       "Week Start Day",
-                       NULL,
-                       0,  /* Monday */
-                       6,  /* Sunday */
-                       0,
-                       G_PARAM_READWRITE));
 }
 
 static void
@@ -983,28 +955,6 @@ e_meeting_store_set_timezone (EMeetingStore *store,
        g_object_notify (G_OBJECT (store), "timezone");
 }
 
-gint
-e_meeting_store_get_week_start_day (EMeetingStore *store)
-{
-       g_return_val_if_fail (E_IS_MEETING_STORE (store), 0);
-
-       return store->priv->week_start_day;
-}
-
-void
-e_meeting_store_set_week_start_day (EMeetingStore *store,
-                                    gint week_start_day)
-{
-       g_return_if_fail (E_IS_MEETING_STORE (store));
-
-       if (store->priv->week_start_day == week_start_day)
-               return;
-
-       store->priv->week_start_day = week_start_day;
-
-       g_object_notify (G_OBJECT (store), "week-start-day");
-}
-
 static void
 attendee_changed_cb (EMeetingAttendee *attendee,
                      gpointer data)
diff --git a/calendar/gui/e-meeting-store.h b/calendar/gui/e-meeting-store.h
index 27c1f9a..97262a5 100644
--- a/calendar/gui/e-meeting-store.h
+++ b/calendar/gui/e-meeting-store.h
@@ -109,11 +109,6 @@ void               e_meeting_store_set_free_busy_template
 icaltimezone * e_meeting_store_get_timezone    (EMeetingStore *meeting_store);
 void           e_meeting_store_set_timezone    (EMeetingStore *meeting_store,
                                                 icaltimezone *timezone);
-gint           e_meeting_store_get_week_start_day
-                                               (EMeetingStore *meeting_store);
-void           e_meeting_store_set_week_start_day
-                                               (EMeetingStore *meeting_store,
-                                                gint week_start_day);
 void           e_meeting_store_add_attendee    (EMeetingStore *meeting_store,
                                                 EMeetingAttendee *attendee);
 EMeetingAttendee *
diff --git a/modules/settings/e-settings-meeting-store.c b/modules/settings/e-settings-meeting-store.c
index 433adda..a932cfc 100644
--- a/modules/settings/e-settings-meeting-store.c
+++ b/modules/settings/e-settings-meeting-store.c
@@ -72,11 +72,6 @@ settings_meeting_store_constructed (GObject *object)
                extensible, "timezone",
                G_BINDING_SYNC_CREATE);
 
-       g_object_bind_property (
-               shell_settings, "cal-week-start-day",
-               extensible, "week-start-day",
-               G_BINDING_SYNC_CREATE);
-
        /* Chain up to parent's constructed() method. */
        G_OBJECT_CLASS (e_settings_meeting_store_parent_class)->
                constructed (object);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]