GNOME Bugzilla – Bug 157271
Icon scaling cursor should be the same as the window resizing cursor
Last modified: 2005-12-18 01:56:32 UTC
When scaling icons (e.g. on the desktop), there are four small squares in the surrounding box of this icon. When one moves the mouse over one of these corners, nautilus should let the cursor look like it looks when hovering over a window's corner (to resize).
Please tell me whether this still appears in 2.9 and which files I should look at to create a patch.
Yes, it still happens with recent Nautilus versions. Are you still willing to take a look at it?
Yes, as solving this should result in a quite small patch.
Martin says that the affected source file should be the one for the icon canvas item.
herzi? The code is in libnautilus-private/nautilus-icon-container.c:motion_notify_event btw.. Grab for DRAG_STATE_STRETCH.
Created attachment 53752 [details] [review] a patch The patch uses the resize cursors (this part is tested) and allows the knob icon to be themed (this part is not tested)
Created attachment 53840 [details] [review] newer patch
This patch looks great, I"ve got just one thought about it: should themes be allowed to set different knobs for different corners?
2005-10-28 Matthias Clasen <mclasen@redhat.com> * libnautilus-private/nautilus-icon-canvas-item.h: * libnautilus-private/nautilus-icon-canvas-item.c (draw_stretch_handles: (hit_test_stretch_handle): Improve drawing of the outline for icon stretching, make the knob image themable as stock-nautilus-knob. * libnautilus-private/nautilus-icon-container.c: Implement icon stretching via keyboard, with <Control>+, <Control>- and <Control>0. * src/nautilus-window-manage-views.c (zoom_level_changed_callback): Make the ZOOM_NORMAL action insensitive when zooming is not supported, so that it does not eat <Control>0.