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

gEDA-cvs: pcb.git: branch: master updated (183ff5b416ea26fc99d72a54a7d093310e940cd5)



The branch, master has been updated
       via  183ff5b416ea26fc99d72a54a7d093310e940cd5 (commit)
       via  f2ede77431b363f2ef8f5f9e05e47ffa4858537d (commit)
      from  45f77a303f38841f4f50b8b3519a76b33e3e80b8 (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
=========

 src/hid/gtk/gui-output-events.c |    8 ++++----
 src/hid/gtk/gui-top-window.c    |    3 ++-
 src/hid/gtk/gui.h               |    2 +-
 3 files changed, 7 insertions(+), 6 deletions(-)


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

commit 183ff5b416ea26fc99d72a54a7d093310e940cd5
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/gtk: Don't avoid panning when further X11 events are pending
    
    Since we are using motion hints, we should not get bogged down with
    motion events, so we should probably just act upon them.

:100644 100644 a216dd7... 569a09b... M	src/hid/gtk/gui-output-events.c

commit f2ede77431b363f2ef8f5f9e05e47ffa4858537d
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/gtk: Use motion notify events to avoid too rapid pointer events
    
    Not fixing a specific problem - just a backport from the GL branch.

:100644 100644 4ca6040... a216dd7... M	src/hid/gtk/gui-output-events.c
:100644 100644 817c453... 828c524... M	src/hid/gtk/gui-top-window.c
:100644 100644 d67db1a... b814366... M	src/hid/gtk/gui.h

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

commit 183ff5b416ea26fc99d72a54a7d093310e940cd5
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/gtk: Don't avoid panning when further X11 events are pending
    
    Since we are using motion hints, we should not get bogged down with
    motion events, so we should probably just act upon them.

diff --git a/src/hid/gtk/gui-output-events.c b/src/hid/gtk/gui-output-events.c
index a216dd7..569a09b 100644
--- a/src/hid/gtk/gui-output-events.c
+++ b/src/hid/gtk/gui-output-events.c
@@ -717,8 +717,6 @@ ghid_port_window_motion_cb (GtkWidget * widget,
 
   if (out->panning)
     {
-      if (gtk_events_pending ())
-	return FALSE;
       dx = gport->zoom * (x_prev - ev->x);
       dy = gport->zoom * (y_prev - ev->y);
       if (x_prev > 0)

commit f2ede77431b363f2ef8f5f9e05e47ffa4858537d
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/gtk: Use motion notify events to avoid too rapid pointer events
    
    Not fixing a specific problem - just a backport from the GL branch.

diff --git a/src/hid/gtk/gui-output-events.c b/src/hid/gtk/gui-output-events.c
index 4ca6040..a216dd7 100644
--- a/src/hid/gtk/gui-output-events.c
+++ b/src/hid/gtk/gui-output-events.c
@@ -707,12 +707,14 @@ queue_tooltip_update (GHidPort *out)
 
 gint
 ghid_port_window_motion_cb (GtkWidget * widget,
-			    GdkEventButton * ev, GHidPort * out)
+			    GdkEventMotion * ev, GHidPort * out)
 {
   gdouble dx, dy;
   static gint x_prev = -1, y_prev = -1;
   gboolean moved;
 
+  gdk_event_request_motions (ev);
+
   if (out->panning)
     {
       if (gtk_events_pending ())
@@ -726,7 +728,7 @@ ghid_port_window_motion_cb (GtkWidget * widget,
       return FALSE;
     }
   x_prev = y_prev = -1;
-  moved = ghid_note_event_location (ev);
+  moved = ghid_note_event_location ((GdkEventButton *)ev);
 
 #if ENABLE_TOOLTIPS
   queue_tooltip_update (out);
diff --git a/src/hid/gtk/gui-top-window.c b/src/hid/gtk/gui-top-window.c
index 817c453..828c524 100644
--- a/src/hid/gtk/gui-top-window.c
+++ b/src/hid/gtk/gui-top-window.c
@@ -2299,7 +2299,8 @@ ghid_build_pcb_top_window (void)
 			 | GDK_LEAVE_NOTIFY_MASK | GDK_ENTER_NOTIFY_MASK
 			 | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK
 			 | GDK_KEY_RELEASE_MASK | GDK_KEY_PRESS_MASK
-			 | GDK_FOCUS_CHANGE_MASK | GDK_POINTER_MOTION_MASK);
+			 | GDK_FOCUS_CHANGE_MASK | GDK_POINTER_MOTION_MASK
+			 | GDK_POINTER_MOTION_HINT_MASK);
 
   /*
    * This is required to get the drawing_area key-press-event.  Also the
diff --git a/src/hid/gtk/gui.h b/src/hid/gtk/gui.h
index d67db1a..b814366 100644
--- a/src/hid/gtk/gui.h
+++ b/src/hid/gtk/gui.h
@@ -303,7 +303,7 @@ gint ghid_port_window_enter_cb (GtkWidget * widget,
 gint ghid_port_window_leave_cb (GtkWidget * widget, 
                            GdkEventCrossing * ev, GHidPort * out);
 gint ghid_port_window_motion_cb (GtkWidget * widget,
-				 GdkEventButton * ev, GHidPort * out);
+				 GdkEventMotion * ev, GHidPort * out);
 gint ghid_port_window_mouse_scroll_cb (GtkWidget * widget,
 				       GdkEventScroll * ev, GHidPort * out);
 




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