summaryrefslogtreecommitdiff
path: root/tests/testsocket.c
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2009-10-07 19:33:05 +0200
committerJavier Jardón <jjardon@gnome.org>2010-05-03 01:41:36 +0200
commit014b05e6bd974a6e02d0fe9af3140872246b247f (patch)
tree28b5d2793653bc2f80059fb0598ebc57b06ec270 /tests/testsocket.c
parent6f5b7bad3ae854e4da42ee2f665c375684c03a67 (diff)
downloadgtk+-014b05e6bd974a6e02d0fe9af3140872246b247f.tar.gz
Don't use gtk_socket_steal in the socket test
Diffstat (limited to 'tests/testsocket.c')
-rw-r--r--tests/testsocket.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/testsocket.c b/tests/testsocket.c
index 6801e09762..fab0e41820 100644
--- a/tests/testsocket.c
+++ b/tests/testsocket.c
@@ -135,29 +135,6 @@ create_socket (void)
}
void
-steal (GtkWidget *window, GtkEntry *entry)
-{
- guint32 xid;
- const gchar *text;
- Socket *socket;
-
- text = gtk_entry_get_text (entry);
-
- xid = strtol (text, NULL, 0);
- if (xid == 0)
- {
- g_warning ("Invalid window id '%s'\n", text);
- return;
- }
-
- socket = create_socket ();
- gtk_box_pack_start (GTK_BOX (box), socket->box, TRUE, TRUE, 0);
- gtk_widget_show (socket->box);
-
- gtk_socket_steal (GTK_SOCKET (socket->socket), xid);
-}
-
-void
remove_child (GtkWidget *window)
{
if (sockets)
@@ -408,13 +385,6 @@ main (int argc, char *argv[])
entry = gtk_entry_new ();
gtk_box_pack_start (GTK_BOX(hbox), entry, FALSE, FALSE, 0);
- button = gtk_button_new_with_label ("Steal");
- gtk_box_pack_start (GTK_BOX(hbox), button, FALSE, FALSE, 0);
-
- g_signal_connect (button, "clicked",
- G_CALLBACK (steal),
- entry);
-
hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);