[gtk+/gtk-2-90: 39/156] Remove deprecated GtkSocket functions



commit 4d6eb94b85a4bb25bc930b771c66727458114a48
Author: Christian Dywan <christian twotoasts de>
Date:   Wed Oct 7 18:31:13 2009 +0200

    Remove deprecated GtkSocket functions

 gtk/gtksocket.c |   25 -------------------------
 gtk/gtksocket.h |    5 -----
 2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/gtk/gtksocket.c b/gtk/gtksocket.c
index 9d468b8..bd83dc7 100644
--- a/gtk/gtksocket.c
+++ b/gtk/gtksocket.c
@@ -218,31 +218,6 @@ gtk_socket_new (void)
   return GTK_WIDGET (socket);
 }
 
-/**
- * gtk_socket_steal:
- * @socket_: a #GtkSocket
- * @wid: the window ID of an existing toplevel window.
- * 
- * Reparents a pre-existing toplevel window into a #GtkSocket. This is
- * meant to embed clients that do not know about embedding into a
- * #GtkSocket, however doing so is inherently unreliable, and using
- * this function is not recommended.
- *
- * The #GtkSocket must have already be added into a toplevel window
- *  before you can make this call.
- **/
-void           
-gtk_socket_steal (GtkSocket      *socket,
-		  GdkNativeWindow wid)
-{
-  g_return_if_fail (GTK_IS_SOCKET (socket));
-  g_return_if_fail (GTK_WIDGET_ANCHORED (socket));
-
-  if (!GTK_WIDGET_REALIZED (socket))
-    gtk_widget_realize (GTK_WIDGET (socket));
-
-  _gtk_socket_add_window (socket, wid, TRUE);
-}
 
 /**
  * gtk_socket_add_id:
diff --git a/gtk/gtksocket.h b/gtk/gtksocket.h
index db347c0..e47533d 100644
--- a/gtk/gtksocket.h
+++ b/gtk/gtksocket.h
@@ -92,11 +92,6 @@ void            gtk_socket_add_id (GtkSocket       *socket_,
 GdkNativeWindow gtk_socket_get_id (GtkSocket       *socket_);
 GdkWindow*      gtk_socket_get_plug_window (GtkSocket       *socket_);
 
-#ifndef GTK_DISABLE_DEPRECATED
-void           gtk_socket_steal    (GtkSocket      *socket_,
-				    GdkNativeWindow wid);
-#endif /* GTK_DISABLE_DEPRECATED */
-
 G_END_DECLS
 
 #endif /* __GTK_SOCKET_H__ */



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