diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-02-01 19:05:08 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-02-01 19:05:08 -0600 |
commit | 7cc07d1db1a5bf36479a3db7594e39d6b9d80c30 (patch) | |
tree | 088c61c22d7e3dc02195a5fb7d6fc0fbf2b4f347 /src/indicator-power.c | |
parent | 7c8371d127b16cd2fe2893605b6cdf61a94b2451 (diff) | |
download | ayatana-indicator-power-7cc07d1db1a5bf36479a3db7594e39d6b9d80c30.tar.gz ayatana-indicator-power-7cc07d1db1a5bf36479a3db7594e39d6b9d80c30.tar.bz2 ayatana-indicator-power-7cc07d1db1a5bf36479a3db7594e39d6b9d80c30.zip |
remove unused struct names
Diffstat (limited to 'src/indicator-power.c')
-rw-r--r-- | src/indicator-power.c | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c index 27202cb..5858b71 100644 --- a/src/indicator-power.c +++ b/src/indicator-power.c @@ -55,25 +55,12 @@ GType indicator_power_get_type (void); INDICATOR_SET_VERSION INDICATOR_SET_TYPE (INDICATOR_POWER_TYPE) -typedef struct _IndicatorPower IndicatorPower; -typedef struct _IndicatorPowerClass IndicatorPowerClass; -typedef struct _IndicatorPowerPrivate IndicatorPowerPrivate; - -struct _IndicatorPower -{ - IndicatorObject parent_instance; - - IndicatorPowerPrivate *priv; -}; - -struct _IndicatorPowerClass -{ +typedef struct { IndicatorObjectClass parent_class; -}; - +} +IndicatorPowerClass; -struct _IndicatorPowerPrivate -{ +typedef struct { GtkMenu *menu; GtkLabel *label; @@ -88,7 +75,15 @@ struct _IndicatorPowerPrivate GVariant *device; GSettings *settings; -}; +} +IndicatorPowerPrivate; + +typedef struct { + IndicatorObject parent_instance; + + IndicatorPowerPrivate *priv; +} +IndicatorPower; /* Prototypes */ static void indicator_power_dispose (GObject *object); @@ -136,7 +131,6 @@ indicator_power_init (IndicatorPower *self) priv->menu = NULL; priv->accessible_desc = NULL; - priv->watcher_id = g_bus_watch_name (G_BUS_TYPE_SESSION, DBUS_SERVICE, G_BUS_NAME_WATCHER_FLAGS_NONE, |