~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/gtklevelbar.c

  • Committer: Osmo Antero
  • Date: 2012-12-09 14:36:39 UTC
  • Revision ID: osmoma@gmail.com-20121209143639-c43tl71n6eawaq27
Moving to GPL3 license. All src/*.c should now comply to GPL3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) Linux community.
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Library General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 3 of the License (GPL3), or any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 
12
 * See the GNU Library General Public License 3 for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Library General Public
 
15
 * License 3 along with this program; if not, see /usr/share/common-licenses/GPL file
 
16
 * or write to Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
 
18
*/
1
19
#include "gtklevelbar.h"
2
20
#include <math.h> // round()
3
21
 
11
29
// Set value [0.0, 1.0].
12
30
// gtk_level_bar_set_fraction(GTK_LEVEL_BAR(lb), 0.8);
13
31
//
14
 
// Show %-scale on the levelbar (one of: SCALE_NONE, SCALE_VALUE, SCALE_PRECENT)
 
32
// Show %-value [0 - 100] or plain value [0 - 1.0] on the levelbar (one of: SCALE_NONE, SCALE_VALUE, SCALE_PRECENT)
15
33
// gtk_level_bar_set_scale(GTK_LEVEL_BAR(lb), SCALE_PRECENT);
16
34
//
17
 
// Show value-scale on the levelbar
18
 
// gtk_level_bar_set_scale(GTK_LEVEL_BAR(lb), SCALE_VALUE);
19
35
 
20
36
struct _GtkLevelBarPrivate {
21
37
    gdouble fraction;