banshee r4627 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor src/Libraries/Hyena.Gui/Hyena.Data.Gui



Author: gburt
Date: Mon Sep 29 20:16:43 2008
New Revision: 4627
URL: http://svn.gnome.org/viewvc/banshee?rev=4627&view=rev

Log:
2008-09-29  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/ExtraTrackDetailsPage.cs:
	Set some properties on the BPM spin entry - 3 chars max, 0 decimal digits,
	and numeric = true.  Also, it shouldn't be syncable.

	* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs: Comment out
	Gtk# 2.12-dependent features; only used in commented out tooltip code
	anyway.



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/ExtraTrackDetailsPage.cs
   trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/ExtraTrackDetailsPage.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/ExtraTrackDetailsPage.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/ExtraTrackDetailsPage.cs	Mon Sep 29 20:16:43 2008
@@ -71,13 +71,17 @@
                 delegate (EditorTrackInfo track, Widget widget) { ((TextEntry)widget).Text = track.Grouping; },
                 delegate (EditorTrackInfo track, Widget widget) { track.Grouping = ((TextEntry)widget).Text; }
             );
-            
-            AddField (box, new SpinButtonEntry (0, 500, 1), 
+
+            SpinButtonEntry bpm_entry = new SpinButtonEntry (0, 999, 1);
+            bpm_entry.Digits = 0;
+            bpm_entry.MaxLength = 3;
+            bpm_entry.Numeric = true;
+            AddField (box, bpm_entry, 
                 Catalog.GetString ("Set all beats per minute to this value"),
                 delegate { return Catalog.GetString ("Beats Per Minute:"); },
                 delegate (EditorTrackInfo track, Widget widget) { ((SpinButtonEntry)widget).Value = track.Bpm; },
                 delegate (EditorTrackInfo track, Widget widget) { track.Bpm = (int)((SpinButtonEntry)widget).Value; },
-                FieldOptions.Shrink
+                FieldOptions.Shrink | FieldOptions.NoSync
             );
             
             AddField (this, new TextEntry (), 

Modified: trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs	(original)
+++ trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs	Mon Sep 29 20:16:43 2008
@@ -108,7 +108,8 @@
             }
             
             context.Layout.GetPixelSize (out text_width, out text_height);
-            is_ellipsized = context.Layout.IsEllipsized;
+            // Requires Gtk# 2.12
+            //is_ellipsized = context.Layout.IsEllipsized;
         }
         
         protected virtual string GetText (object obj)
@@ -116,10 +117,10 @@
             return obj == null ? String.Empty : obj.ToString ();
         }
 
-        private bool is_ellipsized = false;
+        /*private bool is_ellipsized = false;
         public bool IsEllipsized {
             get { return is_ellipsized; }
-        }
+        }*/
 
         public string Text {
             get { return last_text; }



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