diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-02-03 19:49:06 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-02-03 19:49:06 +0100 |
commit | c91638bf404a9814d325ab419a97d197546026ce (patch) | |
tree | 8f32a48084ec325c4be083b929e14cdcee4431f3 /plugins | |
parent | 615b17e0633a0fbacf45fdd3de70bf2111db9911 (diff) |
fixed crash on gnome/mist
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/gtkplaylist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/gtkui/gtkplaylist.c b/plugins/gtkui/gtkplaylist.c index 0a160b97..fc38fe84 100644 --- a/plugins/gtkui/gtkplaylist.c +++ b/plugins/gtkui/gtkplaylist.c @@ -353,7 +353,9 @@ gtkpl_draw_pl_row_back (gtkplaylist_t *ps, int row, DB_playItem_t *it) { int x = -ps->hscrollpos; int w = ps->totalwidth; // clear area -- workaround for New Wave theme - gdk_draw_rectangle (ps->backbuf, treeview->style->bg_gc[GTK_STATE_NORMAL], TRUE, x, row * rowheight - ps->scrollpos * rowheight, w, rowheight); + if (ps->playlist->style->bg_gc[GTK_STATE_NORMAL]) { + gdk_draw_rectangle (ps->backbuf, ps->playlist->style->bg_gc[GTK_STATE_NORMAL], TRUE, 0, row * rowheight - ps->scrollpos * rowheight, ps->playlist->allocation.width, rowheight); + } gtk_paint_flat_box (treeview->style, ps->backbuf, (it && SELECTED(it)) ? GTK_STATE_SELECTED : GTK_STATE_NORMAL, GTK_SHADOW_NONE, NULL, treeview, (row & 1) ? "cell_even_ruled" : "cell_odd_ruled", x, row * rowheight - ps->scrollpos * rowheight, w, rowheight); if (row == deadbeef->pl_get_cursor (ps->iterator)) { // not all gtk engines/themes render focus rectangle in treeviews |