banshee r4656 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor



Author: gburt
Date: Mon Oct  6 17:47:29 2008
New Revision: 4656
URL: http://svn.gnome.org/viewvc/banshee?rev=4656&view=rev

Log:
2008-10-06  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/GenreEntry.cs:
	Implement IEditorField so that changes are noticed and saved (BGO
	#553555).  Also create/set an EntryCompletion so that autocomplete works.



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/GenreEntry.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/GenreEntry.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/GenreEntry.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/GenreEntry.cs	Mon Oct  6 17:47:29 2008
@@ -36,7 +36,7 @@
 
 namespace Banshee.Gui.TrackEditor
 {
-    public class GenreEntry : ComboBoxEntry, ICanUndo
+    public class GenreEntry : ComboBoxEntry, ICanUndo, IEditorField
     {
         private ListStore genre_model;
         private EditorEntryUndoAdapter undo_adapter = new EditorEntryUndoAdapter ();
@@ -46,6 +46,15 @@
             genre_model = new ListStore (typeof (string));
             Model = genre_model;
             TextColumn = 0;
+
+            EntryCompletion c = new EntryCompletion ();
+            c.Model = genre_model;
+            c.TextColumn = TextColumn;
+            c.PopupCompletion = true;
+            c.InlineCompletion = true;
+            c.InlineSelection = true;
+            c.PopupSingleMatch = false;
+            Entry.Completion = c;
         
             foreach (string genre in ServiceManager.DbConnection.QueryEnumerable<string> (
                 "SELECT DISTINCT Genre FROM CoreTracks ORDER BY Genre")) {



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