[nautilus] canvas-item: change the maximum text size at standard zoom
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] canvas-item: change the maximum text size at standard zoom
- Date: Sat, 24 Jan 2015 01:10:02 +0000 (UTC)
commit 8b53911af454e9ceabf6425fa88a352c4e4286f2
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Jan 21 17:45:19 2015 -0800
canvas-item: change the maximum text size at standard zoom
To match mockups.
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 11d85a2..a6cf99c 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]