Re: [Evolution-hackers] Using an ECalObjModType enum as a property



Hi,

Oh, I had not seen E_TYPE_CAL_OBJ_MOD_TYPE. I was thinking about the
scope of the modifications on a recurrent event, I'm trying another
aproach though.

Thank you for your kind support,

Best regards,


2017-02-10 9:22 GMT+01:00 Milan Crha <mcrha redhat com>:
On Thu, 2017-02-09 at 21:51 +0100, Iñigo Martínez wrote:
   g_object_class_install_property (object_class,
      PROP_MOD_TYPE,
      g_param_spec_enum ("mod-type",
                         "Modification type",
                         "The modification type of the event",
                         ECalObjModType,
                         E_CAL_OBJ_MOD_THIS,
                         G_PARAM_READWRITE));

        Hi,
check the documentation of the g_param_spec_enum(), the parameter is
meant to be a GType, but you pass it an enum name instead. The proper
value comes from e-cal-enum-types.h (included through
libecal/libecal.h, in this case E_TYPE_CAL_OBJ_MOD_TYPE.

By the way, why do you want an object property "mod-type"? It's usually
used as a function argument, not much useful as the object property,
from my point of view. Or you use it as some sort of default?
        Bye,
        Milan
_______________________________________________
evolution-hackers mailing list
evolution-hackers gnome org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-hackers


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