aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);