[rhythmbox] import-dialog: display status on the entry view



commit ed93e93b848816e08a9346b02e22605d696a1a1a
Author: Jonathan Matthew <jonathan d14n org>
Date:   Mon Oct 23 20:29:40 2017 +1000

    import-dialog: display status on the entry view

 widgets/rb-import-dialog.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/widgets/rb-import-dialog.c b/widgets/rb-import-dialog.c
index 4baa5b2..86c3682 100644
--- a/widgets/rb-import-dialog.c
+++ b/widgets/rb-import-dialog.c
@@ -471,6 +471,14 @@ update_status_idle (RBImportDialog *dialog)
        gtk_button_set_label (GTK_BUTTON (dialog->priv->import_button), text);
        g_free (text);
 
+       /* hack to get these strings marked for translation */
+       if (0) {
+               ngettext ("%d song", "%d songs", 0);
+       }
+       text = rhythmdb_query_model_compute_status_normal (dialog->priv->query_model, "%d song", "%d songs");
+       rb_entry_view_set_status (dialog->priv->entry_view, text, FALSE);
+       g_free (text);
+
        dialog->priv->update_status_id = 0;
        return FALSE;
 }


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