~kroq-gar78/ubuntu/precise/gnome-control-center/fix-885947

« back to all changes in this revision

Viewing changes to panels/user-accounts/um-strength-bar.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2011-05-17 10:47:27 UTC
  • mfrom: (0.1.11 experimental) (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20110517104727-lqel6m8vhfw5jby1
Tags: 1:3.0.1.1-1ubuntu1
* Rebase on Debian, remaining Ubuntu changes:
* debian/control:
  - Build-Depend on hardening-wrapper, dpkg-dev and dh-autoreconf
  - Add dependency on ubuntu-system-service
  - Remove dependency on gnome-icon-theme-symbolic
  - Move dependency on apg, gnome-icon-theme-symbolic and accountsservice to
    be a Recommends: until we get them in main
* debian/rules:
  - Use autoreconf
  - Add binary-post-install rule for gnome-control-center-data
  - Run dh-autoreconf
* debian/gnome-control-center.dirs:
* debian/gnome-control-center.links:
  - Add a link to the control center shell for indicators
* debian/patches/00_disable-nm.patch:
  - Temporary patch to disable building with NetworkManager until we get
    the new one in the archive
* debian/patches/01_git_remove_gettext_calls.patch:
  - Remove calls to AM_GNU_GETTEXT, IT_PROG_INTLTOOL should be enough
* debian/patches/01_git_kill_warning.patch:
  - Kill warning
* debian/patches/50_ubuntu_systemwide_prefs.patch:
  - Ubuntu specific proxy preferences
* debian/patches/51_ubuntu_system_keyboard.patch:
  - Implement the global keyboard spec at https://wiki.ubuntu.com/DefaultKeyboardSettings

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
 * Author: Matthias Clasen
 
20
 */
 
21
 
 
22
#ifndef _UM_STRENGTH_BAR_H_
 
23
#define _UM_STRENGTH_BAR_H_
 
24
 
 
25
#include <glib-object.h>
 
26
#include <gtk/gtk.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define UM_TYPE_STRENGTH_BAR            (um_strength_bar_get_type ())
 
31
#define UM_STRENGTH_BAR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), UM_TYPE_STRENGTH_BAR, \
 
32
                                                                           UmStrengthBar))
 
33
#define UM_STRENGTH_BAR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UM_TYPE_STRENGTH_BAR, \
 
34
                                                                        UmStrengthBarClass))
 
35
#define UM_IS_STRENGTH_BAR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UM_TYPE_STRENGTH_BAR))
 
36
#define UM_IS_STRENGTH_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UM_TYPE_STRENGTH_BAR))
 
37
#define UM_STRENGTH_BAR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), UM_TYPE_STRENGTH_BAR, \
 
38
                                                                          UmStrengthBarClass))
 
39
 
 
40
typedef struct _UmStrengthBarClass UmStrengthBarClass;
 
41
typedef struct _UmStrengthBar UmStrengthBar;
 
42
typedef struct _UmStrengthBarPrivate UmStrengthBarPrivate;
 
43
 
 
44
struct _UmStrengthBarClass {
 
45
        GtkWidgetClass parent_class;
 
46
};
 
47
 
 
48
struct _UmStrengthBar {
 
49
        GtkWidget parent_instance;
 
50
        UmStrengthBarPrivate *priv;
 
51
};
 
52
 
 
53
GType      um_strength_bar_get_type             (void) G_GNUC_CONST;
 
54
 
 
55
GtkWidget *um_strength_bar_new                  (void);
 
56
void       um_strength_bar_set_strength         (UmStrengthBar *bar,
 
57
                                                 gdouble        strength);
 
58
gdouble    um_strength_bar_get_strength         (UmStrengthBar *bar);
 
59
 
 
60
G_END_DECLS
 
61
 
 
62
#endif /* _UM_STRENGTH_BAR_H_ */