gegl r2782 - in trunk: . bin
- From: ok svn gnome org
 
- To: svn-commits-list gnome org
 
- Subject: gegl r2782 - in trunk: . bin
 
- Date: Wed, 19 Nov 2008 00:00:13 +0000 (UTC)
 
Author: ok
Date: Wed Nov 19 00:00:13 2008
New Revision: 2782
URL: http://svn.gnome.org/viewvc/gegl?rev=2782&view=rev
Log:
* bin/editor.c: (nodes_motion_notify_event): made the active status of
end nodes sticky (you need to click another node to change focus, this
is to avoid unexpected focus switches when appending poly line
segments.
Modified:
   trunk/ChangeLog
   trunk/bin/editor.c
Modified: trunk/bin/editor.c
==============================================================================
--- trunk/bin/editor.c	(original)
+++ trunk/bin/editor.c	Wed Nov 19 00:00:13 2008
@@ -838,11 +838,12 @@
 
 static gboolean
 nodes_motion_notify_event (GtkWidget      *widget,
-                          GdkEventMotion *event,
-                          gpointer        data)
+                           GdkEventMotion *event,
+                           gpointer        data)
 {
     {
       gint   x, y;
+      gint n;
       gdouble scale;
       gdouble tx, ty;
       gdouble ex, ey;
@@ -917,11 +918,14 @@
 
       /* make the closest the selected */
 
+      n = gegl_path_get_count (vector);
+      if (tools.selected_no != 0 &&
+          tools.selected_no != n -1)
       {
         gint i;
         gint closest=0;
         gdouble bestdist = 100000;
-        for (i=0;i<gegl_path_get_count (vector);i++)
+        for (i=0;i<n;i++)
           {
             const GeglPathItem *node;
             gdouble dist;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]