[nautilus/wip/cosimoc/zoom-levels-v2: 16/16] canvas-item: don't multiply padding for label
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/cosimoc/zoom-levels-v2: 16/16] canvas-item: don't multiply padding for label
- Date: Sat, 20 Feb 2016 23:53:15 +0000 (UTC)
commit b31ab7b5894069cda3d2a498785a6ad02b95b6d2
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Feb 20 15:51:31 2016 -0800
canvas-item: don't multiply padding for label
Avoid multiplying the horizontal padding in the label with the zoom level.
libnautilus-private/nautilus-canvas-item.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-canvas-item.c b/libnautilus-private/nautilus-canvas-item.c
index 4d2f0fb..dbd6fe9 100644
--- a/libnautilus-private/nautilus-canvas-item.c
+++ b/libnautilus-private/nautilus-canvas-item.c
@@ -55,7 +55,7 @@
/* 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 (107 - 2 * TEXT_BACK_PADDING_X)
+#define MAX_TEXT_WIDTH_STANDARD 110
/* special text height handling
* each item has three text height variables:
@@ -679,7 +679,7 @@ nautilus_canvas_item_get_max_text_width (NautilusCanvasItem *item)
canvas_item = EEL_CANVAS_ITEM (item);
- return MAX_TEXT_WIDTH_STANDARD * canvas_item->canvas->pixels_per_unit;
+ return MAX_TEXT_WIDTH_STANDARD * canvas_item->canvas->pixels_per_unit - 2 * TEXT_BACK_PADDING_X;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]