[nautilus/wip/cosimoc/zoom-levels-v2: 13/16] canvas-item: make a method private
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/cosimoc/zoom-levels-v2: 13/16] canvas-item: make a method private
- Date: Sat, 20 Feb 2016 23:53:00 +0000 (UTC)
commit bacb2aca717213e76bcb8b4f9647c455be541820
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Feb 20 15:39:12 2016 -0800
canvas-item: make a method private
libnautilus-private/nautilus-canvas-item.c | 20 ++++++++++----------
libnautilus-private/nautilus-canvas-item.h | 1 -
2 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/libnautilus-private/nautilus-canvas-item.c b/libnautilus-private/nautilus-canvas-item.c
index c9a3711..44991e8 100644
--- a/libnautilus-private/nautilus-canvas-item.c
+++ b/libnautilus-private/nautilus-canvas-item.c
@@ -672,6 +672,16 @@ layout_get_size_for_layout (PangoLayout *layout,
}
}
+static double
+nautilus_canvas_item_get_max_text_width (NautilusCanvasItem *item)
+{
+ EelCanvasItem *canvas_item;
+
+ canvas_item = EEL_CANVAS_ITEM (item);
+
+ return MAX_TEXT_WIDTH_STANDARD * canvas_item->canvas->pixels_per_unit;
+}
+
static void
prepare_pango_layout_width (NautilusCanvasItem *item,
PangoLayout *layout)
@@ -1778,16 +1788,6 @@ nautilus_canvas_item_hit_test_rectangle (NautilusCanvasItem *item, EelIRect icon
return hit_test (item, icon_rect);
}
-double
-nautilus_canvas_item_get_max_text_width (NautilusCanvasItem *item)
-{
- EelCanvasItem *canvas_item;
-
- canvas_item = EEL_CANVAS_ITEM (item);
-
- return MAX_TEXT_WIDTH_STANDARD * canvas_item->canvas->pixels_per_unit;
-}
-
void
nautilus_canvas_item_set_entire_text (NautilusCanvasItem *item,
gboolean entire_text)
diff --git a/libnautilus-private/nautilus-canvas-item.h b/libnautilus-private/nautilus-canvas-item.h
index 998a601..76059d5 100644
--- a/libnautilus-private/nautilus-canvas-item.h
+++ b/libnautilus-private/nautilus-canvas-item.h
@@ -72,7 +72,6 @@ void nautilus_canvas_item_set_emblems (NautilusCanvasItem
GList *emblem_pixbufs);
void nautilus_canvas_item_set_show_stretch_handles (NautilusCanvasItem *item,
gboolean show_stretch_handles);
-double nautilus_canvas_item_get_max_text_width (NautilusCanvasItem *item);
/* geometry and hit testing */
gboolean nautilus_canvas_item_hit_test_rectangle (NautilusCanvasItem *item,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]