diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2015-01-21 17:45:19 -0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2015-01-22 17:02:23 -0800 |
commit | aba6f7d28b8a1ceb912626cb055e99ce807cfc85 (patch) | |
tree | 334189896bb8a96e4f7c7f203601797782c710bb | |
parent | 4f3446428fb3cf9a36d49e2b48755577e2204066 (diff) | |
download | nautilus-aba6f7d28b8a1ceb912626cb055e99ce807cfc85.tar.gz |
canvas-item: change the maximum text size at standard zoom
To match mockups.
-rw-r--r-- | libnautilus-private/nautilus-canvas-item.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libnautilus-private/nautilus-canvas-item.c b/libnautilus-private/nautilus-canvas-item.c index 11d85a2a9..a6cf99c9b 100644 --- a/libnautilus-private/nautilus-canvas-item.c +++ b/libnautilus-private/nautilus-canvas-item.c @@ -49,9 +49,13 @@ #define LABEL_OFFSET 1 #define LABEL_LINE_SPACING 0 +/* Text padding */ +#define TEXT_BACK_PADDING_X 4 +#define TEXT_BACK_PADDING_Y 1 + /* Width of the label with the standard icon size NAUTILUS_CANVAS_ICON_SIZE_STANDARD. * It will adapt to other sizes keeping the same space.*/ -#define MAX_TEXT_WIDTH_STANDARD 110 +#define MAX_TEXT_WIDTH_STANDARD (134 - 2 * TEXT_BACK_PADDING_X) /* special text height handling * each item has three text height variables: @@ -670,9 +674,6 @@ layout_get_size_for_layout (PangoLayout *layout, } } -#define TEXT_BACK_PADDING_X 4 -#define TEXT_BACK_PADDING_Y 1 - static void prepare_pango_layout_width (NautilusCanvasItem *item, PangoLayout *layout) |