[evince/wip/highlight: 49/59] Defining annotation icon size
- From: Giselle Reis <gisellemnr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/highlight: 49/59] Defining annotation icon size
- Date: Sun, 2 Nov 2014 10:59:09 +0000 (UTC)
commit 34956926b6c49d27b83f8ecc0788da9cdb22dc77
Author: Giselle Machado <gisellemnr src gnome org>
Date: Sat Jul 26 09:31:28 2014 +0200
Defining annotation icon size
libview/ev-view.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 301f85e..7adb322 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -108,6 +108,8 @@ typedef struct {
#define EV_STYLE_CLASS_DOCUMENT_PAGE "document-page"
#define EV_STYLE_CLASS_INVERTED "inverted"
+#define ANNOTATION_ICON_SIZE 24
+
/*** Scrolling ***/
static void view_update_range_and_current_page (EvView *view);
static void ensure_rectangle_is_visible (EvView *view,
@@ -3181,8 +3183,8 @@ ev_view_create_annotation (EvView *view,
case EV_ANNOTATION_TYPE_TEXT: {
doc_rect.x1 = begin.x;
doc_rect.y1 = begin.y;
- doc_rect.x2 = doc_rect.x1 + 24;
- doc_rect.y2 = doc_rect.y1 + 24;
+ doc_rect.x2 = doc_rect.x1 + ANNOTATION_ICON_SIZE;
+ doc_rect.y2 = doc_rect.y1 + ANNOTATION_ICON_SIZE;
annot = ev_annotation_text_new (page);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]