From 37278865e17dc4fe7583511c30c3570fdfcf68d1 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sun, 13 Oct 2002 23:22:33 +0000 Subject: Deprecation cleanup Sun Oct 13 16:20:41 2002 Manish Singh * tests/pixbuf-randomly-modified.c tests/prop-editor.c tests/testcalendar.c tests/testdnd.c tests/testgtk.c tests/testinput.c tests/testmultidisplay.c tests/testmultiscreen.c tests/testrgb.c tests/testselection.c tests/testsocket.c tests/testsocket_common.c tests/testtext.c tests/testtextbuffer.c tests/testtreecolumns.c tests/testtreeedit.c tests/testtreeflow.c tests/testtreefocus.c tests/testtreesort.c tests/testtreeview.c tests/testxinerama.c tests/treestoretest.c: Deprecation cleanup * tests/Makefile.am: Added disable deprecation flags --- tests/testsocket_common.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'tests/testsocket_common.c') diff --git a/tests/testsocket_common.c b/tests/testsocket_common.c index 265b9af0d..4e87de6b0 100644 --- a/tests/testsocket_common.c +++ b/tests/testsocket_common.c @@ -59,17 +59,17 @@ add_buttons (GtkWidget *widget, GtkWidget *box) gtk_box_pack_start (GTK_BOX (box), add_button, TRUE, TRUE, 0); gtk_widget_show (add_button); - gtk_signal_connect (GTK_OBJECT (add_button), "clicked", - GTK_SIGNAL_FUNC (add_buttons), - box); + g_signal_connect (add_button, "clicked", + G_CALLBACK (add_buttons), + box); remove_button = gtk_button_new_with_mnemonic ("_Remove"); gtk_box_pack_start (GTK_BOX (box), remove_button, TRUE, TRUE, 0); gtk_widget_show (remove_button); - gtk_signal_connect (GTK_OBJECT (remove_button), "clicked", - GTK_SIGNAL_FUNC (remove_buttons), - add_button); + g_signal_connect (remove_button, "clicked", + G_CALLBACK (remove_buttons), + add_button); } guint32 @@ -84,9 +84,10 @@ create_child_plug (guint32 xid, window = gtk_plug_new (xid); - gtk_signal_connect (GTK_OBJECT (window), "destroy", - local ? GTK_SIGNAL_FUNC (local_destroy) : GTK_SIGNAL_FUNC (remote_destroy), - NULL); + g_signal_connect (window, "destroy", + local ? G_CALLBACK (local_destroy) + : G_CALLBACK (remote_destroy), + NULL); gtk_container_set_border_width (GTK_CONTAINER (window), 0); hbox = gtk_hbox_new (FALSE, 0); @@ -101,16 +102,15 @@ create_child_plug (guint32 xid, button = gtk_button_new_with_mnemonic ("_Close"); gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0); - gtk_signal_connect_object (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (gtk_widget_destroy), - GTK_OBJECT (window)); + g_signal_connect_swapped (button, "clicked", + G_CALLBACK (gtk_widget_destroy), window); button = gtk_button_new_with_mnemonic ("_Blink"); gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0); - gtk_signal_connect (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (blink), - GTK_OBJECT (window)); + g_signal_connect (button, "clicked", + G_CALLBACK (blink), + window); add_buttons (NULL, hbox); -- cgit v1.2.1