diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-25 20:24:51 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-25 20:24:51 +0200 |
commit | 57f9fdc3d7d5f9c177e2546285e2343d2d75c824 (patch) | |
tree | bb05d00bf55a0421dc4dce12f10bb6fccbcfd069 /plugins/gtkui | |
parent | 609a6b7b221fd1c78fe2a4c4a696361c1267b437 (diff) |
fix dragndrop marker color
Diffstat (limited to 'plugins/gtkui')
-rw-r--r-- | plugins/gtkui/ddblistview.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c index 3ddd3568..eddfd591 100644 --- a/plugins/gtkui/ddblistview.c +++ b/plugins/gtkui/ddblistview.c @@ -1956,15 +1956,15 @@ ddb_listview_list_track_dragdrop (DdbListview *ps, int y) { ps->drag_motion_y = ddb_listview_get_row_pos (ps, sel) - ps->scrollpos; } - draw_begin ((uintptr_t)widget->window); - GtkStyle *style = gtk_widget_get_style (GTK_WIDGET (ps)); - float clr[3] = { style->fg[GTK_STATE_NORMAL].red, style->fg[GTK_STATE_NORMAL].green, style->fg[GTK_STATE_NORMAL].blue }; - draw_set_fg_color (clr); - - draw_rect (0, ps->drag_motion_y-1, widget->allocation.width, 3, 1); - draw_rect (0, ps->drag_motion_y-3, 3, 7, 1); - draw_rect (widget->allocation.width-3, ps->drag_motion_y-3, 3, 7, 1); - draw_end (); + GdkColor clr; + gtkui_get_listview_cursor_color (&clr); + GdkGC *gc = gdk_gc_new (widget->window); + gdk_gc_set_rgb_fg_color (gc, &clr); + gdk_draw_rectangle (widget->window, gc, TRUE, 0, ps->drag_motion_y-1, widget->allocation.width, 3); + gdk_draw_rectangle (widget->window, gc, TRUE, 0, ps->drag_motion_y-3, 3, 7); + gdk_draw_rectangle (widget->window, gc, TRUE, widget->allocation.width-3, ps->drag_motion_y-3, 3, 7); + g_object_unref (gc); + if (y < 10) { ps->scroll_pointer_y = y; ps->scroll_mode = 1; |