diff options
author | Stefano Karapetsas <[email protected]> | 2012-05-26 12:26:55 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-05-26 12:26:55 +0200 |
commit | 2c5525c07a233d39d3bb50bf55aff3c611a84e3b (patch) | |
tree | 81d6f55f806bbb77cc80e7261376185354bfa524 | |
parent | bd675919a09f0fc9c8dded090b746c3cec03fdf2 (diff) | |
download | mate-screensaver-2c5525c07a233d39d3bb50bf55aff3c611a84e3b.tar.bz2 mate-screensaver-2c5525c07a233d39d3bb50bf55aff3c611a84e3b.tar.xz |
move is_program_in_path() functon
-rw-r--r-- | src/gs-lock-plug.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c index daf2632..70cf1d7 100644 --- a/src/gs-lock-plug.c +++ b/src/gs-lock-plug.c @@ -172,6 +172,21 @@ gs_lock_plug_style_set (GtkWidget *widget, gtk_box_set_spacing (GTK_BOX (plug->priv->auth_action_area), 5); } +static gboolean +is_program_in_path (const char *program) +{ + char *tmp = g_find_program_in_path (program); + if (tmp != NULL) + { + g_free (tmp); + return TRUE; + } + else + { + return FALSE; + } +} + static void do_user_switch (GSLockPlug *plug) { @@ -917,21 +932,6 @@ gs_lock_plug_set_logout_command (GSLockPlug *plug, } } -static gboolean -is_program_in_path (const char *program) -{ - char *tmp = g_find_program_in_path (program); - if (tmp != NULL) - { - g_free (tmp); - return TRUE; - } - else - { - return FALSE; - } -} - static void gs_lock_plug_set_status_message (GSLockPlug *plug, const char *status_message) |