diff options
author | Damon Chaplin <damon@ximian.com> | 2001-06-20 10:45:03 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-06-20 10:45:03 +0800 |
commit | c9e9b9a7bd01883daf4ac57e83233aae40bf1439 (patch) | |
tree | 0b643f97f41de9355181a2382766597affba8069 /calendar/gui/e-timezone-entry.c | |
parent | 9a4a29271b96abd78516fde1c5dda1eea8552251 (diff) | |
download | gsoc2013-evolution-c9e9b9a7bd01883daf4ac57e83233aae40bf1439.tar.gz gsoc2013-evolution-c9e9b9a7bd01883daf4ac57e83233aae40bf1439.tar.zst gsoc2013-evolution-c9e9b9a7bd01883daf4ac57e83233aae40bf1439.zip |
added a 'Time zone' setting. Also rearranged a little, adding a new
2001-06-19 Damon Chaplin <damon@ximian.com>
* gui/dialogs/cal-prefs-dialog.c: added a 'Time zone' setting. Also
rearranged a little, adding a new 'General' page, since we had too
many settings on the 'Calendar' page.
* gui/e-timezone-entry.[hc]:
* gui/dialogs/e-timezone-dialog.[hc]:
* gui/dialogs/comp-editor.c:
* gui/dialogs/comp-editor-page.[hc]:
* gui/dialogs/event-page.c:
* gui/dialogs/task-details-page.c:
* gui/dialogs/task-page.c: removed CalClient stuff. The timezone dialog
now uses the timezone data directly from the client's libical library.
svn path=/trunk/; revision=10321
Diffstat (limited to 'calendar/gui/e-timezone-entry.c')
-rw-r--r-- | calendar/gui/e-timezone-entry.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/calendar/gui/e-timezone-entry.c b/calendar/gui/e-timezone-entry.c index 6bf7625c32..ff54a92da4 100644 --- a/calendar/gui/e-timezone-entry.c +++ b/calendar/gui/e-timezone-entry.c @@ -42,8 +42,6 @@ struct _ETimezoneEntryPrivate { GtkWidget *entry; GtkWidget *button; - - CalClient *client; }; @@ -175,11 +173,6 @@ e_timezone_entry_destroy (GtkObject *object) tentry = E_TIMEZONE_ENTRY (object); priv = tentry->priv; - if (priv->client) { - gtk_object_unref (GTK_OBJECT (priv->client)); - priv->client = NULL; - } - g_free (tentry->priv); tentry->priv = NULL; @@ -202,7 +195,6 @@ on_button_clicked (GtkWidget *widget, priv = tentry->priv; timezone_dialog = e_timezone_dialog_new (); - e_timezone_dialog_set_cal_client (timezone_dialog, priv->client); zone = e_timezone_entry_get_timezone (tentry); e_timezone_dialog_set_timezone (timezone_dialog, zone); @@ -217,39 +209,6 @@ on_button_clicked (GtkWidget *widget, } -/** - * e_timezone_entry_set_cal_client: - * @tentry: An #ETimezoneEntry. - * @client: Calendar client. - * - * Sets the calendar client that the timezone entry uses to get the timezone - * information. - **/ -void -e_timezone_entry_set_cal_client (ETimezoneEntry *tentry, CalClient *client) -{ - ETimezoneEntryPrivate *priv; - - g_return_if_fail (tentry != NULL); - g_return_if_fail (E_IS_TIMEZONE_ENTRY (tentry)); - - priv = tentry->priv; - - if (client == priv->client) - return; - - if (client) { - g_return_if_fail (IS_CAL_CLIENT (client)); - gtk_object_ref (GTK_OBJECT (client)); - } - - if (priv->client) - gtk_object_unref (GTK_OBJECT (priv->client)); - - priv->client = client; -} - - static void on_entry_changed (GtkEntry *entry, ETimezoneEntry *tentry) |