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

gEDA-dev: [PCB] patch that closes bug #1840422 (gtk panning)



Hi all,

could anyone apply the attached patch? It partly fixes a rather annoying
bug (see the bug report on sf for more details). It also removes a
"FIXME".

TIA

Tibor Palinkas
diff -uri pcb.orig/src/hid/gtk/gtkhid-main.c pcb/src/hid/gtk/gtkhid-main.c
--- pcb.orig/src/hid/gtk/gtkhid-main.c	2007-12-03 06:47:43.000000000 +0100
+++ pcb/src/hid/gtk/gtkhid-main.c	2007-12-04 05:23:04.000000000 +0100
@@ -159,15 +159,10 @@
        return;
      }
 
-   /* FIXME -- do I need to have something like this?  These two lines
-   came from the lesstif HID:
-
-   set_scroll (hscroll, view_left_x, view_width, PCB->MaxWidth);
-   set_scroll (vscroll, view_top_y, view_height, PCB->MaxHeight);
-   */
+   gtk_range_set_value (GTK_RANGE (ghidgui->h_range), gport->view_x0);
+   gtk_range_set_value (GTK_RANGE (ghidgui->v_range), gport->view_y0);
 
    ghid_invalidate_all ();
-
 }
 
 /* ------------------------------------------------------------ */


_______________________________________________
geda-dev mailing list
geda-dev@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev