[f-spot] Remove "Add Tag" menu.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Remove "Add Tag" menu.
- Date: Fri, 4 Jun 2010 23:54:57 +0000 (UTC)
commit ebd3f36159b19f912a3d51a82daaf52f5ad246b6
Author: Ruben Vermeersch <ruben savanne be>
Date: Sat Jun 5 01:53:25 2010 +0200
Remove "Add Tag" menu.
https://bugzilla.gnome.org/show_bug.cgi?id=620608
src/Extensions/PopupCommands.cs | 19 -------------------
src/FSpot.addin.xml | 1 -
src/Widgets/TagMenu.cs | 2 --
3 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/Extensions/PopupCommands.cs b/src/Extensions/PopupCommands.cs
index 2da7b79..95f00d7 100644
--- a/src/Extensions/PopupCommands.cs
+++ b/src/Extensions/PopupCommands.cs
@@ -72,25 +72,6 @@ namespace FSpot.Extensions
}
}
- public class AttachTag : IMenuGenerator
- {
- private TagMenu tag_menu;
-
- public Gtk.Menu GetMenu ()
- {
- tag_menu = new TagMenu (null, App.Instance.Database.Tags);
- tag_menu.NewTagHandler += delegate { App.Instance.Organizer.HandleCreateTagAndAttach (this, null); };
- tag_menu.TagSelected += App.Instance.Organizer.HandleAttachTagMenuSelected;
- return (Gtk.Menu) tag_menu;
- }
-
- public void OnActivated (object o, EventArgs e)
- {
- if (tag_menu != null)
- tag_menu.Populate ();
- }
- }
-
public class RemoveTag : IMenuGenerator
{
public Gtk.Menu GetMenu ()
diff --git a/src/FSpot.addin.xml b/src/FSpot.addin.xml
index ea7e04d..ed71370 100644
--- a/src/FSpot.addin.xml
+++ b/src/FSpot.addin.xml
@@ -54,7 +54,6 @@
<Command id = "Remove" _label = "_Remove From Catalog" command_type = "FSpot.Extensions.Remove" />
<Command id = "Delete" _label = "_Delete From Drive" command_type = "FSpot.Extensions.Delete" />
<MenuSeparator id = "Separator3" />
- <MenuGenerator id = "AttachTag" _label = "_Attach Tag" icon = "gtk-add" generator_type = "FSpot.Extensions.AttachTag" />
<MenuGenerator id = "RemoveTag" _label = "Rem_ove Tag" icon = "gtk-remove" generator_type = "FSpot.Extensions.RemoveTag" />
<ComplexMenuItem id = "Rate" widget_type = "FSpot.Widgets.RatingMenuItem" command_type = "FSpot.Extensions.Rate"/>
</Extension>
diff --git a/src/Widgets/TagMenu.cs b/src/Widgets/TagMenu.cs
index 3fa5ee4..c1ea1c4 100644
--- a/src/Widgets/TagMenu.cs
+++ b/src/Widgets/TagMenu.cs
@@ -9,7 +9,6 @@ using Hyena;
public class TagMenu : Menu {
private TagStore tag_store;
- private MenuItem parent_item;
public delegate void TagSelectedHandler (Tag t);
public event TagSelectedHandler TagSelected;
@@ -58,7 +57,6 @@ public class TagMenu : Menu {
if (item != null) {
item.Submenu = this;
item.Activated += HandlePopulate;
- parent_item = item;
}
tag_store = store;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]