[evince/wip/highlight: 6/16] Defining annotation icon size



commit 773335c97a58ae1f3f58d64633f174315dee36ec
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]