[evolution/wip/mcrha/eds-libical-glib] Make ECalModel::timezone a GObject property
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/mcrha/eds-libical-glib] Make ECalModel::timezone a GObject property
- Date: Thu, 25 Apr 2019 08:40:15 +0000 (UTC)
commit f6c39356bea9e58f32e2c2a6a61b3887d1cc9c39
Author: Milan Crha <mcrha redhat com>
Date: Thu Apr 25 10:41:43 2019 +0200
Make ECalModel::timezone a GObject property
src/calendar/gui/e-cal-model.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/calendar/gui/e-cal-model.c b/src/calendar/gui/e-cal-model.c
index af436480ba..d8d4cfdbdf 100644
--- a/src/calendar/gui/e-cal-model.c
+++ b/src/calendar/gui/e-cal-model.c
@@ -695,7 +695,7 @@ cal_model_set_property (GObject *object,
case PROP_TIMEZONE:
e_cal_model_set_timezone (
E_CAL_MODEL (object),
- g_value_get_pointer (value));
+ g_value_get_object (value));
return;
case PROP_USE_24_HOUR_FORMAT:
@@ -948,7 +948,7 @@ cal_model_get_property (GObject *object,
return;
case PROP_TIMEZONE:
- g_value_set_pointer (
+ g_value_set_object (
value,
e_cal_model_get_timezone (
E_CAL_MODEL (object)));
@@ -2185,10 +2185,11 @@ e_cal_model_class_init (ECalModelClass *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]