~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Osmo Antero
  • Date: 2012-04-05 07:44:38 UTC
  • Revision ID: osmoma@gmail.com-20120405074438-n7d9w0emc2xrzbu4
Set right version number in .deb package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
    return 0;
200
200
}
201
201
 
202
 
const gchar *win_peak_to_text(gdouble peak, gdouble peak_dB) {
 
202
const gchar *win_level_value_to_text(gdouble peak, gdouble peak_dB) {
203
203
    static gchar text[16];
204
204
 
205
205
    if (peak <= 0.01) {
229
229
    if (!GTK_IS_LEVEL_BAR(g_win.level_bar)) return;
230
230
 
231
231
    // Value text (eg. "10%" or "-20dB" or simply NULL)
232
 
    const gchar *value_text = win_peak_to_text(peak, peak_dB);
 
232
    const gchar *value_text = win_level_value_to_text(peak, peak_dB);
233
233
 
234
234
    // Set level value and text
235
235
    gtk_level_bar_set_fraction(GTK_LEVEL_BAR(g_win.level_bar), peak, value_text);