Author: abock
Date: Mon Feb  4 16:47:17 2008
New Revision: 3142
URL: http://svn.gnome.org/viewvc/banshee?rev=3142&view=rev

Log:
2008-02-04  Aaron Bockover  <[EMAIL PROTECTED]>

    * src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs:
    Only draw the hot cairo stuff if we have a cairo context (and we don't
    when the row is being dragged)



Modified:
   trunk/banshee/ChangeLog
   
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs

Modified: 
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs
==============================================================================
--- 
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs
 (original)
+++ 
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceRowRenderer.cs
 Mon Feb  4 16:47:17 2008
@@ -78,7 +78,7 @@
             bool path_selected = view.Selection.PathIsSelected (path);         
   
             StateType state = RendererStateToWidgetState (flags);
             
-            if (path_selected) {
+            if (path_selected && view.Cr != null) {
                 Gdk.Rectangle rect = background_area;
                 rect.X -= 2;
                 rect.Width += 4;
@@ -91,10 +91,10 @@
                     view.Graphics.DrawRowSelection (view.Cr, background_area.X 
+ 1, background_area.Y + 1, 
                         background_area.Width - 2, background_area.Height - 2);
                 }
-            } else if (path != null && path.Equals (view.HighlightedPath)) {
+            } else if (path != null && path.Equals (view.HighlightedPath) && 
view.Cr != null) {
                 view.Graphics.DrawRowSelection (view.Cr, background_area.X + 
1, background_area.Y + 1, 
                     background_area.Width - 2, background_area.Height - 2, 
false);
-            } else if (view.NotifyStage.ActorCount > 0) {
+            } else if (view.NotifyStage.ActorCount > 0 && view.Cr != null) {
                 TreeIter iter;
                 if (view.Model.GetIter (out iter, path) && 
view.NotifyStage.Contains (iter)) {
                     Actor<TreeIter> actor = view.NotifyStage[iter];
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to