diff options
author | waker <wakeroid@gmail.com> | 2011-04-05 21:13:29 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-05 21:13:29 +0200 |
commit | 0a1bcd20307d1f3e725f0dd122ceef40b3e207c3 (patch) | |
tree | a5de7f24dd38d1bdf317dbd4ced70f6aac8e810f | |
parent | ddbcf53190dea01c904b0aaeae015505f4230dbd (diff) |
fixed gui crash after deleting playlist
-rw-r--r-- | plugins/gtkui/ddblistview.c | 6 | ||||
-rw-r--r-- | plugins/gtkui/ddbtabstrip.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c index bfa394a3..479c03c8 100644 --- a/plugins/gtkui/ddblistview.c +++ b/plugins/gtkui/ddblistview.c @@ -1078,7 +1078,7 @@ ddb_listview_list_setup_vscroll (DdbListview *ps) { if (ps->fullheight <= ps->list->allocation.height) { gtk_widget_hide (scroll); ps->scrollpos = 0; - gtk_widget_queue_draw_area (ps->list, 0, 0, list->allocation.width, list->allocation.height); + gtk_widget_queue_draw (ps->list); } else { gtk_widget_show (scroll); @@ -2272,7 +2272,7 @@ ddb_listview_header_motion_notify_event (GtkWidget *widget, // colhdr_anim_swap (ps, c1, c2, x1, x2); // force redraw of everything // ddb_listview_list_setup_hscroll (ps); - gtk_widget_queue_draw_area (ps->list, 0, 0, ps->list->allocation.width, ps->list->allocation.height); + gtk_widget_queue_draw (ps->list); } else { // only redraw that if not animating @@ -2301,7 +2301,7 @@ ddb_listview_header_motion_notify_event (GtkWidget *widget, ddb_listview_list_setup_hscroll (ps); ps->block_redraw_on_scroll = 0; gtk_widget_queue_draw (ps->header); - gtk_widget_queue_draw_area (ps->list, 0, 0, ps->list->allocation.width, ps->list->allocation.height); + gtk_widget_queue_draw (ps->list); ps->binding->column_size_changed (ps, ps->header_sizing); } else { diff --git a/plugins/gtkui/ddbtabstrip.c b/plugins/gtkui/ddbtabstrip.c index 503368c3..d6920a9f 100644 --- a/plugins/gtkui/ddbtabstrip.c +++ b/plugins/gtkui/ddbtabstrip.c @@ -683,6 +683,7 @@ on_remove_playlist1_activate (GtkMenuItem *menuitem, { if (tab_clicked != -1) { deadbeef->plt_remove (tab_clicked); + playlist_refresh (); int playlist = deadbeef->plt_get_curr (); deadbeef->conf_set_int ("playlist.current", playlist); } @@ -876,6 +877,7 @@ on_tabstrip_button_press_event(GtkWidget *widget, else if (deadbeef->conf_get_int ("gtkui.mmb_delete_playlist", 1)) { if (tab_clicked != -1) { deadbeef->plt_remove (tab_clicked); + playlist_refresh (); int playlist = deadbeef->plt_get_curr (); deadbeef->conf_set_int ("playlist.current", playlist); } |