diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-05-23 17:13:54 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-05-23 17:13:54 (GMT) |
commit | 44205a9ede6bde99d7594a9c531521540acc7e81 (patch) | |
tree | 08b38b135eed1bd2b85866092d5ae972b7f25d8a /libdocument/ev-annotation.c | |
parent | 8dbd7b00f71be8b78198b2c713ae071c2dd77d11 (diff) |
[libdcoument] Remove all Ev*Mapping types
Diffstat (limited to 'libdocument/ev-annotation.c')
-rw-r--r-- | libdocument/ev-annotation.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c index 3245593..7d2810f 100644 --- a/libdocument/ev-annotation.c +++ b/libdocument/ev-annotation.c @@ -359,62 +359,3 @@ ev_annotation_text_markup_iface_init (EvAnnotationMarkupIface *iface) { } -/* Annotation Mapping stuff */ -static void -ev_annotation_mapping_free_foreach (EvAnnotationMapping *mapping) -{ - g_object_unref (mapping->annotation); - g_free (mapping); -} - -void -ev_annotation_mapping_free (GList *annotation_mapping) -{ - if (!annotation_mapping) - return; - - g_list_foreach (annotation_mapping, (GFunc) ev_annotation_mapping_free_foreach, NULL); - g_list_free (annotation_mapping); -} - -EvAnnotation * -ev_annotation_mapping_find (GList *annotation_mapping, - gdouble x, - gdouble y) -{ - GList *list; - - for (list = annotation_mapping; list; list = list->next) { - EvAnnotationMapping *mapping = list->data; - - if ((x >= mapping->x1) && - (y >= mapping->y1) && - (x <= mapping->x2) && - (y <= mapping->y2)) { - return mapping->annotation; - } - } - - return NULL; -} - -void -ev_annotation_mapping_get_area (GList *annotation_mapping, - EvAnnotation *annotation, - EvRectangle *area) -{ - GList *list; - - for (list = annotation_mapping; list; list = list->next) { - EvAnnotationMapping *mapping = list->data; - - if (mapping->annotation == annotation) { - area->x1 = mapping->x1; - area->y1 = mapping->y1; - area->x2 = mapping->x2; - area->y2 = mapping->y2; - - break; - } - } -} |