diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-04-11 23:16:06 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-04-11 23:16:06 +0000 |
commit | 26fc3a75776d9884a78ae8677cb6ec156c36b35b (patch) | |
tree | 9c6f70f23701a0a94e317e5d70982e3937a630a2 /gtk/proto_dlg.c | |
parent | b77a0f210c70d814b70a3c8e6ef2f03d70daa8b9 (diff) |
last round to replace SIGNAL_CONNECT with g_signal_connect
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24918 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/proto_dlg.c')
-rw-r--r-- | gtk/proto_dlg.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk/proto_dlg.c b/gtk/proto_dlg.c index ce4a64db6b..6db0e8cb38 100644 --- a/gtk/proto_dlg.c +++ b/gtk/proto_dlg.c @@ -132,7 +132,7 @@ proto_cb(GtkWidget *w _U_, gpointer data _U_) proto_list = tree_view_new(GTK_TREE_MODEL(proto_store)); gtk_container_add(GTK_CONTAINER(proto_sw), proto_list); proto_rend = gtk_cell_renderer_toggle_new(); - SIGNAL_CONNECT(proto_rend, "toggled", status_toggled, proto_store); + g_signal_connect(proto_rend, "toggled", G_CALLBACK(status_toggled), proto_store); proto_col = gtk_tree_view_column_new_with_attributes(titles[0], proto_rend, "active", 0, NULL); gtk_tree_view_column_set_sort_column_id(proto_col, 0); @@ -167,19 +167,19 @@ proto_cb(GtkWidget *w _U_, gpointer data _U_) /* Enable All */ button = gtk_button_new_with_label("Enable All"); - SIGNAL_CONNECT(button, "clicked", enable_all_cb, proto_list); + g_signal_connect(button, "clicked", G_CALLBACK(enable_all_cb), proto_list); gtk_box_pack_start(GTK_BOX(bbox), button, TRUE, TRUE, 0); gtk_widget_show(button); /* Disable All */ button = gtk_button_new_with_label("Disable All"); - SIGNAL_CONNECT(button, "clicked", disable_all_cb, proto_list); + g_signal_connect(button, "clicked", G_CALLBACK(disable_all_cb), proto_list); gtk_box_pack_start(GTK_BOX(bbox), button, TRUE, TRUE, 0); gtk_widget_show(button); /* Invert */ button = gtk_button_new_with_label("Invert"); - SIGNAL_CONNECT(button, "clicked", toggle_all_cb, proto_list); + g_signal_connect(button, "clicked", G_CALLBACK(toggle_all_cb), proto_list); gtk_box_pack_start(GTK_BOX(bbox), button, TRUE, TRUE, 0); gtk_widget_show(button); @@ -194,25 +194,25 @@ proto_cb(GtkWidget *w _U_, gpointer data _U_) gtk_widget_show(bbox); ok_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_OK); - SIGNAL_CONNECT(ok_bt, "clicked", proto_ok_cb, proto_w); + g_signal_connect(ok_bt, "clicked", G_CALLBACK(proto_ok_cb), proto_w); gtk_widget_grab_default(ok_bt); apply_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_APPLY); - SIGNAL_CONNECT(apply_bt, "clicked", proto_apply_cb, proto_w); + g_signal_connect(apply_bt, "clicked", G_CALLBACK(proto_apply_cb), proto_w); save_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_SAVE); - SIGNAL_CONNECT(save_bt, "clicked", proto_save_cb, proto_w); + g_signal_connect(save_bt, "clicked", G_CALLBACK(proto_save_cb), proto_w); cancel_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_CANCEL); window_set_cancel_button(proto_w, cancel_bt, proto_cancel_cb); if(topic_available(HELP_ENABLED_PROTOCOLS_DIALOG)) { help_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_HELP); - SIGNAL_CONNECT(help_bt, "clicked", topic_cb, HELP_ENABLED_PROTOCOLS_DIALOG); + g_signal_connect(help_bt, "clicked", G_CALLBACK(topic_cb), (gpointer)HELP_ENABLED_PROTOCOLS_DIALOG); } - SIGNAL_CONNECT(proto_w, "delete_event", proto_delete_event_cb, NULL); - SIGNAL_CONNECT(proto_w, "destroy", proto_destroy_cb, NULL); + g_signal_connect(proto_w, "delete_event", G_CALLBACK(proto_delete_event_cb), NULL); + g_signal_connect(proto_w, "destroy", G_CALLBACK(proto_destroy_cb), NULL); gtk_quit_add_destroy(gtk_main_level(), GTK_OBJECT(proto_w)); |