summaryrefslogtreecommitdiff
path: root/plugins/gtkui/mainplaylist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-05-18 12:35:38 +0200
committerGravatar waker <wakeroid@gmail.com>2012-05-18 12:35:38 +0200
commitb2d16c9b51b80be4ae9e29d2a5766e2f690846f4 (patch)
treefd5cea760d1d00afda3b3c68b887e40dca8de900 /plugins/gtkui/mainplaylist.c
parentf81a65b6b502adb2f1d071d2f58a824944841bf3 (diff)
fixed weird gtkstyle usage in playlist and tabstrip
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r--plugins/gtkui/mainplaylist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c
index e193d8e3..f056d2f4 100644
--- a/plugins/gtkui/mainplaylist.c
+++ b/plugins/gtkui/mainplaylist.c
@@ -171,18 +171,18 @@ void main_draw_group_title (DdbListview *listview, cairo_t *drawable, DdbListvie
if (theming) {
GdkColor *clr = &gtk_widget_get_style(theme_treeview)->fg[GTK_STATE_NORMAL];
float rgb[] = {clr->red/65535.f, clr->green/65535.f, clr->blue/65535.f};
- draw_set_fg_color (rgb);
+ draw_set_fg_color (&listview->listctx, rgb);
}
else {
GdkColor clr;
gtkui_get_listview_text_color (&clr);
float rgb[] = {clr.red/65535.f, clr.green/65535.f, clr.blue/65535.f};
- draw_set_fg_color (rgb);
+ draw_set_fg_color (&listview->listctx, rgb);
}
int ew, eh;
- draw_get_text_extents (str, -1, &ew, &eh);
- draw_text (x + 5, y + height/2 - draw_get_font_size ()/2 - 2, ew+5, 0, str);
- draw_line (x + 5 + ew + 3, y+height/2, x + width, y+height/2);
+ draw_get_text_extents (&listview->listctx, str, -1, &ew, &eh);
+ draw_text (&listview->listctx, x + 5, y + height/2 - draw_get_font_size (&listview->listctx)/2 - 2, ew+5, 0, str);
+ draw_line (&listview->listctx, x + 5 + ew + 3, y+height/2, x + width, y+height/2);
}
}
void