diff options
author | Hans Breuer <hans@breuer.org> | 2004-04-11 15:25:06 +0000 |
---|---|---|
committer | Hans Breuer <hans@src.gnome.org> | 2004-04-11 15:25:06 +0000 |
commit | e9ec1e81b19668e7a73c26fe18a11c9c964237da (patch) | |
tree | a83da95071c213e341d89aa8934f1185d2fbff35 /gdk | |
parent | 4a703942132245ad7a79c06a4d58793711607a4a (diff) | |
download | gtk+-e9ec1e81b19668e7a73c26fe18a11c9c964237da.tar.gz |
workaround for bug #137496, the real fix would involve just another small
2004-04-11 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkspawn-win32.c : workaround for bug #137496,
the real fix would involve just another small API breakage,
i.e. gdk_spawn_* using GPid not just gint.
* gtk/makefile.msc.in : build gtk-win32.res, not gtk.res
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/win32/gdkspawn-win32.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdk/win32/gdkspawn-win32.c b/gdk/win32/gdkspawn-win32.c index 8fdd9b4161..8f6e3d85fd 100644 --- a/gdk/win32/gdkspawn-win32.c +++ b/gdk/win32/gdkspawn-win32.c @@ -38,6 +38,7 @@ gdk_spawn_on_screen (GdkScreen *screen, GError **error) { g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE); + g_assert (sizeof(GPid) == sizeof(int)); return g_spawn_async (working_directory, argv, @@ -45,7 +46,7 @@ gdk_spawn_on_screen (GdkScreen *screen, flags, child_setup, user_data, - child_pid, + (GPid*)child_pid, error); } @@ -64,6 +65,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen *screen, GError **error) { g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE); + g_assert (sizeof(GPid) == sizeof(int)); return g_spawn_async_with_pipes (working_directory, argv, @@ -71,7 +73,7 @@ gdk_spawn_on_screen_with_pipes (GdkScreen *screen, flags, child_setup, user_data, - child_pid, + (GPid*)child_pid, standard_input, standard_output, standard_error, |