[gtk+/gtk-2-24] Deprecate gdk_spawn apis



commit 08e4a60de1f8f492a9477f8097f17a13585d6910
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 17 01:07:41 2010 -0500

    Deprecate gdk_spawn apis

 gdk/gdk.symbols        |    2 ++
 gdk/gdkspawn.h         |    2 ++
 gdk/x11/gdkspawn-x11.c |    9 +++++++++
 3 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index 2356d1d..8b1be9c 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -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__)
diff --git a/gdk/gdkspawn.h b/gdk/gdkspawn.h
index ff8c1e4..4cc5768 100644
--- a/gdk/gdkspawn.h
+++ b/gdk/gdkspawn.h
@@ -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
 
diff --git a/gdk/x11/gdkspawn-x11.c b/gdk/x11/gdkspawn-x11.c
index 5c7bab6..18c3ee2 100644
--- a/gdk/x11/gdkspawn-x11.c
+++ b/gdk/x11/gdkspawn-x11.c
@@ -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,



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