gnome-commander r1526 - in trunk: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1526 - in trunk: . src
- Date: Thu, 17 Jan 2008 18:26:28 +0000 (GMT)
Author: epiotr
Date: Thu Jan 17 18:26:27 2008
New Revision: 1526
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1526&view=rev
Log:
Added "kbps" to Audio.Bitrate tag presented in file properties dlg
Modified:
trunk/ChangeLog
trunk/src/gnome-cmd-file-props-dialog.cc
Modified: trunk/src/gnome-cmd-file-props-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-file-props-dialog.cc (original)
+++ trunk/src/gnome-cmd-file-props-dialog.cc Thu Jan 17 18:26:27 2008
@@ -305,7 +305,7 @@
}
-inline void add_tag (GtkWidget *dialog, GtkWidget *table, gint &y, GnomeCmdFileMetadata &metadata, GnomeCmdTag tag)
+inline void add_tag (GtkWidget *dialog, GtkWidget *table, gint &y, GnomeCmdFileMetadata &metadata, GnomeCmdTag tag, const gchar *appended_text=NULL)
{
if (!metadata.has_tag (tag))
return;
@@ -318,7 +318,12 @@
label = create_bold_label (dialog, title.c_str());
table_add (table, label, 0, y, GTK_FILL);
- label = create_label (dialog, truncate(metadata[tag],120).c_str());
+ string value = truncate (metadata[tag],120);
+
+ if (appended_text)
+ value += appended_text;
+
+ label = create_label (dialog, value.c_str());
table_add (table, label, 1, y++, GTK_FILL);
}
@@ -453,7 +458,7 @@
add_width_height_tag (dialog, table, y, *data->finfo->metadata);
add_tag (dialog, table, y, *data->finfo->metadata, TAG_AUDIO_ALBUMARTIST);
add_tag (dialog, table, y, *data->finfo->metadata, TAG_AUDIO_TITLE);
- add_tag (dialog, table, y, *data->finfo->metadata, TAG_AUDIO_BITRATE);
+ add_tag (dialog, table, y, *data->finfo->metadata, TAG_AUDIO_BITRATE, " kbps");
add_tag (dialog, table, y, *data->finfo->metadata, TAG_AUDIO_DURATIONMMSS);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]