[Banshee-List] Update label below time scale when dragging



Hi all,

Attached is basically, a two line patch*, to correctly update the label
below the time scale when dragging.

To see what it does:
 * Use banshee HEAD, start a song, and drag the time scale, notice how
the time is not updated ;-).
 * Now apply the patch and drag, you can actually use it to seek now.

Greetings,
	Ruben


* (four because I ran a replace all tab -> "    ")


--
Ruben Vermeersch (rubenv)
http://www.Lambda1.be/
Index: data/glade/player.glade
===================================================================
RCS file: /cvs/gnome/banshee/data/glade/player.glade,v
retrieving revision 1.31
diff -u -p -r1.31 player.glade
--- data/glade/player.glade	11 Nov 2005 19:23:13 -0000	1.31
+++ data/glade/player.glade	13 Nov 2005 20:45:48 -0000
@@ -497,6 +497,7 @@
 		  <signal name="button_press_event" handler="OnScaleTimeButtonPressEvent" last_modification_time="Mon, 08 Aug 2005 06:36:26 GMT"/>
 		  <signal name="button_release_event" handler="OnScaleTimeButtonReleaseEvent" last_modification_time="Mon, 08 Aug 2005 06:40:16 GMT"/>
 		  <signal name="move_slider" handler="OnScaleTimeMoveSlider" last_modification_time="Mon, 08 Aug 2005 06:56:54 GMT"/>
+		  <signal name="motion_notify_event" handler="OnScaleTimeMoveSlider" last_modification_time="Sun, 13 Nov 2005 20:30:49 GMT"/>
 		</widget>
 		<packing>
 		  <property name="left_attach">3</property>
Index: src/PlayerInterface.cs
===================================================================
RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v
retrieving revision 1.97
diff -u -p -r1.97 PlayerInterface.cs
--- src/PlayerInterface.cs	13 Nov 2005 15:30:52 -0000	1.97
+++ src/PlayerInterface.cs	13 Nov 2005 20:45:55 -0000
@@ -703,10 +703,10 @@ namespace Banshee
                     break;
                 case Gdk.Key.space:
                     if(!searchEntry.HasFocus) {
-					    PlayPause();
+                        PlayPause();
                         handled = true;
                     }
-					break;
+                    break;
             }
             
             args.RetVal = handled;
@@ -957,6 +957,7 @@ namespace Banshee
             return false;
         }
         
+        [GLib.ConnectBeforeAttribute]
         private void OnScaleTimeMoveSlider(object o, EventArgs args)
         {
             SetPositionLabel((long)ScaleTime.Value);


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