From 7cc07d1db1a5bf36479a3db7594e39d6b9d80c30 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 1 Feb 2012 19:05:08 -0600 Subject: remove unused struct names --- src/indicator-power.c | 32 +++++++++++++------------------- 1 file 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, -- cgit v1.2.3