diff options
author | waker <wakeroid@gmail.com> | 2012-11-23 23:11:03 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-11-23 23:11:03 +0100 |
commit | 8290c8efd930711e087f273ffeaa436921476c4e (patch) | |
tree | 2d140fca31c31c1efb3827ebc90d3a0a29eb8e18 /plugins/gtkui/trkproperties.c | |
parent | a848c17ed3d206223ad94be9ee0b9ff477d9820c (diff) |
gtkui: added location field to the metadata tab in trkproperties
Diffstat (limited to 'plugins/gtkui/trkproperties.c')
-rw-r--r-- | plugins/gtkui/trkproperties.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/gtkui/trkproperties.c b/plugins/gtkui/trkproperties.c index 4c559a55..d57cd393 100644 --- a/plugins/gtkui/trkproperties.c +++ b/plugins/gtkui/trkproperties.c @@ -494,6 +494,15 @@ show_track_properties_dlg (int ctx) { gtk_list_store_clear (propstore); } + if (numtracks == 1) { + deadbeef->pl_lock (); + gtk_entry_set_text (GTK_ENTRY (lookup_widget (trackproperties, "filename")), deadbeef->pl_find_meta_raw (tracks[0], ":URI")); + deadbeef->pl_unlock (); + } + else { + gtk_entry_set_text (GTK_ENTRY (lookup_widget (trackproperties, "filename")), _("[Multiple values]")); + } + g_object_set (G_OBJECT (rend_text2), "editable", TRUE, NULL); GtkWidget *widget = trackproperties; |