[Xfce4-commits] [apps/xfce4-screensaver] 22/425: move is_program_in_path() functon

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:47:49 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 2c5525c07a233d39d3bb50bf55aff3c611a84e3b
Author: Stefano Karapetsas <stefano at karapetsas.com>
Date:   Sat May 26 12:26:55 2012 +0200

    move is_program_in_path() functon
---
 src/gs-lock-plug.c | 30 +++++++++++++++---------------
 1 file 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list