aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2011-06-27 11:55:30 +0100
committerJavier Jardón <javier.jardon@codethink.co.uk>2011-06-27 11:55:30 +0100
commit998509ea7c9b3a984bad2383f7487241f4820eb0 (patch)
tree698051644cb708d88635611e50fbf6a2321660de /src
parentf348430550f391d6809455d321ce5b2315b151d6 (diff)
downloadayatana-indicator-power-998509ea7c9b3a984bad2383f7487241f4820eb0.tar.gz
ayatana-indicator-power-998509ea7c9b3a984bad2383f7487241f4820eb0.tar.bz2
ayatana-indicator-power-998509ea7c9b3a984bad2383f7487241f4820eb0.zip
power-service: No need for a global variable
Diffstat (limited to 'src')
-rw-r--r--src/power-service.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/power-service.c b/src/power-service.c
index e3bbc32..f63c995 100644
--- a/src/power-service.c
+++ b/src/power-service.c
@@ -40,7 +40,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
static IndicatorService *service = NULL;
static GMainLoop *mainloop = NULL;
static DbusmenuServer *server = NULL;
-static DbusmenuMenuitem *root_menuitem = NULL;
/*TODO Do we need this?*/
/*static PowerServiceDbus *dbus_interface = NULL;*/
@@ -59,7 +58,7 @@ service_shutdown (IndicatorService *service,
}
static void
-build_menus (gpointer data)
+build_menus (DbusmenuMenuitem *root_menuitem)
{
/*TODO*/
@@ -82,6 +81,8 @@ gint
main (gint argc,
gchar **argv)
{
+ DbusmenuMenuitem *root_menuitem = NULL;
+
g_type_init();
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);