[longomatch] Update tags list when a new tag has been added
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [longomatch] Update tags list when a new tag has been added
- Date: Sat, 6 Feb 2010 14:14:52 +0000 (UTC)
commit 449fa6ecf3cc38f035bf8fd10f75234e1673c871
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Feb 6 15:13:21 2010 +0100
Update tags list when a new tag has been added
LongoMatch/Gui/Component/TagsTreeWidget.cs | 6 +++---
LongoMatch/Handlers/EventsManager.cs | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/TagsTreeWidget.cs b/LongoMatch/Gui/Component/TagsTreeWidget.cs
index 32ee454..e7dc4cd 100644
--- a/LongoMatch/Gui/Component/TagsTreeWidget.cs
+++ b/LongoMatch/Gui/Component/TagsTreeWidget.cs
@@ -94,7 +94,7 @@ namespace LongoMatch.Gui.Component
foreach (MediaTimeNode tNode in list)
model.AppendValues(tNode);
}
- FillCombobox();
+ UpdateTagsList();
}
}
}
@@ -105,7 +105,7 @@ namespace LongoMatch.Gui.Component
}
}
- private void FillCombobox(){
+ public void UpdateTagsList(){
(tagscombobox.Model as ListStore).Clear();
foreach (Tag tag in project.Tags)
tagscombobox.AppendText(tag.Text);
@@ -158,7 +158,7 @@ namespace LongoMatch.Gui.Component
filter.Refilter();
foreach (Widget w in tagsvbox.Children)
tagsvbox.Remove(w);
- FillCombobox();
+ UpdateTagsList();
}
private bool FilterTree(Gtk.TreeModel model, Gtk.TreeIter iter)
diff --git a/LongoMatch/Handlers/EventsManager.cs b/LongoMatch/Handlers/EventsManager.cs
index 4cef809..3b033ff 100644
--- a/LongoMatch/Handlers/EventsManager.cs
+++ b/LongoMatch/Handlers/EventsManager.cs
@@ -357,6 +357,7 @@ namespace LongoMatch
foreach (Tag tag in tagger.Tags){
openedProject.Tags.AddTag(tag);
}
+ tagsTreeWidget.UpdateTagsList();
tagger.Destroy();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]