summaryrefslogtreecommitdiff
path: root/gtk/gtksocket.c
diff options
context:
space:
mode:
authorTim Janik <timj@src.gnome.org>2008-06-20 11:08:13 +0000
committerTim Janik <timj@src.gnome.org>2008-06-20 11:08:13 +0000
commitf40470a3620094e38e131156a3f13ab8e676519a (patch)
treef8fd0627d048757414e45a4e87d86703510c9125 /gtk/gtksocket.c
parentc9b24c88173d5cf0404ac4f76d5e9115e8cbbb36 (diff)
downloadgtk+-f40470a3620094e38e131156a3f13ab8e676519a.tar.gz
Seal GtkSocket
svn path=/trunk/; revision=20604
Diffstat (limited to 'gtk/gtksocket.c')
-rw-r--r--gtk/gtksocket.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk/gtksocket.c b/gtk/gtksocket.c
index 25a96690de..ab0f620d07 100644
--- a/gtk/gtksocket.c
+++ b/gtk/gtksocket.c
@@ -300,6 +300,25 @@ gtk_socket_get_id (GtkSocket *socket)
return _gtk_socket_windowing_get_id (socket);
}
+/**
+ * gtk_socket_get_plug_window:
+ * @socket_: a #GtkSocket.
+ *
+ * Retrieves the window of the plug. Use this to check if the plug has
+ * been created inside of the socket.
+ *
+ * Return value: the window of the plug if available, or %NULL
+ *
+ * Since: GSEAL-branch
+ **/
+GdkWindow*
+gtk_socket_get_plug_window (GtkSocket *socket)
+{
+ g_return_val_if_fail (GTK_IS_SOCKET (socket), NULL);
+
+ return socket->plug_window;
+}
+
static void
gtk_socket_realize (GtkWidget *widget)
{