[evolution] Correct type of ECalDataModel::timezone property
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Correct type of ECalDataModel::timezone property
- Date: Fri, 17 May 2019 21:32:43 +0000 (UTC)
commit 15a5bcaf5de4ff85648918d4226142b55d88bed0
Author: Milan Crha <mcrha redhat com>
Date: Fri May 17 23:34:34 2019 +0200
Correct type of ECalDataModel::timezone property
src/calendar/gui/e-cal-data-model.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/calendar/gui/e-cal-data-model.c b/src/calendar/gui/e-cal-data-model.c
index 82c7f7cc45..81d45bd796 100644
--- a/src/calendar/gui/e-cal-data-model.c
+++ b/src/calendar/gui/e-cal-data-model.c
@@ -1986,7 +1986,7 @@ cal_data_model_set_property (GObject *object,
case PROP_TIMEZONE:
e_cal_data_model_set_timezone (
E_CAL_DATA_MODEL (object),
- g_value_get_pointer (value));
+ g_value_get_object (value));
return;
case PROP_SKIP_CANCELLED:
@@ -2014,7 +2014,7 @@ cal_data_model_get_property (GObject *object,
return;
case PROP_TIMEZONE:
- g_value_set_pointer (
+ g_value_set_object (
value,
e_cal_data_model_get_timezone (
E_CAL_DATA_MODEL (object)));
@@ -2088,10 +2088,11 @@ e_cal_data_model_class_init (ECalDataModelClass *class)
g_object_class_install_property (
object_class,
PROP_TIMEZONE,
- g_param_spec_pointer (
+ g_param_spec_object (
"timezone",
"Time Zone",
NULL,
+ I_CAL_TYPE_TIMEZONE,
G_PARAM_READWRITE));
g_object_class_install_property (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]