[easytag/wip/musicbrainz-support-merge] Show File Path in TagChoiceDialog



commit 56cd15302ce5437f6a185b98a8da2ef6f4f5fa66
Author: Abhinav <abhijangda hotmail com>
Date:   Tue Aug 12 21:36:06 2014 +0530

    Show File Path in TagChoiceDialog

 src/musicbrainz_dialog.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/musicbrainz_dialog.c b/src/musicbrainz_dialog.c
index 4c8e670..3fc8e28 100755
--- a/src/musicbrainz_dialog.c
+++ b/src/musicbrainz_dialog.c
@@ -37,6 +37,7 @@
 #include "browser.h"
 #include "dlm.h"
 
+#define TAG_CHOICE_DIALOG_TITLE "Select the tag you want to apply to "
 #define ET_MUSICBRAINZ_DIALOG_GET_PRIVATE(obj) (obj->priv)
 
 G_DEFINE_TYPE (EtMusicBrainzDialog, et_musicbrainz_dialog, GTK_TYPE_DIALOG)
@@ -1880,6 +1881,7 @@ et_apply_track_tag_to_et_file (Mb5Recording recording, EtMbEntity *album_entity,
     EtMusicBrainzDialogPrivate *mb_dialog_priv;
     EtMusicBrainzDialog *dlg;
     Mb5Release release;
+    gchar *tag_choice_title;
 
     dlg = ET_MUSICBRAINZ_DIALOG (mbDialog);
     mb_dialog_priv = ET_MUSICBRAINZ_DIALOG_GET_PRIVATE (dlg);
@@ -1916,6 +1918,12 @@ et_apply_track_tag_to_et_file (Mb5Recording recording, EtMbEntity *album_entity,
 
         gtk_widget_set_size_request (mb_dialog_priv->tag_choice_dialog,
                                      600, 200);
+        tag_choice_title = g_strconcat (TAG_CHOICE_DIALOG_TITLE, 
+                                        ((File_Name *)et_file->FileNameCur->data)->value, 
+                                        NULL);
+        gtk_window_set_title (GTK_WINDOW (mb_dialog_priv->tag_choice_dialog),
+                              tag_choice_title);
+        g_free (tag_choice_title);
         gtk_widget_show_all (mb_dialog_priv->tag_choice_dialog);
 
         if (gtk_dialog_run (GTK_DIALOG (mb_dialog_priv->tag_choice_dialog)) == 0)


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