[f-spot] Populate "Edit > Remove tag" again
- From: Lorenzo Milesi <lmilesi src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] Populate "Edit > Remove tag" again
- Date: Wed, 8 Jul 2009 08:03:19 +0000 (UTC)
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]