#include <config.h>
#include "ev-link.h"
Go to the source code of this file.
Enumerator |
---|
PROP_0 |
|
PROP_TITLE |
|
PROP_ACTION |
|
Definition at line 24 of file ev-link.c.
static void ev_link_class_init |
( |
EvLinkClass * |
ev_window_class) | |
|
|
static |
Definition at line 146 of file ev-link.c.
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));
static void ev_link_finalize |
( |
GObject * |
object) | |
|
|
static |
Definition at line 120 of file ev-link.c.
127 g_free (priv->
title);
131 g_clear_object (&priv->
action);
133 G_OBJECT_CLASS (ev_link_parent_class)->finalize (
object);
ev_link_get_action: : an EvLink
Returns: (transfer none): an EvLinkAction
Definition at line 64 of file ev-link.c.
66 g_return_val_if_fail (
EV_IS_LINK (
self), NULL);
68 return self->priv->action;
static void ev_link_get_property |
( |
GObject * |
object, |
|
|
guint |
prop_id, |
|
|
GValue * |
value, |
|
|
GParamSpec * |
param_spec |
|
) |
| |
|
static |
Definition at line 72 of file ev-link.c.
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,
const gchar* ev_link_get_title |
( |
EvLink * |
self) | |
|
Definition at line 50 of file ev-link.c.
52 g_return_val_if_fail (
EV_IS_LINK (
self), NULL);
54 return self->priv->title;
static void ev_link_init |
( |
EvLink * |
ev_link) | |
|
|
static |
Definition at line 137 of file ev-link.c.
141 ev_link->priv->title = NULL;
142 ev_link->priv->action = NULL;
static void ev_link_set_property |
( |
GObject * |
object, |
|
|
guint |
prop_id, |
|
|
const GValue * |
value, |
|
|
GParamSpec * |
param_spec |
|
) |
| |
|
static |
Definition at line 97 of file ev-link.c.
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,