banshee r4266 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Sources.Gui
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4266 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Sources.Gui
- Date: Sun, 27 Jul 2008 23:37:53 +0000 (UTC)
Author: gburt
Date: Sun Jul 27 23:37:53 2008
New Revision: 4266
URL: http://svn.gnome.org/viewvc/banshee?rev=4266&view=rev
Log:
2008-07-27 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView_DragAndDrop.cs:
Fix the regression where the New Playlist wouldn't appear in the sources
list when you were drag and dropping some tracks.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView_DragAndDrop.cs
Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView_DragAndDrop.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView_DragAndDrop.cs (original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView_DragAndDrop.cs Sun Jul 27 23:37:53 2008
@@ -94,11 +94,7 @@
else if ((Allocation.Height - y) < 20)
Vadjustment.Value += 30;
- if (parent_source != null && parent_source.AcceptsInputFromSource (active_source)) {
- ShowNewPlaylistUnder (parent_source, active_source);
- } else if (drop_source != NewPlaylistSource) {
- HideNewPlaylistRow ();
- }
+ ShowNewPlaylistUnder (parent_source, active_source);
if (!drop_source.AcceptsInputFromSource (active_source)) {
Gdk.Drag.Status (context, 0, time);
@@ -123,6 +119,10 @@
else
HideNewPlaylistRow ();
}
+
+ if (parent == null || active == null) {
+ return;
+ }
NewPlaylistSource.SetParentSource (parent);
if (!NewPlaylistSource.AcceptsInputFromSource (active)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]