diff options
author | Manish Singh <yosh@gimp.org> | 2002-10-13 23:22:33 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2002-10-13 23:22:33 +0000 |
commit | 37278865e17dc4fe7583511c30c3570fdfcf68d1 (patch) | |
tree | 350d1a0693ba94c3a0ff3b99f51b6c6640cd394a /tests/testsocket_common.c | |
parent | aa54cfeede6e16fcde760a417a1c81da04ac8a0c (diff) | |
download | gtk+-37278865e17dc4fe7583511c30c3570fdfcf68d1.tar.gz |
Deprecation cleanup
Sun Oct 13 16:20:41 2002 Manish Singh <yosh@gimp.org>
* 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
Diffstat (limited to 'tests/testsocket_common.c')
-rw-r--r-- | tests/testsocket_common.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/testsocket_common.c b/tests/testsocket_common.c index 265b9af0db..4e87de6b07 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); |