diff options
author | Javier Jardón <javier.jardon@codethink.co.uk> | 2012-02-14 13:05:41 +0000 |
---|---|---|
committer | Javier Jardón <javier.jardon@codethink.co.uk> | 2012-02-14 13:05:41 +0000 |
commit | 4a60cd5e9ad0384e5bed98a2d70e9c02832a4286 (patch) | |
tree | cc1820ebbfe5cc5496c22ccd370741ecd3d7ba77 /src/indicator-power.c | |
parent | 16fb53f3e4af8d01bce049ec9f932c2ef1978b4c (diff) | |
download | ayatana-indicator-power-4a60cd5e9ad0384e5bed98a2d70e9c02832a4286.tar.gz ayatana-indicator-power-4a60cd5e9ad0384e5bed98a2d70e9c02832a4286.tar.bz2 ayatana-indicator-power-4a60cd5e9ad0384e5bed98a2d70e9c02832a4286.zip |
Code style fixes
Diffstat (limited to 'src/indicator-power.c')
-rw-r--r-- | src/indicator-power.c | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c index f7de038..84bd4c1 100644 --- a/src/indicator-power.c +++ b/src/indicator-power.c @@ -44,6 +44,12 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #define POWER_DBUS_PATH DBUS_PATH "/Power" #define POWER_DBUS_INTERFACE "org.gnome.SettingsDaemon.Power" +enum { + POWER_INDICATOR_ICON_POLICY_PRESENT, + POWER_INDICATOR_ICON_POLICY_CHARGE, + POWER_INDICATOR_ICON_POLICY_NEVER +}; + #define INDICATOR_POWER_TYPE (indicator_power_get_type ()) #define INDICATOR_POWER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), INDICATOR_POWER_TYPE, IndicatorPower)) #define INDICATOR_POWER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), INDICATOR_POWER_TYPE, IndicatorPowerClass)) @@ -51,23 +57,16 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #define IS_INDICATOR_POWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), INDICATOR_POWER_TYPE)) #define INDICATOR_POWER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), INDICATOR_POWER_TYPE, IndicatorPowerClass)) -enum { - POWER_INDICATOR_ICON_POLICY_PRESENT, - POWER_INDICATOR_ICON_POLICY_CHARGE, - POWER_INDICATOR_ICON_POLICY_NEVER -}; - -GType indicator_power_get_type (void); +typedef struct _IndicatorPowerClass IndicatorPowerClass; +typedef struct _IndicatorPower IndicatorPower; -INDICATOR_SET_VERSION -INDICATOR_SET_TYPE (INDICATOR_POWER_TYPE) - -typedef struct { +struct _IndicatorPowerClass +{ IndicatorObjectClass parent_class; -} -IndicatorPowerClass; +}; -typedef struct { +struct _IndicatorPower +{ IndicatorObject parent_instance; GtkMenu *menu; @@ -84,8 +83,12 @@ typedef struct { GVariant *device; GSettings *settings; -} -IndicatorPower; +}; + +GType indicator_power_get_type (void); + +INDICATOR_SET_VERSION +INDICATOR_SET_TYPE (INDICATOR_POWER_TYPE) /* Prototypes */ static void indicator_power_dispose (GObject *object); |