diff options
author | waker <wakeroid@gmail.com> | 2011-04-17 19:44:27 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-17 19:44:27 +0200 |
commit | 5bfb6a6e01f64cf93b32e6e3de24e5979b7cce02 (patch) | |
tree | 81b0d07f3a8f41b4ff160d9a2dd53b94be460030 | |
parent | 7a1cacd45b5f9cd8fa7ef2551b8aaab89af0906d (diff) |
fixed redrawing playlist after adding/removing columns
-rw-r--r-- | plugins/gtkui/plcommon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gtkui/plcommon.c b/plugins/gtkui/plcommon.c index 8eada61e..6945e5d3 100644 --- a/plugins/gtkui/plcommon.c +++ b/plugins/gtkui/plcommon.c @@ -748,7 +748,7 @@ on_add_column_activate (GtkMenuItem *menuitem, int align = gtk_combo_box_get_active (GTK_COMBO_BOX (lookup_widget (dlg, "align"))); ddb_listview_column_insert (last_playlist, active_column, title, 100, align, inf->id == DB_COLUMN_ALBUM_ART ? 100 : 0, inf); - ddb_listview_refresh (last_playlist, DDB_REFRESH_COLUMNS | DDB_REFRESH_LIST | DDB_REFRESH_HSCROLL); + ddb_listview_refresh (last_playlist, DDB_LIST_CHANGED | DDB_REFRESH_COLUMNS | DDB_REFRESH_LIST | DDB_REFRESH_HSCROLL); } gtk_widget_destroy (dlg); } @@ -823,7 +823,7 @@ on_edit_column_activate (GtkMenuItem *menuitem, init_column (inf, id, format); ddb_listview_column_set_info (last_playlist, active_column, title, width, align, inf->id == DB_COLUMN_ALBUM_ART ? width : 0, inf); - ddb_listview_refresh (last_playlist, DDB_REFRESH_COLUMNS | DDB_REFRESH_LIST); + ddb_listview_refresh (last_playlist, DDB_LIST_CHANGED | DDB_REFRESH_COLUMNS | DDB_REFRESH_LIST); } gtk_widget_destroy (dlg); } @@ -837,7 +837,7 @@ on_remove_column_activate (GtkMenuItem *menuitem, return; ddb_listview_column_remove (last_playlist, active_column); - ddb_listview_refresh (last_playlist, DDB_REFRESH_COLUMNS | DDB_REFRESH_LIST | DDB_REFRESH_HSCROLL); + ddb_listview_refresh (last_playlist, DDB_LIST_CHANGED | DDB_REFRESH_COLUMNS | DDB_REFRESH_LIST | DDB_REFRESH_HSCROLL); } GtkWidget* |