banshee r3656 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Data.Gui src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- From: abock svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3656 - in trunk/banshee: . src/Libraries/Hyena.Gui/Hyena.Data.Gui src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView
- Date: Thu, 3 Apr 2008 19:09:17 +0100 (BST)
Author: abock
Date: Thu Apr 3 19:09:17 2008
New Revision: 3656
URL: http://svn.gnome.org/viewvc/banshee?rev=3656&view=rev
Log:
2008-04-03 Aaron Bockover <abock gnome org>
* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnHeaderCellText.cs:
* src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs:
Explicitly set TextAsForeground as necessary when entering the header
and row drawing methods since now we use a single cell context object;
fixes regression where lists with headers had all cell text drawn using
the foreground color, not the foreground color for the header and the
text color for the rows
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnHeaderCellText.cs
trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
Modified: trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnHeaderCellText.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnHeaderCellText.cs (original)
+++ trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnHeaderCellText.cs Thu Apr 3 19:09:17 2008
@@ -50,8 +50,6 @@
return;
}
- context.TextAsForeground = true;
-
if (!has_sort) {
base.Render (context, state, cellWidth - 10, cellHeight);
return;
Modified: trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs (original)
+++ trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs Thu Apr 3 19:09:17 2008
@@ -125,6 +125,7 @@
cell_context.Context = cairo_context;
cell_context.Drawable = GdkWindow;
cell_context.Layout = header_pango_layout;
+ cell_context.TextAsForeground = true;
for (int ci = 0; ci < column_cache.Length; ci++) {
if (pressed_column_is_dragging && pressed_column_index == ci) {
@@ -286,6 +287,7 @@
cell_context.Drawable = canvas1;
cell_context.Layout = list_pango_layout;
cell_context.Clip = canvas_alloc;
+ cell_context.TextAsForeground = false;
Rectangle selected_focus_alloc = Rectangle.Zero;
Rectangle single_list_alloc = new Rectangle ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]