Permalink
Browse files

move is_program_in_path() functon

  • Loading branch information...
1 parent bd67591 commit 2c5525c07a233d39d3bb50bf55aff3c611a84e3b @stefano-k stefano-k committed May 26, 2012
Showing with 15 additions and 15 deletions.
  1. +15 −15 src/gs-lock-plug.c
View
30 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)

0 comments on commit 2c5525c

Please sign in to comment.