[longomatch] Listen to events after creating the menu



commit 069c4f4110223313bada7ef9874c0a0b09dd6791
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Jan 7 05:05:26 2010 +0100

    Listen to events after creating the menu

 LongoMatch/Gui/TreeView/PlaysTreeView.cs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/LongoMatch/Gui/TreeView/PlaysTreeView.cs b/LongoMatch/Gui/TreeView/PlaysTreeView.cs
index c1a7b53..944a212 100644
--- a/LongoMatch/Gui/TreeView/PlaysTreeView.cs
+++ b/LongoMatch/Gui/TreeView/PlaysTreeView.cs
@@ -185,13 +185,7 @@ namespace LongoMatch.Gui.Component
 			sortByStart = new Gtk.RadioAction("SortByStartAction", Mono.Unix.Catalog.GetString("Sort by start time"), null, null, 2);
 			sortByStop = new Gtk.RadioAction("SortByStopAction", Mono.Unix.Catalog.GetString("Sort by stop time"), null, null, 3);
 			sortByDuration = new Gtk.RadioAction("SortByDurationAction", Mono.Unix.Catalog.GetString("Sort by duration"), null, null, 3);
-			
-			edit.Activated += OnEdit;
-			sortByName.Activated += OnSortActivated;
-			sortByStart.Activated += OnSortActivated;
-			sortByStop.Activated += OnSortActivated;
-			sortByDuration.Activated += OnSortActivated;
-			
+				
 			sortByName.Group = new GLib.SList(System.IntPtr.Zero);
 			sortByStart.Group = sortByName.Group;
 			sortByStop.Group = sortByName.Group;
@@ -219,7 +213,13 @@ namespace LongoMatch.Gui.Component
 			                        "  </popup>"+
 			                        "</ui>");
 			
-			categoriesMenu = manager.GetWidget("/CategoryMenu") as Menu;			
+			categoriesMenu = manager.GetWidget("/CategoryMenu") as Menu;	
+			
+			edit.Activated += OnEdit;
+			sortByName.Activated += OnSortActivated;
+			sortByStart.Activated += OnSortActivated;
+			sortByStop.Activated += OnSortActivated;
+			sortByDuration.Activated += OnSortActivated;
 		}
 		
 		private void SetupSortMenu(SectionsTimeNode.SortMethod sortMethod){



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