summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-icon-canvas-item.c
diff options
context:
space:
mode:
authorAndy Hertzfeld <andy@src.gnome.org>2000-09-21 22:44:09 +0000
committerAndy Hertzfeld <andy@src.gnome.org>2000-09-21 22:44:09 +0000
commit38839aa81a7ded0a27eb8efadab1325a4c83bce6 (patch)
treeb35b2654a823192bae7c52c2c372b5d6eed1af49 /libnautilus-private/nautilus-icon-canvas-item.c
parent1dda98bba0893365d129fcd0519ef5de8f0d36e4 (diff)
downloadnautilus-38839aa81a7ded0a27eb8efadab1325a4c83bce6.tar.gz
fixed bugs 3084, 3119, 3134, icon stretch handles are not drawn in the
fixed bugs 3084, 3119, 3134, icon stretch handles are not drawn in the right place or hit-tested properly, by removing some bogus offsets. fixed bugs 764 and 2626, icon stretching is way too slow, by only doing the relayout and update position when the stretching is finished, instead of doing it every time the mouse moves during the stretch. Also, made it relayout if necessary after stretching is finished, like it was intending to do.
Diffstat (limited to 'libnautilus-private/nautilus-icon-canvas-item.c')
-rw-r--r--libnautilus-private/nautilus-icon-canvas-item.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libnautilus-private/nautilus-icon-canvas-item.c b/libnautilus-private/nautilus-icon-canvas-item.c
index 753199a1e..0b7490852 100644
--- a/libnautilus-private/nautilus-icon-canvas-item.c
+++ b/libnautilus-private/nautilus-icon-canvas-item.c
@@ -47,6 +47,7 @@
#include "nautilus-graphic-effects.h"
#include "nautilus-file-utilities.h"
#include "nautilus-icon-factory.h"
+#include "nautilus-theme.h"
/* Comment this out if the new smooth fonts code give you problems
* This isnt meant to be permanent. Its just a precaution.
@@ -911,10 +912,10 @@ draw_stretch_handles_aa (NautilusIconCanvasItem *item, GnomeCanvasBuf *buf,
get_icon_canvas_rectangle (item, &icon_rect);
- knob_filename = nautilus_pixmap_file ("knob.png");
+ knob_filename = nautilus_theme_get_image_path ("knob.png");
knob_pixbuf = gdk_pixbuf_new_from_file (knob_filename);
- knob_width = gdk_pixbuf_get_width (knob_pixbuf) - 6; /* offset to compensate for shadow */
- knob_height = gdk_pixbuf_get_height (knob_pixbuf) - 6; /* offset to compensate for shadow */
+ knob_width = gdk_pixbuf_get_width (knob_pixbuf);
+ knob_height = gdk_pixbuf_get_height (knob_pixbuf);
art_affine_identity(affine);