[moserial] call Gtk.main_iteration_do correctly (don't block)



commit bbac01b1f8e78ab26b6f9f71d823fb6bcfc2ad51
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Thu Sep 8 14:56:29 2011 -0400

    call Gtk.main_iteration_do correctly (don't block)

 src/SerialConnection.vala |    2 +-
 src/Szwrapper.vala        |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/SerialConnection.vala b/src/SerialConnection.vala
index 564ee0b..26f0a7b 100644
--- a/src/SerialConnection.vala
+++ b/src/SerialConnection.vala
@@ -132,7 +132,7 @@ public class moserial.SerialConnection : GLib.Object
 		rx += (ulong) bytesRead;
 
                 while(Gtk.events_pending() || Gdk.events_pending())
-                        Gtk.main_iteration_do(true);
+                        Gtk.main_iteration_do(false);
 
                 if (bytesRead<0)
                         return false;
diff --git a/src/Szwrapper.vala b/src/Szwrapper.vala
index b71a200..54c52e6 100644
--- a/src/Szwrapper.vala
+++ b/src/Szwrapper.vala
@@ -139,7 +139,7 @@ public class moserial.Szwrapper: GLib.Object
 	}
 	private bool readError(GLib.IOChannel source, GLib.IOCondition condition) {
                 while(Gtk.events_pending() || Gdk.events_pending())
-        		Gtk.main_iteration_do(true);
+        		Gtk.main_iteration_do(false);
         	if(running) {
         	
                 	char[] m_buf = new char[1000];
@@ -213,7 +213,7 @@ public class moserial.Szwrapper: GLib.Object
         }
         private bool readBytes(GLib.IOChannel source, GLib.IOCondition condition) {
 		while(Gtk.events_pending() || Gdk.events_pending())
-			Gtk.main_iteration_do(true);
+			Gtk.main_iteration_do(false);
 	         if(running) {
 
 		        char[] m_buf = new char[1024];



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