summaryrefslogtreecommitdiff
path: root/libdocument/ev-layer.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-09 11:47:09 +0100
committerinfirit <[email protected]>2014-12-09 23:02:26 +0100
commit1feffa2b7fba6bab62fe044777dad6e3278e848b (patch)
tree8970004f77c2d389d421d13aca7ad9d46c9601b8 /libdocument/ev-layer.c
parente155e2912b35146d5c9abba4a4f96530eee97dec (diff)
downloadatril-1feffa2b7fba6bab62fe044777dad6e3278e848b.tar.bz2
atril-1feffa2b7fba6bab62fe044777dad6e3278e848b.tar.xz
Do not cache layers in the backends
se g_object_set_data instead, to attach the backend object to the evince layer. Based on evince commit: 08993c59369086fa8916236f580438d656ccb8f7 From: Carlos Garcia Campos <[email protected]>
Diffstat (limited to 'libdocument/ev-layer.c')
-rw-r--r--libdocument/ev-layer.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/libdocument/ev-layer.c b/libdocument/ev-layer.c
index cb86cca4..cb735164 100644
--- a/libdocument/ev-layer.c
+++ b/libdocument/ev-layer.c
@@ -22,9 +22,8 @@
#include "ev-layer.h"
struct _EvLayerPrivate {
- guint id;
- gboolean is_parent;
- gint rb_group;
+ gboolean is_parent;
+ gint rb_group;
};
#define EV_LAYER_GET_PRIVATE(object) \
@@ -47,28 +46,18 @@ ev_layer_init (EvLayer *layer)
}
EvLayer *
-ev_layer_new (guint layer_id,
- gboolean is_parent,
+ev_layer_new (gboolean is_parent,
gint rb_group)
{
EvLayer *layer;
layer = EV_LAYER (g_object_new (EV_TYPE_LAYER, NULL));
- layer->priv->id = layer_id;
layer->priv->is_parent = is_parent;
layer->priv->rb_group = rb_group;
return layer;
}
-guint
-ev_layer_get_id (EvLayer *layer)
-{
- g_return_val_if_fail (EV_IS_LAYER (layer), 0);
-
- return layer->priv->id;
-}
-
gboolean
ev_layer_is_parent (EvLayer *layer)
{