On Sun, 2008-06-22 at 10:27 +0100, Peter Clifton wrote:
> On Sun, 2008-06-22 at 00:31 +0000, Kai-Martin Knaak wrote:
> > On Sat, 21 Jun 2008 23:29:16 +0100, Peter Clifton wrote:
> > 
> > > This attempt uses an array of triangle primatives for lines, line caps
> > > and filled circles. These are flushed if the colour changes, the
> > > triangle array fills up, and after rendering completes.
> > 
> > I'd like to give these GL experiments a try. But it seems like I need a 
> > newbie advice again:

BTW.. there are a few other changes incorporated in the patch (since
I've been using this for work.. it has the snapping changes applied, and
also a patch to make it scroll up/down with the mouse wheel (not
zoom-in/out).

That behaviour matches other GTK apps, but is a bit of a mind-warp in
PCB until you get used to it. If you want to remove it, find line 2358
in the diff, and delete between:

@@ -964,18 +1112,18 @@ ghid_port_window_mouse_scroll_cb (GtkWid
 
   state = (GdkModifierType) (ev->state);
   mk = ghid_modifier_keys_state (&state);
+
   if (mk == NONE_PRESSED)
+    dy = ghid_port.height * gport->zoom / 40;
+  else if (mk == SHIFT_PRESSED)
+    dx = ghid_port.width * gport->zoom / 40;
+  else if (mk == CONTROL_PRESSED)
     {
       zoom_factor = (ev->direction == GDK_SCROLL_UP) ? 0.8 : 1.25;
       ghid_port_ranges_zoom (gport->zoom * zoom_factor);
       return TRUE;
     }
 
-  if (mk == SHIFT_PRESSED)
-    dy = ghid_port.height * gport->zoom / 40;
-  else
-    dx = ghid_port.width * gport->zoom / 40;
-
   if (ev->direction == GDK_SCROLL_UP)
     {
       dx = -dx;

(Leaving the next line: "Index: src/hid/gtk/gui-top-window.c" where the
line starting "@@ -964..." was).


-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to