[epiphany] Center the favicon vertically on the drag surface



commit 0b1e5e06d043057ae1126f468fd40bf6fb4190b9
Author: William Jon McCann <william jon mccann gmail com>
Date:   Sat Dec 21 07:18:19 2013 -0500

    Center the favicon vertically on the drag surface
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720876

 lib/widgets/ephy-location-entry.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index c26d38f..fd148a5 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -682,8 +682,8 @@ sanitize_location (char **url)
        }
 }
 
-#define DRAG_ICON_LAYOUT_PADDING       2
-#define DRAG_ICON_ICON_PADDING         4
+#define DRAG_ICON_LAYOUT_PADDING       4
+#define DRAG_ICON_ICON_PADDING         10
 #define DRAG_ICON_MAX_WIDTH_CHARS      32
 
 static cairo_surface_t *
@@ -794,7 +794,7 @@ favicon_create_drag_surface (EphyLocationEntry *entry,
                double y;
 
                x = 1 + DRAG_ICON_LAYOUT_PADDING + DRAG_ICON_ICON_PADDING;
-               y = 1 + DRAG_ICON_LAYOUT_PADDING + (surface_height - icon_height) / 2;
+               y = (surface_height - icon_height) / 2;
                gdk_cairo_set_source_pixbuf (cr, favicon, x, y);
                cairo_rectangle (cr, x, y, icon_width, icon_height);
                cairo_fill (cr);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]