diff --git a/src/glade/editmediaref.glade b/src/glade/editmediaref.glade index 69570b7c3..590902888 100644 --- a/src/glade/editmediaref.glade +++ b/src/glade/editmediaref.glade @@ -307,7 +307,7 @@ You can use the mouse on the picture to select a region, or use these spinbutton True 12 - 6 + 7 4 12 6 @@ -414,8 +414,8 @@ You can use the mouse on the picture to select a region, or use these spinbutton 3 - 5 - 6 + 6 + 7 GTK_FILL @@ -456,15 +456,14 @@ You can use the mouse on the picture to select a region, or use these spinbutton True 0 - _Type: - True + Type: type 1 2 - 4 - 5 + 5 + 6 GTK_FILL @@ -478,8 +477,8 @@ You can use the mouse on the picture to select a region, or use these spinbutton 2 3 - 4 - 5 + 5 + 6 GTK_FILL @@ -490,7 +489,7 @@ You can use the mouse on the picture to select a region, or use these spinbutton 0 _Date: True - date_edit + date_entry 1 @@ -520,7 +519,12 @@ You can use the mouse on the picture to select a region, or use these spinbutton True True True + True + Invoke date editor none + + + True @@ -560,6 +564,7 @@ You can use the mouse on the picture to select a region, or use these spinbutton True True + A unique ID to identify the Media object. @@ -572,7 +577,12 @@ You can use the mouse on the picture to select a region, or use these spinbutton True True True + True + Select a file none + + + True @@ -601,6 +611,53 @@ You can use the mouse on the picture to select a region, or use these spinbutton 4 + + + True + 0 + _Tags: + True + tag_button + + + 1 + 2 + 4 + 5 + GTK_FILL + + + + + + True + + + 2 + 3 + 4 + 5 + + + + + True + True + True + + + + + + 3 + 4 + 4 + 5 + + + + + diff --git a/src/gui/editors/editmediaref.py b/src/gui/editors/editmediaref.py index f9d5a1913..56532d195 100644 --- a/src/gui/editors/editmediaref.py +++ b/src/gui/editors/editmediaref.py @@ -4,6 +4,7 @@ # Copyright (C) 2000-2006 Donald N. Allingham # 2008-2009 Stephane Charette # 2009 Gary Burton +# 2011 Robert Cheramy # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -52,7 +53,7 @@ from glade import Glade from displaytabs import (SourceEmbedList, AttrEmbedList, MediaBackRefList, NoteTab) from gui.widgets import (MonitoredSpinButton, MonitoredEntry, PrivacyButton, - MonitoredDate) + MonitoredDate, MonitoredTagList) from editreference import RefTab, EditReference from addmedia import AddMediaObject @@ -148,7 +149,7 @@ class EditMediaRef(EditReference): self.subpixmap.set_from_pixbuf(pb) def _setup_fields(self): - + ebox_shared = self.top.get_object('eventbox') ebox_shared.connect('button-press-event', self.button_press_event) @@ -258,6 +259,15 @@ class EditMediaRef(EditReference): self.source.get_date_object(), self.uistate, self.track, self.db.readonly) + + self.tags = MonitoredTagList( + self.top.get_object("tag_label"), + self.top.get_object("tag_button"), + self.source.set_tag_list, + self.source.get_tag_list, + self.db, + self.uistate, self.track, + self.db.readonly) def set_corner1_x(self, value): """