[gtk+] Use a GPid on gdk_spawn_on_screen[_with_pipes] instead a gint



commit 71c501d895104d568061a4d0a55c883a9663eb89
Author: Javier Jardón <jjardon gnome org>
Date:   Sun Jun 6 15:40:46 2010 +0200

    Use a GPid on gdk_spawn_on_screen[_with_pipes] instead a gint
    
    Reported by Nick Schermer in bug
    https://bugzilla.gnome.org/show_bug.cgi?id=602289

 gdk/directfb/gdkspawn-directfb.c |    4 ++--
 gdk/quartz/gdkspawn-quartz.c     |    8 ++++----
 gdk/win32/gdkspawn-win32.c       |    8 ++++----
 gdk/x11/gdkspawn-x11.c           |    4 ++--
 4 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gdk/directfb/gdkspawn-directfb.c b/gdk/directfb/gdkspawn-directfb.c
index 228dd46..a33d9d9 100644
--- a/gdk/directfb/gdkspawn-directfb.c
+++ b/gdk/directfb/gdkspawn-directfb.c
@@ -35,7 +35,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
 		     GSpawnFlags            flags,
 		     GSpawnChildSetupFunc   child_setup,
 		     gpointer               user_data,
-		     gint                  *child_pid,
+		     GPid                  *child_pid,
 		     GError               **error)
 {
   g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE);
@@ -58,7 +58,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
 				GSpawnFlags           flags,
 				GSpawnChildSetupFunc  child_setup,
 				gpointer              user_data,
-				gint                 *child_pid,
+				GPid                 *child_pid,
 				gint                 *standard_input,
 				gint                 *standard_output,
 				gint                 *standard_error,
diff --git a/gdk/quartz/gdkspawn-quartz.c b/gdk/quartz/gdkspawn-quartz.c
index 8f0df20..6cddd64 100644
--- a/gdk/quartz/gdkspawn-quartz.c
+++ b/gdk/quartz/gdkspawn-quartz.c
@@ -34,7 +34,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
 		     GSpawnFlags            flags,
 		     GSpawnChildSetupFunc   child_setup,
 		     gpointer               user_data,
-		     gint                  *child_pid,
+		     GPid                  *child_pid,
 		     GError               **error)
 {
   g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE);
@@ -46,7 +46,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
 			flags,
 			child_setup,
 			user_data,
-			(GPid*)child_pid,
+			child_pid,
 			error);
 }
 
@@ -58,7 +58,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
 				GSpawnFlags           flags,
 				GSpawnChildSetupFunc  child_setup,
 				gpointer              user_data,
-				gint                 *child_pid,
+				GPid                 *child_pid,
 				gint                 *standard_input,
 				gint                 *standard_output,
 				gint                 *standard_error,
@@ -73,7 +73,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
 				   flags,
 				   child_setup,
 				   user_data,
-				   (GPid*)child_pid,
+				   child_pid,
 				   standard_input,
 				   standard_output,
 				   standard_error,
diff --git a/gdk/win32/gdkspawn-win32.c b/gdk/win32/gdkspawn-win32.c
index 8f0df20..6cddd64 100644
--- a/gdk/win32/gdkspawn-win32.c
+++ b/gdk/win32/gdkspawn-win32.c
@@ -34,7 +34,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
 		     GSpawnFlags            flags,
 		     GSpawnChildSetupFunc   child_setup,
 		     gpointer               user_data,
-		     gint                  *child_pid,
+		     GPid                  *child_pid,
 		     GError               **error)
 {
   g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE);
@@ -46,7 +46,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
 			flags,
 			child_setup,
 			user_data,
-			(GPid*)child_pid,
+			child_pid,
 			error);
 }
 
@@ -58,7 +58,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
 				GSpawnFlags           flags,
 				GSpawnChildSetupFunc  child_setup,
 				gpointer              user_data,
-				gint                 *child_pid,
+				GPid                 *child_pid,
 				gint                 *standard_input,
 				gint                 *standard_output,
 				gint                 *standard_error,
@@ -73,7 +73,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
 				   flags,
 				   child_setup,
 				   user_data,
-				   (GPid*)child_pid,
+				   child_pid,
 				   standard_input,
 				   standard_output,
 				   standard_error,
diff --git a/gdk/x11/gdkspawn-x11.c b/gdk/x11/gdkspawn-x11.c
index 5c7bab6..d28d883 100644
--- a/gdk/x11/gdkspawn-x11.c
+++ b/gdk/x11/gdkspawn-x11.c
@@ -83,7 +83,7 @@ gdk_spawn_on_screen (GdkScreen             *screen,
 		     GSpawnFlags            flags,
 		     GSpawnChildSetupFunc   child_setup,
 		     gpointer               user_data,
-		     gint                  *child_pid,
+		     GPid                  *child_pid,
 		     GError               **error)
 {
   UserChildSetup setup_data;
@@ -143,7 +143,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen            *screen,
 				GSpawnFlags           flags,
 				GSpawnChildSetupFunc  child_setup,
 				gpointer              user_data,
-				gint                 *child_pid,
+				GPid                 *child_pid,
 				gint                 *standard_input,
 				gint                 *standard_output,
 				gint                 *standard_error,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]