Code cleanup

This commit is contained in:
Pierre Pronchery 2013-02-28 01:07:16 +01:00
parent cb50ba66e9
commit 902216a075
3 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/* $Id$ */
/* Copyright (c) 2011-2012 Pierre Pronchery <khorben@defora.org> */
/* Copyright (c) 2009-2013 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS Desktop Panel */
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -289,7 +289,7 @@ static void _applications_on_activate_directory(Config * config)
char const * directory;
/* XXX open with the default file manager instead */
char * argv[] = { "browser", "--", NULL, NULL };
int flags = G_SPAWN_SEARCH_PATH;
GSpawnFlags flags = G_SPAWN_SEARCH_PATH;
GError * error = NULL;
/* XXX this may not might the correct key */
@ -312,7 +312,7 @@ static void _applications_on_activate_url(Config * config)
char const * url;
/* XXX open with the default web browser instead */
char * argv[] = { "surfer", "--", NULL, NULL };
int flags = G_SPAWN_SEARCH_PATH;
GSpawnFlags flags = G_SPAWN_SEARCH_PATH;
GError * error = NULL;
if((url = config_get(config, section, "URL")) == NULL)

View File

@ -1,5 +1,5 @@
/* $Id$ */
/* Copyright (c) 2009-2012 Pierre Pronchery <khorben@defora.org> */
/* Copyright (c) 2009-2013 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS Desktop Panel */
static char const _license[] =
"This program is free software: you can redistribute it and/or modify\n"
@ -1662,7 +1662,7 @@ static int _panel_helper_suspend(Panel * panel)
int fd;
char * suspend[] = { "/usr/bin/sudo", "sudo", "/usr/bin/apm", "-s",
NULL };
int flags = G_SPAWN_FILE_AND_ARGV_ZERO;
GSpawnFlags flags = G_SPAWN_FILE_AND_ARGV_ZERO;
GError * error = NULL;
#endif

View File

@ -1,6 +1,6 @@
/* $Id$ */
static char const _copyright[] =
"Copyright (c) 2009-2012 Pierre Pronchery <khorben@defora.org>";
"Copyright (c) 2009-2013 Pierre Pronchery <khorben@defora.org>";
/* This file is part of DeforaOS Desktop Panel */
static char const _license[] =
"This program is free software: you can redistribute it and/or modify\n"
@ -383,7 +383,7 @@ static int _helper_suspend(Panel * panel)
int fd;
char * suspend[] = { "/usr/bin/sudo", "sudo", "/usr/bin/apm", "-s",
NULL };
int flags = G_SPAWN_FILE_AND_ARGV_ZERO;
GSpawnFlags flags = G_SPAWN_FILE_AND_ARGV_ZERO;
GError * error = NULL;
#endif