Nautilus selection patch



This fixes the current problem with the selection in nautilus...there is
at least one other way of doing it, but this seemed the most correct and
cleanest to me.

Later,
Chris
-- 

http://glimmer.sourceforge.net - My pet project
http://uberhackers.dhs.org - My personal website

./configure --prefix=/dev/mocha --enable-caffeine
--- nautilus-icon-container.c	Tue Dec 11 04:57:46 2001
+++ nautilus-icon-container-hacked.c	Tue Dec 11 04:58:57 2001
@@ -1427,4 +1427,5 @@
 	NautilusIconRubberbandInfo *band_info;
 	int x, y;
+	int xoffset, yoffset;
 	double x1, y1, x2, y2;
 	double world_x, world_y;
@@ -1440,4 +1441,5 @@
 
 	gdk_window_get_pointer (widget->window, &x, &y, NULL);
+    gdk_window_get_pointer (GTK_LAYOUT(widget)->bin_window, &xoffset, &yoffset, NULL);
 
 	if (x < 0) {
@@ -1469,5 +1471,6 @@
 
 	gnome_canvas_window_to_world (GNOME_CANVAS (container),
-				      x, y, &world_x, &world_y);
+				      xoffset, yoffset,
+				      &world_x, &world_y);
 
 	if (world_x < band_info->start_x) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]