summaryrefslogtreecommitdiff
path: root/src/procman_gksu.cpp
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-18 00:23:57 +0100
committerinfirit <[email protected]>2014-12-18 00:23:57 +0100
commit12975909c589880030db6125ad6dcbea889edcdc (patch)
treefc374a8a3b855b5024d09f9edb2e47ca755cb7ac /src/procman_gksu.cpp
parent0dea7ab1931fb33f35eceab66dffcd56f4550f68 (diff)
downloadmate-system-monitor-12975909c589880030db6125ad6dcbea889edcdc.tar.bz2
mate-system-monitor-12975909c589880030db6125ad6dcbea889edcdc.tar.xz
Make indentation uniform across source files
No more tabs, 4 spaces instead. And remove trailing whitespace.
Diffstat (limited to 'src/procman_gksu.cpp')
-rw-r--r--src/procman_gksu.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/procman_gksu.cpp b/src/procman_gksu.cpp
index d2737cc..58faa0c 100644
--- a/src/procman_gksu.cpp
+++ b/src/procman_gksu.cpp
@@ -9,16 +9,16 @@ static gboolean (*gksu_run)(const char *, GError **);
static void load_gksu(void)
{
- static gboolean init;
+ static gboolean init;
- if (init)
- return;
+ if (init)
+ return;
- init = TRUE;
+ init = TRUE;
- load_symbols("libgksu2.so",
- "gksu_run", &gksu_run,
- NULL);
+ load_symbols("libgksu2.so",
+ "gksu_run", &gksu_run,
+ NULL);
}
@@ -27,20 +27,20 @@ static void load_gksu(void)
gboolean procman_gksu_create_root_password_dialog(const char *command)
{
- GError *e = NULL;
+ GError *e = NULL;
- /* Returns FALSE or TRUE on success, depends on version ... */
- gksu_run(command, &e);
+ /* Returns FALSE or TRUE on success, depends on version ... */
+ gksu_run(command, &e);
- if (e) {
- g_critical("Could not run gksu_run(\"%s\") : %s\n",
- command, e->message);
- g_error_free(e);
- return FALSE;
- }
+ if (e) {
+ g_critical("Could not run gksu_run(\"%s\") : %s\n",
+ command, e->message);
+ g_error_free(e);
+ return FALSE;
+ }
- g_message("gksu_run did fine\n");
- return TRUE;
+ g_message("gksu_run did fine\n");
+ return TRUE;
}
@@ -48,7 +48,7 @@ gboolean procman_gksu_create_root_password_dialog(const char *command)
gboolean
procman_has_gksu(void)
{
- load_gksu();
- return gksu_run != NULL;
+ load_gksu();
+ return gksu_run != NULL;
}