summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael@ximian.com>2002-02-21 10:10:59 +0000
committerMichael Meeks <michael@src.gnome.org>2002-02-21 10:10:59 +0000
commit004fb1ff2ca1a1da0827e212b5e3161105ea88ad (patch)
tree81e2faa73ed9b15e9c79165f61d99a57a5a6ba1e
parent4c998001e3bfa8a87c646c596ca1354f82398149 (diff)
downloadnautilus-004fb1ff2ca1a1da0827e212b5e3161105ea88ad.tar.gz
do the clipping with a new eel method.
2002-02-20 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-icon-factory.c (embed_text): do the clipping with a new eel method.
-rw-r--r--ChangeLog5
-rw-r--r--libnautilus-private/nautilus-icon-factory.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index ba7f837da..26fdceaca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-20 Michael Meeks <michael@ximian.com>
+
+ * libnautilus-private/nautilus-icon-factory.c
+ (embed_text): do the clipping with a new eel method.
+
2002-02-21 Kjartan Maraas <kmaraas@gnome.org>
* src/nautilus-main.c: Use GETTEXT_PACKAGE, not just PACKAGE
diff --git a/libnautilus-private/nautilus-icon-factory.c b/libnautilus-private/nautilus-icon-factory.c
index cb48dbb59..a083184b5 100644
--- a/libnautilus-private/nautilus-icon-factory.c
+++ b/libnautilus-private/nautilus-icon-factory.c
@@ -2199,10 +2199,9 @@ embed_text (GdkPixbuf *pixbuf_without_text,
pango_layout_set_text (layout, text, -1);
pixbuf_with_text = gdk_pixbuf_copy (pixbuf_without_text);
- /* FIXME: Need a version of eel_gdk_pixbuf_draw_layout that does clipping. */
- eel_gdk_pixbuf_draw_layout (pixbuf_with_text,
- text_rect.x0, text_rect.y0,
- EEL_RGB_COLOR_BLACK, layout);
+ eel_gdk_pixbuf_draw_layout_clipped (pixbuf_with_text,
+ text_rect,
+ EEL_RGB_COLOR_BLACK, layout);
g_object_unref (layout);
return pixbuf_with_text;