[gtk+/gtk-2-90: 58/161] Don't use gtk_socket_steal in the socket test



commit 6f794dc9efdfbba511620f2358bb9525b6c08431
Author: Christian Dywan <christian twotoasts de>
Date:   Wed Oct 7 19:33:05 2009 +0200

    Don't use gtk_socket_steal in the socket test

 tests/testsocket.c |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/tests/testsocket.c b/tests/testsocket.c
index 6801e09..fab0e41 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);
 



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