[evince/wip/highlight: 135/145] Defining annotation icon size



commit 16f53480829b804e1b6d5eee2f1d2e66f573894f
Author: Giselle Machado <gisellemnr src gnome org>
Date:   Sat Jul 26 09:31:28 2014 +0200

    Defining annotation icon size

 libview/ev-view.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index e703656..f37b67a 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -110,6 +110,7 @@ typedef struct {
 
 #define ANNOT_POPUP_WINDOW_DEFAULT_WIDTH  200
 #define ANNOT_POPUP_WINDOW_DEFAULT_HEIGHT 150
+#define ANNOTATION_ICON_SIZE 24
 
 /*** Scrolling ***/
 static void       view_update_range_and_current_page         (EvView             *view);
@@ -3215,8 +3216,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]