gnome-commander r1527 - in branches/gcmd-1-3: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1527 - in branches/gcmd-1-3: . src
- Date: Thu, 17 Jan 2008 18:26:42 +0000 (GMT)
Author: epiotr
Date: Thu Jan 17 18:26:42 2008
New Revision: 1527
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1527&view=rev
Log:
Added "kbps" to Audio.Bitrate tag presented in file properties dlg
Modified:
branches/gcmd-1-3/ChangeLog
branches/gcmd-1-3/src/gnome-cmd-file-props-dialog.cc
Modified: branches/gcmd-1-3/src/gnome-cmd-file-props-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-props-dialog.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-props-dialog.cc Thu Jan 17 18:26:42 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]