~nathwill-deactivatedaccount-deactivatedaccount/ubuntu/precise/gnome-control-center/fix-lp-978118

« back to all changes in this revision

Viewing changes to shell/cc-strength-bar.h

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher, Ken VanDine
  • Date: 2012-02-21 22:23:29 UTC
  • mfrom: (1.1.57)
  • Revision ID: package-import@ubuntu.com-20120221222329-moj5n1lsl9kwvapt
Tags: 1:3.3.90-0ubuntu1
* New upstream version:
  - gnome-control-center crashed with SIGSEGV in supply_levels_draw_cb()
    (lp: #903680)
* Refreshed patches for the new version
* debian/control.in:
  - updated g-s-d requirement
* debian/patches/91_configure_cheese.patch:
  - dropped, the fix is in the new version
* debian/source_gnome-control-center.py:
  - don't update the title several times, tag as well 
     
[ Ken VanDine ] 
* debian/patches/96_sound_nua_panel.patch
  - sound-nua: fixed crashers in gtk_tree_model_get_valist() 
    (LP: #931708) and (LP: #932446)
  - sound-nua: fixed a failure in profile selection

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2010 Red Hat, Inc.
 
3
 *
 
4
 * Licensed under the GNU General Public License Version 3
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 3 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
 *
 
19
 * Written by:
 
20
 *      Matthias Clasen <mclasen@redhat.com>
 
21
 *      Richard Hughes <richard@hughsie.com>
 
22
 */
 
23
 
 
24
#ifndef _CC_STRENGTH_BAR_H_
 
25
#define _CC_STRENGTH_BAR_H_
 
26
 
 
27
#include <glib-object.h>
 
28
#include <gtk/gtk.h>
 
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
32
#define UM_TYPE_STRENGTH_BAR            (cc_strength_bar_get_type ())
 
33
#define CC_STRENGTH_BAR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), UM_TYPE_STRENGTH_BAR, \
 
34
                                                                           CcStrengthBar))
 
35
#define CC_STRENGTH_BAR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UM_TYPE_STRENGTH_BAR, \
 
36
                                                                        CcStrengthBarClass))
 
37
#define UM_IS_STRENGTH_BAR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UM_TYPE_STRENGTH_BAR))
 
38
#define UM_IS_STRENGTH_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UM_TYPE_STRENGTH_BAR))
 
39
#define CC_STRENGTH_BAR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), UM_TYPE_STRENGTH_BAR, \
 
40
                                                                          CcStrengthBarClass))
 
41
 
 
42
typedef struct _CcStrengthBarClass CcStrengthBarClass;
 
43
typedef struct _CcStrengthBar CcStrengthBar;
 
44
typedef struct _CcStrengthBarPrivate CcStrengthBarPrivate;
 
45
 
 
46
struct _CcStrengthBarClass {
 
47
        GtkWidgetClass parent_class;
 
48
};
 
49
 
 
50
struct _CcStrengthBar {
 
51
        GtkWidget parent_instance;
 
52
        CcStrengthBarPrivate *priv;
 
53
};
 
54
 
 
55
GType      cc_strength_bar_get_type             (void) G_GNUC_CONST;
 
56
 
 
57
GtkWidget *cc_strength_bar_new                  (void);
 
58
 
 
59
void       cc_strength_bar_set_fraction         (CcStrengthBar *bar,
 
60
                                                 gdouble        fraction);
 
61
gdouble    cc_strength_bar_get_fraction         (CcStrengthBar *bar);
 
62
 
 
63
void       cc_strength_bar_set_segments         (CcStrengthBar *bar,
 
64
                                                 gint          segments);
 
65
gint       cc_strength_bar_get_segments         (CcStrengthBar *bar);
 
66
 
 
67
G_END_DECLS
 
68
 
 
69
#endif /* _CC_STRENGTH_BAR_H_ */