Deprecate gdk_spawn apis

This commit is contained in:
Matthias Clasen 2010-12-17 01:07:41 -05:00
parent 2f8c78ddc5
commit 08e4a60de1
3 changed files with 13 additions and 0 deletions

View File

@ -1193,11 +1193,13 @@ gdk_set_sm_client_id
#if IN_HEADER(__GDK_SPAWN_H__)
#if IN_FILE(__GDK_SPAWN_X11_C__)
#ifndef GDK_DISABLE_DEPRECATED
gdk_spawn_command_line_on_screen
gdk_spawn_on_screen
gdk_spawn_on_screen_with_pipes
#endif
#endif
#endif
#if IN_HEADER(__GDK_PRIVATE_H__)
#if IN_FILE(__GDK_EVENTS_C__)

View File

@ -30,6 +30,7 @@
G_BEGIN_DECLS
#ifndef GDK_DISABLE_DEPRECATED
gboolean gdk_spawn_on_screen (GdkScreen *screen,
const gchar *working_directory,
gchar **argv,
@ -56,6 +57,7 @@ gboolean gdk_spawn_on_screen_with_pipes (GdkScreen *screen,
gboolean gdk_spawn_command_line_on_screen (GdkScreen *screen,
const gchar *command_line,
GError **error);
#endif
G_END_DECLS

View File

@ -74,6 +74,9 @@ set_environment (gpointer user_data)
* Return value: %TRUE on success, %FALSE if error is set
*
* Since: 2.4
*
* Deprecated: 2.24: This function is being removed in 3.0. Use
* either g_spawn() or #GdkAppLaunchContext instead
**/
gboolean
gdk_spawn_on_screen (GdkScreen *screen,
@ -134,6 +137,9 @@ gdk_spawn_on_screen (GdkScreen *screen,
* Return value: %TRUE on success, %FALSE if an error was set
*
* Since: 2.4
*
* Deprecated: 2.24: This function is being removed in 3.0. Use
* either g_spawn_with_pipes() or #GdkAppLaunchContext instead
**/
gboolean
gdk_spawn_on_screen_with_pipes (GdkScreen *screen,
@ -188,6 +194,9 @@ gdk_spawn_on_screen_with_pipes (GdkScreen *screen,
* Return value: %TRUE on success, %FALSE if error is set.
*
* Since: 2.4
*
* Deprecated: 2.24: This function is being removed in 3.0. Use
* either g_spawn_command_line() or #GdkAppLaunchContext instead
**/
gboolean
gdk_spawn_command_line_on_screen (GdkScreen *screen,