diff options
author | 2009-12-31 15:03:56 +0100 | |
---|---|---|
committer | 2009-12-31 15:03:56 +0100 | |
commit | cde24f6bbdec2d061079e234753db1ab61b62543 (patch) | |
tree | a0d7c500362760a9fb4a317915b62ea19a0082cd | |
parent | f308147adc4b195efbf78a7efc7e872306f0f286 (diff) |
fixed comment display in track properties
-rw-r--r-- | deadbeef.h | 4 | ||||
-rw-r--r-- | plugins/gtkui/callbacks.c | 1 | ||||
-rw-r--r-- | plugins/gtkui/deadbeef.glade | 4 | ||||
-rw-r--r-- | plugins/gtkui/interface.c | 2 |
4 files changed, 10 insertions, 1 deletions
@@ -302,6 +302,10 @@ typedef struct { %b album %n track %l length (duration) + %y year + %g genre + %c comment + %r copyright more to come */ int (*pl_format_title) (DB_playItem_t *it, char *s, int size, int id, const char *fmt); diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c index 1f611778..87026405 100644 --- a/plugins/gtkui/callbacks.c +++ b/plugins/gtkui/callbacks.c @@ -2362,6 +2362,7 @@ on_properties1_activate (GtkMenuItem *menuitem, } GtkTextBuffer *buffer = gtk_text_buffer_new (NULL); gtk_text_buffer_set_text (buffer, meta, strlen (meta)); + gtk_text_view_set_buffer (GTK_TEXT_VIEW (w), buffer); g_object_unref (buffer); gtk_widget_show (widget); diff --git a/plugins/gtkui/deadbeef.glade b/plugins/gtkui/deadbeef.glade index 1ed6b1d5..6122beb9 100644 --- a/plugins/gtkui/deadbeef.glade +++ b/plugins/gtkui/deadbeef.glade @@ -2766,6 +2766,10 @@ SOCKS5_HOSTNAME</property> %b - album %n - track %l - duration + %y - year + %g - genre + %c - comment + %r - copyright Example: %a - %t [%l]</property> <property name="use_underline">False</property> <property name="use_markup">True</property> diff --git a/plugins/gtkui/interface.c b/plugins/gtkui/interface.c index b4a8a0ed..d7ae9019 100644 --- a/plugins/gtkui/interface.c +++ b/plugins/gtkui/interface.c @@ -1890,7 +1890,7 @@ create_inputformat (void) gtk_box_pack_start (GTK_BOX (hbox9), formatentry, TRUE, TRUE, 0); gtk_entry_set_invisible_char (GTK_ENTRY (formatentry), 9679); - label25 = gtk_label_new ("Format fields:\n %a - artist\n %t - title\n %b - album\n %n - track\n %l - duration\nExample: %a - %t [%l]"); + label25 = gtk_label_new ("Format fields:\n %a - artist\n %t - title\n %b - album\n %n - track\n %l - duration\n %y - year\n %g - genre\n %c - comment\n %r - copyright\nExample: %a - %t [%l]"); gtk_widget_show (label25); gtk_box_pack_start (GTK_BOX (vbox8), label25, TRUE, TRUE, 0); GTK_WIDGET_SET_FLAGS (label25, GTK_CAN_FOCUS); |