[f-spot] Populate "Edit > Remove tag" again



commit c26458e76b5da71e61f3af78f8278d9ba18a1df5
Author: Lorenzo Milesi <maxxer yetopen it>
Date:   Wed Jul 8 10:02:05 2009 +0200

    Populate "Edit > Remove tag" again
    
    -> GtkBuilder

 src/MainWindow.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/MainWindow.cs b/src/MainWindow.cs
index 2e044ce..7b1aeaa 100644
--- a/src/MainWindow.cs
+++ b/src/MainWindow.cs
@@ -1410,6 +1410,8 @@ public class MainWindow {
 	{
 
 		MenuItem parent = sender as MenuItem;
+		if (parent == null) // We have a Gtk.Action for UI menus, so the "Edit > Remove tag" item needs special treatment
+			parent = uimanager.GetWidget("/ui/menubar1/edit2/remove_tag") as MenuItem;
 		if (parent != null && parent.Submenu is PhotoTagMenu) {
 			PhotoTagMenu menu = (PhotoTagMenu) parent.Submenu;
 			menu.Populate (SelectedPhotos ()); 



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