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

gEDA-cvs: gaf.git: branch: master updated (1.7.0-20110116-67-g2197952)



The branch, master has been updated
       via  2197952617d42ccbe2355747ef48668c63ece30b (commit)
      from  fdd787ab8698585d5d10ba2cf2e5dd716388460a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gschem/src/i_callbacks.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)


=================
 Commit Messages
=================

commit 2197952617d42ccbe2355747ef48668c63ece30b
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    gschem: Make the user click the first point when adding nets or buses
    
    This allows "magnetic net" mode to be used for the start-point of a net
    as well as its end-point, whilst still being able to initiate net drawing
    with the "n" key.
    
    I have updated buses as well in an effort not to have them diverge yet
    further in their behaviour.

:100644 100644 27bc527... 851d021... M	gschem/src/i_callbacks.c

=========
 Changes
=========

commit 2197952617d42ccbe2355747ef48668c63ece30b
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    gschem: Make the user click the first point when adding nets or buses
    
    This allows "magnetic net" mode to be used for the start-point of a net
    as well as its end-point, whilst still being able to initiate net drawing
    with the "n" key.
    
    I have updated buses as well in an effort not to have them diverge yet
    further in their behaviour.

diff --git a/gschem/src/i_callbacks.c b/gschem/src/i_callbacks.c
index 27bc527..851d021 100644
--- a/gschem/src/i_callbacks.c
+++ b/gschem/src/i_callbacks.c
@@ -2414,13 +2414,9 @@ DEFINE_I_CALLBACK(add_net)
 DEFINE_I_CALLBACK(add_net_hotkey)
 {
   GSCHEM_TOPLEVEL *w_current = (GSCHEM_TOPLEVEL*) data;
-  gint wx, wy; 
 
   exit_if_null(w_current);
 
-  if (!x_event_get_pointer_position(w_current, TRUE, &wx, &wy))
-    return;
-
   o_redraw_cleanstates(w_current);	
   o_invalidate_rubber (w_current);
   o_net_reset(w_current);
@@ -2430,9 +2426,6 @@ DEFINE_I_CALLBACK(add_net_hotkey)
   i_set_state(w_current, STARTDRAWNET);
   i_update_toolbar(w_current);
 
-  o_net_start(w_current, wx, wy);
-
-  w_current->event_state=DRAWNET;
   w_current->inside_action = 1;
 }
 
@@ -2486,13 +2479,9 @@ DEFINE_I_CALLBACK(add_bus)
 DEFINE_I_CALLBACK(add_bus_hotkey)
 {
   GSCHEM_TOPLEVEL *w_current = (GSCHEM_TOPLEVEL*) data;
-  gint wx, wy; 
 
   exit_if_null(w_current);
 
-  if (!x_event_get_pointer_position(w_current, TRUE, &wx, &wy))
-    return;
-
   o_redraw_cleanstates(w_current);	
   o_invalidate_rubber (w_current);
 
@@ -2501,9 +2490,6 @@ DEFINE_I_CALLBACK(add_bus_hotkey)
   i_set_state(w_current, STARTDRAWBUS);
   i_update_toolbar(w_current);
 
-  o_bus_start(w_current, wx, wy);
-
-  w_current->event_state=DRAWBUS;
   w_current->inside_action = 1;
 }
 




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