46 #define EV_LINK_GET_PRIVATE(object) \
47 (G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_LINK, EvLinkPrivate))
52 g_return_val_if_fail (
EV_IS_LINK (
self), NULL);
54 return self->priv->title;
66 g_return_val_if_fail (
EV_IS_LINK (
self), NULL);
68 return self->priv->action;
75 GParamSpec *param_spec)
83 g_value_set_string (value, self->priv->title);
86 g_value_set_object (value, self->priv->action);
89 G_OBJECT_WARN_INVALID_PROPERTY_ID (
object,
100 GParamSpec *param_spec)
106 self->priv->title = g_value_dup_string (value);
109 self->priv->action = g_value_dup_object (value);
112 G_OBJECT_WARN_INVALID_PROPERTY_ID (
object,
127 g_free (priv->
title);
131 g_clear_object (&priv->
action);
133 G_OBJECT_CLASS (ev_link_parent_class)->finalize (
object);
141 ev_link->priv->title = NULL;
142 ev_link->priv->action = NULL;
148 GObjectClass *g_object_class;
150 g_object_class = G_OBJECT_CLASS (ev_window_class);
157 g_type_class_add_private (g_object_class,
sizeof (
EvLinkPrivate));
159 g_object_class_install_property (g_object_class,
161 g_param_spec_string (
"title",
166 G_PARAM_CONSTRUCT_ONLY |
167 G_PARAM_STATIC_STRINGS));
168 g_object_class_install_property (g_object_class,
170 g_param_spec_object (
"action",
175 G_PARAM_CONSTRUCT_ONLY |
176 G_PARAM_STATIC_STRINGS));