[rhythmbox] audiocd: bind entry view settings and add duration column



commit 6750033026cc15753c5a6cc385c0e14f995e1e41
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Jan 15 14:30:16 2012 +1000

    audiocd: bind entry view settings and add duration column
    
    This got missed when the audio CD source stopped being a
    browser source subclass.

 plugins/audiocd/rb-audiocd-source.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/audiocd/rb-audiocd-source.c b/plugins/audiocd/rb-audiocd-source.c
index 338c27d..dd255b9 100644
--- a/plugins/audiocd/rb-audiocd-source.c
+++ b/plugins/audiocd/rb-audiocd-source.c
@@ -410,6 +410,7 @@ rb_audiocd_source_constructed (GObject *object)
 	rb_entry_view_append_column (source->priv->entry_view, RB_ENTRY_VIEW_COL_TITLE, TRUE);
 	rb_entry_view_append_column (source->priv->entry_view, RB_ENTRY_VIEW_COL_ARTIST, TRUE);
 	rb_entry_view_append_column (source->priv->entry_view, RB_ENTRY_VIEW_COL_GENRE, FALSE);
+	rb_entry_view_append_column (source->priv->entry_view, RB_ENTRY_VIEW_COL_DURATION, FALSE);
 
 	/* enable in-place editing for titles, artists, and genres */
 	rb_entry_view_set_column_editable (source->priv->entry_view, RB_ENTRY_VIEW_COL_TITLE, TRUE);
@@ -497,6 +498,8 @@ rb_audiocd_source_constructed (GObject *object)
 	gtk_grid_attach (GTK_GRID (grid), GTK_WIDGET (source->priv->entry_view), 0, 2, 1, 1);
 	g_object_unref (builder);
 
+	rb_source_bind_settings (RB_SOURCE (source), GTK_WIDGET (source->priv->entry_view), NULL, NULL);
+
 	gtk_widget_show_all (grid);
 	gtk_container_add (GTK_CONTAINER (source), grid);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]