[moserial] minor fix, don't define and pass unused out parameters



commit 608042b8e8327432b72b7be799bce6f32e72a2e7
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Thu May 19 10:29:49 2011 -0400

    minor fix, don't define and pass unused out parameters

 src/MainWindow.vala |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/MainWindow.vala b/src/MainWindow.vala
index 73091fc..841b498 100644
--- a/src/MainWindow.vala
+++ b/src/MainWindow.vala
@@ -895,9 +895,7 @@ public class moserial.MainWindow : Gtk.Window //Have to extend Gtk.Winow to get
 				copyMenuItem.set_sensitive(false);
 		}
 		else if(gtkWindow.get_focus()==(Gtk.Widget)entry){
-			int s=0;
-			int e=0;
-			if(entry.get_selection_bounds(s, e)) {
+			if(entry.get_selection_bounds(null, null)) {
 				cutMenuItem.set_sensitive(true);
 				copyMenuItem.set_sensitive(true);
 			}



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