gtk_widget_realize(win);
main_vb = gtk_vbox_new(FALSE, 6);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 24);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 24);
gtk_container_add(GTK_CONTAINER(win), main_vb);
about_wireshark(win, main_vb);
gchar *message;
main_vb = gtk_vbox_new(FALSE, 6);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 12);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 12);
about_wireshark(top_level, main_vb);
table = simple_list_new(3, titles);
/* connect a callback so we can spot a double-click */
- gtk_signal_connect(GTK_OBJECT(table), "button_press_event",
- GTK_SIGNAL_FUNC(about_folders_callback), (gpointer)0);
+ g_signal_connect(table, "button_press_event",
+ G_CALLBACK(about_folders_callback), NULL);
simple_list_url_col(table, 1);
/* default position is not appropriate for the about dialog */
gtk_window_set_position(GTK_WINDOW(about_wireshark_w), GTK_WIN_POS_CENTER_ON_PARENT);
gtk_window_set_default_size(GTK_WINDOW(about_wireshark_w), 600, 400);
- gtk_container_border_width(GTK_CONTAINER(about_wireshark_w), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(about_wireshark_w), 6);
main_vb = gtk_vbox_new(FALSE, 12);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 6);
gtk_container_add(GTK_CONTAINER(about_wireshark_w), main_vb);
main_nb = gtk_notebook_new();
airpcap_update_channel_combo(GTK_WIDGET(toolbar_channel_cm),airpcap_if_selected);
airpcap_validation_type_combo_set_by_type(toolbar_wrong_crc_cm,airpcap_if_selected->CrcValidationOn);
- gtk_signal_handler_block_by_func (GTK_OBJECT(toolbar_decryption_ck),GTK_SIGNAL_FUNC(airpcap_toolbar_encryption_cb), toolbar);
+ g_signal_handlers_block_by_func (toolbar_decryption_ck,airpcap_toolbar_encryption_cb, toolbar);
if (airpcap_if_active->DecryptionOn == AIRPCAP_DECRYPTION_ON)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar_decryption_ck),TRUE);
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar_decryption_ck),FALSE);
- gtk_signal_handler_unblock_by_func (GTK_OBJECT(toolbar_decryption_ck),GTK_SIGNAL_FUNC(airpcap_toolbar_encryption_cb), toolbar);
+ g_signal_handlers_unblock_by_func (toolbar_decryption_ck,airpcap_toolbar_encryption_cb, toolbar);
}
}
}
}
- gtk_signal_handler_block_by_data(GTK_OBJECT(entry),(gpointer)airpcap_tb);
+ g_signal_handlers_block_matched(entry,G_SIGNAL_MATCH_DATA,0,0,0,0,airpcap_tb);
gtk_combo_set_popdown_strings (GTK_COMBO (w), enable_decryption_cb_items);
/* The 'changed' callback will be called twice */
gtk_entry_set_text(GTK_ENTRY(entry),current_text);
- gtk_signal_handler_unblock_by_data(GTK_OBJECT(entry),(gpointer)airpcap_tb);
+ g_signal_handlers_unblock_matched(entry,G_SIGNAL_MATCH_DATA,0,0,0,0,airpcap_tb);
if (current_text != NULL) g_free(current_text);
gtk_widget_set_sensitive(airpcap_toolbar_keys_button,FALSE);
/*decription check box*/
- gtk_signal_handler_block_by_func (GTK_OBJECT(airpcap_toolbar_decryption),GTK_SIGNAL_FUNC(airpcap_toolbar_encryption_cb), airpcap_tb);
+ g_signal_handlers_block_by_func (airpcap_toolbar_decryption,airpcap_toolbar_encryption_cb, airpcap_tb);
if(if_info->DecryptionOn == AIRPCAP_DECRYPTION_ON)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(airpcap_toolbar_decryption),TRUE);
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(airpcap_toolbar_decryption),FALSE);
- gtk_signal_handler_unblock_by_func (GTK_OBJECT(airpcap_toolbar_decryption),GTK_SIGNAL_FUNC(airpcap_toolbar_encryption_cb), airpcap_tb);
+ g_signal_handlers_unblock_by_func (airpcap_toolbar_decryption,airpcap_toolbar_encryption_cb, airpcap_tb);
if_label_text = g_strdup_printf("Current Wireless Interface: #%s", airpcap_get_if_string_number(if_info));
gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),if_label_text);
airpcap_validation_type_combo_set_by_type(GTK_WIDGET(airpcap_toolbar_crc_filter_combo),if_info->CrcValidationOn);
/*decription check box*/
- gtk_signal_handler_block_by_func (GTK_OBJECT(airpcap_toolbar_decryption),GTK_SIGNAL_FUNC(airpcap_toolbar_encryption_cb), airpcap_tb);
+ g_signal_handlers_block_by_func (airpcap_toolbar_decryption,airpcap_toolbar_encryption_cb, airpcap_tb);
if(if_info->DecryptionOn == AIRPCAP_DECRYPTION_ON)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(airpcap_toolbar_decryption),TRUE);
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(airpcap_toolbar_decryption),FALSE);
- gtk_signal_handler_unblock_by_func (GTK_OBJECT(airpcap_toolbar_decryption),GTK_SIGNAL_FUNC(airpcap_toolbar_encryption_cb), airpcap_tb);
+ g_signal_handlers_unblock_by_func (airpcap_toolbar_decryption,airpcap_toolbar_encryption_cb, airpcap_tb);
if_label_text = g_strdup_printf("Current Wireless Interface: #%s", airpcap_get_if_string_number(if_info));
gtk_label_set_text(GTK_LABEL(airpcap_toolbar_label),if_label_text);
/* Found a matching dlt, selecth this */
linktype_select = linktype_count;
}
- gtk_menu_append(GTK_MENU(lt_menu), lt_menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(lt_menu), lt_menu_item);
gtk_widget_show(lt_menu_item);
linktype_count++;
}
if (lt_list == NULL) {
lt_menu_item = gtk_menu_item_new_with_label("(not supported)");
- gtk_menu_append(GTK_MENU(lt_menu), lt_menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(lt_menu), lt_menu_item);
gtk_widget_show(lt_menu_item);
} else {
free_pcap_linktype_list(lt_list);
for(i=0;i<MAX_TIME_UNITS;i++){
menu_item=gtk_menu_item_new_with_label(time_unit_name[i]);
g_object_set_data(G_OBJECT(menu_item), "time_unit", GINT_TO_POINTER(i));
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
}
/* the selected menu item can't be changed, once the option_menu
for(i=0;i<MAX_SIZE_UNITS;i++){
menu_item=gtk_menu_item_new_with_label(size_unit_name[i]);
g_object_set_data(G_OBJECT(menu_item), "size_unit", GINT_TO_POINTER(i));
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
}
/* the selected menu item can't be changed, once the option_menu
g_object_set_data(G_OBJECT(menu_item), E_CAP_IFTYPE_OM_KEY, iftype_om);
g_signal_connect(menu_item, "activate", G_CALLBACK(select_if_type_cb),
GINT_TO_POINTER((int)iftype[i].id));
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
if (value == iftype[i].id)
active = i;
}
tooltips = gtk_tooltips_new();
main_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(remote_w), main_vb);
/* Host/port table */
gtk_container_add(GTK_CONTAINER(main_vb), auth_fr);
auth_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(auth_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(auth_vb), 5);
gtk_container_add(GTK_CONTAINER(auth_fr), auth_vb);
auth_null_rb = gtk_radio_button_new_with_label(NULL,
tooltips = gtk_tooltips_new();
main_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(cap_open_w), main_vb);
/* Capture-related options frame */
gtk_container_add(GTK_CONTAINER(main_vb), capture_fr);
capture_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(capture_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(capture_vb), 5);
gtk_container_add(GTK_CONTAINER(capture_fr), capture_vb);
/* Interface row */
/* Promiscuous mode row */
promisc_cb = gtk_check_button_new_with_mnemonic(
"Capture packets in _promiscuous mode");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(promisc_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(promisc_cb),
global_capture_opts.promisc_mode);
gtk_tooltips_set_tip(tooltips, promisc_cb,
"Usually a network card will only capture the traffic sent to its own network address. "
/* RPCAP-related flags */
nocap_rpcap_cb = gtk_check_button_new_with_mnemonic(
"Do not capture RPCAP own traffic");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(nocap_rpcap_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(nocap_rpcap_cb),
global_capture_opts.nocap_rpcap);
gtk_container_add(GTK_CONTAINER(capture_vb), nocap_rpcap_cb);
datatx_udp_cb = gtk_check_button_new_with_mnemonic(
"Use UDP for RPCAP data transfer");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(datatx_udp_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(datatx_udp_cb),
global_capture_opts.datatx_udp);
gtk_container_add(GTK_CONTAINER(capture_vb), datatx_udp_cb);
#endif
gtk_container_add(GTK_CONTAINER(capture_vb), snap_hb);
snap_cb = gtk_check_button_new_with_mnemonic("_Limit each packet to");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(snap_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(snap_cb),
global_capture_opts.has_snaplen);
g_signal_connect(snap_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
gtk_tooltips_set_tip(tooltips, snap_cb,
gtk_widget_set_size_request(filter_cm, 400, -1);
gtk_box_pack_start(GTK_BOX(filter_hb), filter_cm, FALSE, FALSE, 3);
main_hb = gtk_hbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(main_hb), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(main_hb), 0);
gtk_container_add(GTK_CONTAINER(main_vb), main_hb);
left_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(left_vb), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(left_vb), 0);
gtk_box_pack_start(GTK_BOX(main_hb), left_vb, TRUE, TRUE, 0);
right_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(right_vb), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(right_vb), 0);
gtk_box_pack_start(GTK_BOX(main_hb), right_vb, FALSE, FALSE, 0);
/* let an eventually capture filters dialog know the text entry to fill in */
gtk_container_add(GTK_CONTAINER(left_vb), file_fr);
file_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(file_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(file_vb), 5);
gtk_container_add(GTK_CONTAINER(file_fr), file_vb);
/* File row */
/* multiple files row */
multi_files_on_cb = gtk_check_button_new_with_mnemonic("Use _multiple files");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(multi_files_on_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(multi_files_on_cb),
global_capture_opts.multi_files_on);
g_signal_connect(multi_files_on_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity),
cap_open_w);
/* Ring buffer filesize row */
ring_filesize_cb = gtk_check_button_new_with_label("Next file every");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(ring_filesize_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(ring_filesize_cb),
global_capture_opts.has_autostop_filesize || !global_capture_opts.has_file_duration);
g_signal_connect(ring_filesize_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
gtk_tooltips_set_tip(tooltips, ring_filesize_cb,
/* Ring buffer duration row */
file_duration_cb = gtk_check_button_new_with_label("Next file every");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(file_duration_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(file_duration_cb),
global_capture_opts.has_file_duration);
g_signal_connect(file_duration_cb, "toggled",
G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
/* Ring buffer files row */
ringbuffer_nbf_cb = gtk_check_button_new_with_label("Ring buffer with");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(ringbuffer_nbf_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(ringbuffer_nbf_cb),
global_capture_opts.has_ring_num_files);
g_signal_connect(ringbuffer_nbf_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
gtk_tooltips_set_tip(tooltips, ringbuffer_nbf_cb,
/* Files row */
stop_files_cb = gtk_check_button_new_with_label("Stop capture after");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(stop_files_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(stop_files_cb),
global_capture_opts.has_autostop_files);
g_signal_connect(stop_files_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
gtk_tooltips_set_tip(tooltips, stop_files_cb,
gtk_container_add(GTK_CONTAINER(left_vb), limit_fr);
limit_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(limit_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(limit_vb), 5);
gtk_container_add(GTK_CONTAINER(limit_fr), limit_vb);
/* limits table */
/* Packet count row */
stop_packets_cb = gtk_check_button_new_with_label("... after");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(stop_packets_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(stop_packets_cb),
global_capture_opts.has_autostop_packets);
g_signal_connect(stop_packets_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
gtk_tooltips_set_tip(tooltips, stop_packets_cb,
/* Filesize row */
stop_filesize_cb = gtk_check_button_new_with_label("... after");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(stop_filesize_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(stop_filesize_cb),
global_capture_opts.has_autostop_filesize);
g_signal_connect(stop_filesize_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
gtk_tooltips_set_tip(tooltips, stop_filesize_cb,
/* Duration row */
stop_duration_cb = gtk_check_button_new_with_label("... after");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(stop_duration_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(stop_duration_cb),
global_capture_opts.has_autostop_duration);
g_signal_connect(stop_duration_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
gtk_tooltips_set_tip(tooltips, stop_duration_cb,
gtk_container_add(GTK_CONTAINER(right_vb), sampling_fr);
sampling_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(sampling_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(sampling_vb), 5);
gtk_container_add(GTK_CONTAINER(sampling_fr), sampling_vb);
sampling_tb = gtk_table_new(3, 3, FALSE);
gtk_container_add(GTK_CONTAINER(right_vb), display_fr);
display_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(display_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(display_vb), 5);
gtk_container_add(GTK_CONTAINER(display_fr), display_vb);
/* "Update display in real time" row */
sync_cb = gtk_check_button_new_with_mnemonic(
"_Update list of packets in real time");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(sync_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(sync_cb),
global_capture_opts.real_time_mode);
g_signal_connect(sync_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
gtk_tooltips_set_tip(tooltips, sync_cb,
/* "Auto-scroll live update" row */
auto_scroll_cb = gtk_check_button_new_with_mnemonic(
"_Automatic scrolling in live capture");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(auto_scroll_cb), auto_scroll_live);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(auto_scroll_cb), auto_scroll_live);
gtk_tooltips_set_tip(tooltips, auto_scroll_cb,
"This will scroll the \"Packet List\" automatically to the latest captured packet, "
"when the \"Update List of packets in real time\" option is used.", NULL);
/* "Hide capture info" row */
hide_info_cb = gtk_check_button_new_with_mnemonic(
"_Hide capture info dialog");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(hide_info_cb), !global_capture_opts.show_info);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(hide_info_cb), !global_capture_opts.show_info);
gtk_tooltips_set_tip(tooltips, hide_info_cb,
"Hide the capture info dialog while capturing.", NULL);
gtk_container_add(GTK_CONTAINER(display_vb), hide_info_cb);
gtk_container_add(GTK_CONTAINER(right_vb), resolv_fr);
resolv_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(resolv_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(resolv_vb), 5);
gtk_container_add(GTK_CONTAINER(resolv_fr), resolv_vb);
m_resolv_cb = gtk_check_button_new_with_mnemonic(
"Enable _MAC name resolution");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(m_resolv_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_resolv_cb),
g_resolv_flags & RESOLV_MAC);
gtk_tooltips_set_tip(tooltips, m_resolv_cb,
"Perform MAC layer name resolution while capturing.", NULL);
n_resolv_cb = gtk_check_button_new_with_mnemonic(
"Enable _network name resolution");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(n_resolv_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(n_resolv_cb),
g_resolv_flags & RESOLV_NETWORK);
gtk_tooltips_set_tip(tooltips, n_resolv_cb,
"Perform network layer name resolution while capturing.", NULL);
t_resolv_cb = gtk_check_button_new_with_mnemonic(
"Enable _transport name resolution");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(t_resolv_cb),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(t_resolv_cb),
g_resolv_flags & RESOLV_TRANSPORT);
gtk_tooltips_set_tip(tooltips, t_resolv_cb,
"Perform transport layer name resolution while capturing.", NULL);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_box_pack_start(GTK_BOX(main_hb), main_vb, FALSE, FALSE, 0);
gtk_widget_show(main_vb);
/* filter row */
filter_hbox = gtk_hbox_new(FALSE, 1);
- gtk_container_border_width(GTK_CONTAINER(filter_hbox), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(filter_hbox), 0);
gtk_box_pack_start(GTK_BOX(main_vb), filter_hbox, FALSE, FALSE, 0);
gtk_widget_show(filter_hbox);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_box_pack_start(GTK_BOX(main_hb), main_vb, FALSE, FALSE, 0);
gtk_widget_show(main_vb);
gtk_widget_show(ft_om);
filter_hbox = gtk_hbox_new(FALSE, 1);
- gtk_container_border_width(GTK_CONTAINER(filter_hbox), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(filter_hbox), 0);
gtk_box_pack_start(GTK_BOX(main_vb), filter_hbox, FALSE, FALSE, 0);
gtk_widget_show(filter_hbox);
}
g_signal_connect(ft_menu_item, "activate", G_CALLBACK(select_file_type_cb),
GINT_TO_POINTER(ft));
- gtk_menu_append(GTK_MENU(ft_menu), ft_menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(ft_menu), ft_menu_item);
gtk_widget_show(ft_menu_item);
index++;
}
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
file_selection_set_extra_widget(file_save_as_w, main_vb);
gtk_widget_show(main_vb);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
file_selection_set_extra_widget(file_color_import_w, main_vb);
gtk_widget_show(main_vb);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
file_selection_set_extra_widget(file_color_export_w, main_vb);
gtk_widget_show(main_vb);
GtkWidget *main_vb;
main_vb = gtk_vbox_new(FALSE, 6);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 12);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 12);
/* table */
*table = gtk_table_new(1, 2, FALSE);
/* Container for the window contents */
main_vb = gtk_vbox_new(FALSE, 12);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 12);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 12);
gtk_container_add(GTK_CONTAINER(details_open_w), main_vb);
/* notebook */
gtk_container_add(GTK_CONTAINER(cap_if_w), main_sw);
main_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(main_sw), main_vb);
/* Container for capture display widgets */
main_vb = gtk_vbox_new(FALSE, 1);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(info->cap_w), main_vb);
gtk_widget_show(main_vb);
/* Individual statistic elements */
counts_tb = gtk_table_new(PACKET_COUNTS_SIZE, 4, TRUE);
gtk_container_add(GTK_CONTAINER(counts_fr), counts_tb);
- gtk_container_border_width(GTK_CONTAINER(counts_tb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(counts_tb), 5);
gtk_widget_show(counts_tb);
gtk_table_set_row_spacings(GTK_TABLE(counts_tb), 0);
gtk_container_add(GTK_CONTAINER(status_fr), status_vbox);
disabled_cb = gtk_check_button_new_with_label("Disabled");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(disabled_cb), colorf->disabled);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(disabled_cb), colorf->disabled);
gtk_box_pack_start (GTK_BOX (status_vbox), disabled_cb, TRUE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, disabled_cb, ("Color rule won't be checked if this box is selected"), NULL);
resolv_cb = gtk_check_button_new_with_mnemonic("Name resolution");
gtk_container_add(GTK_CONTAINER(hbox), resolv_cb);
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(resolv_cb), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(resolv_cb), TRUE);
gtk_tooltips_set_tip(tooltips, resolv_cb, "Show results of name resolutions rather than the \"raw\" values. "
"Please note: The corresponding name resolution must be enabled.", NULL);
filter_cb = gtk_check_button_new_with_mnemonic("Limit to display filter");
gtk_container_add(GTK_CONTAINER(hbox), filter_cb);
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(filter_cb), FALSE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(filter_cb), FALSE);
gtk_tooltips_set_tip(tooltips, filter_cb, "Limit the list to conversations matching the current display filter.", NULL);
g_signal_connect(filter_cb, "toggled", G_CALLBACK(ct_filter_toggle_dest), pages);
g_signal_connect(menu_item, "activate", G_CALLBACK(dcerpcstat_version_select),
(gpointer)((long)k->ver));
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(vers_menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(vers_menu), menu_item);
if(dcerpc_version==0xffff){
dcerpc_version=k->ver;
gtk_widget_show(program_submenu_label);
gtk_widget_show(box);
- gtk_menu_append(GTK_MENU(prog_menu), program_submenu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(prog_menu), program_submenu_item);
gtk_widget_show(program_submenu_item);
program_submenu_menu=gtk_menu_new();
g_signal_connect(program_menu_item, "activate", G_CALLBACK(dcerpcstat_program_select), k);
gtk_widget_show(program_menu_item);
- gtk_menu_append(GTK_MENU(program_submenu_menu), program_menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(program_submenu_menu), program_menu_item);
if(!dcerpc_uuid_program){
dcerpc_uuid_program=&k->uuid;
gtk_window_set_default_size(GTK_WINDOW(dlg), 400, -1);
dlg_box=gtk_vbox_new(FALSE, 10);
- gtk_container_border_width(GTK_CONTAINER(dlg_box), 10);
+ gtk_container_set_border_width(GTK_CONTAINER(dlg_box), 10);
gtk_container_add(GTK_CONTAINER(dlg), dlg_box);
gtk_widget_show(dlg_box);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 2);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(decode_show_w), main_vb);
{
format_vb = gtk_vbox_new(FALSE, 2);
radio_button = gtk_radio_button_new_with_label(NULL, "Decode");
- format_grp = gtk_radio_button_group(GTK_RADIO_BUTTON(radio_button));
+ format_grp = gtk_radio_button_get_group(GTK_RADIO_BUTTON(radio_button));
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_button), TRUE);
g_signal_connect(radio_button, "clicked", G_CALLBACK(decode_update_action),
GINT_TO_POINTER(E_DECODE_YES));
gtk_box_pack_start(GTK_BOX(format_vb), radio_button, TRUE, TRUE, 0);
radio_button = gtk_radio_button_new_with_label(format_grp, "Do not decode");
- format_grp = gtk_radio_button_group(GTK_RADIO_BUTTON(radio_button));
+ format_grp = gtk_radio_button_get_group(GTK_RADIO_BUTTON(radio_button));
g_signal_connect(radio_button, "clicked", G_CALLBACK(decode_update_action),
GINT_TO_POINTER(E_DECODE_NO));
gtk_box_pack_start(GTK_BOX(format_vb), radio_button, TRUE, TRUE, 0);
g_snprintf(tmp, 100, "source (%u)", cfile.edt->pi.srcport);
menuitem = gtk_menu_item_new_with_label(tmp);
g_object_set_data(G_OBJECT(menuitem), "user_data", GINT_TO_POINTER(E_DECODE_SPORT));
- gtk_menu_append(GTK_MENU(menu), menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show(menuitem); /* gtk_widget_show_all() doesn't show this */
g_snprintf(tmp, 100, "destination (%u)", cfile.edt->pi.destport);
menuitem = gtk_menu_item_new_with_label(tmp);
g_object_set_data(G_OBJECT(menuitem), "user_data", GINT_TO_POINTER(E_DECODE_DPORT));
- gtk_menu_append(GTK_MENU(menu), menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show(menuitem); /* gtk_widget_show_all() doesn't show this */
menuitem = gtk_menu_item_new_with_label("both");
g_object_set_data(G_OBJECT(menuitem), "user_data", GINT_TO_POINTER(E_DECODE_BPORT));
- gtk_menu_append(GTK_MENU(menu), menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show(menuitem); /* gtk_widget_show_all() doesn't show this */
g_object_set_data(G_OBJECT(page), E_MENU_SRCDST, menu);
g_snprintf(tmp, 100, "PPID (%u)", 0);
menuitem = gtk_menu_item_new_with_label(tmp);
g_object_set_data(G_OBJECT(menuitem), "user_data", GINT_TO_POINTER(E_DECODE_PPID));
- gtk_menu_append(GTK_MENU(menu), menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show(menuitem); /* gtk_widget_show_all() doesn't show this */
for(number_of_ppid = 0; number_of_ppid < MAX_NUMBER_OF_PPIDS; number_of_ppid++)
g_snprintf(tmp, 100, "PPID (%u)", cfile.edt->pi.ppid[number_of_ppid]);
menuitem = gtk_menu_item_new_with_label(tmp);
g_object_set_data(G_OBJECT(menuitem), "user_data", GINT_TO_POINTER(E_DECODE_PPID + 1 + number_of_ppid));
- gtk_menu_append(GTK_MENU(menu), menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show(menuitem); /* gtk_widget_show_all() doesn't show this */
} else
break;
g_snprintf(tmp, 100, "PPID (%u)", 0);
menuitem = gtk_menu_item_new_with_label(tmp);
g_object_set_data(G_OBJECT(menuitem), "user_data", GINT_TO_POINTER(E_DECODE_PPID));
- gtk_menu_append(GTK_MENU(menu), menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show(menuitem); /* gtk_widget_show_all() doesn't show this */
for(number_of_ppid = 0; number_of_ppid < MAX_NUMBER_OF_PPIDS; number_of_ppid++)
if (cfile.edt->pi.ppid[number_of_ppid] != 0) {
g_snprintf(tmp, 100, "PPID (%u)", cfile.edt->pi.ppid[number_of_ppid]);
menuitem = gtk_menu_item_new_with_label(tmp);
g_object_set_data(G_OBJECT(menuitem), "user_data", GINT_TO_POINTER(E_DECODE_PPID + 1 + number_of_ppid));
- gtk_menu_append(GTK_MENU(menu), menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show(menuitem); /* gtk_widget_show_all() doesn't show this */
} else
break;
g_snprintf(tmp, 100, "source (%u)", cfile.edt->pi.srcport);
menuitem = gtk_menu_item_new_with_label(tmp);
g_object_set_data(G_OBJECT(menuitem), "user_data", GINT_TO_POINTER(E_DECODE_SPORT));
- gtk_menu_append(GTK_MENU(menu), menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show(menuitem); /* gtk_widget_show_all() doesn't show this */
g_snprintf(tmp, 100, "destination (%u)", cfile.edt->pi.destport);
menuitem = gtk_menu_item_new_with_label(tmp);
g_object_set_data(G_OBJECT(menuitem), "user_data", GINT_TO_POINTER(E_DECODE_DPORT));
- gtk_menu_append(GTK_MENU(menu), menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show(menuitem); /* gtk_widget_show_all() doesn't show this */
menuitem = gtk_menu_item_new_with_label("both");
g_object_set_data(G_OBJECT(menuitem), "user_data", GINT_TO_POINTER(E_DECODE_BPORT));
- gtk_menu_append(GTK_MENU(menu), menuitem);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show(menuitem); /* gtk_widget_show_all() doesn't show this */
g_object_set_data(G_OBJECT(page), E_MENU_SRCDST, menu);
format_vb = gtk_vbox_new(FALSE, 2);
radio_button = gtk_radio_button_new_with_label(NULL, "PPID");
- format_grp = gtk_radio_button_group(GTK_RADIO_BUTTON(radio_button));
+ format_grp = gtk_radio_button_get_group(GTK_RADIO_BUTTON(radio_button));
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_button), TRUE);
g_signal_connect(radio_button, "clicked", G_CALLBACK(decode_sctp_update_ppid_menu), page);
gtk_box_pack_start(GTK_BOX(format_vb), radio_button, TRUE, TRUE, 0);
radio_button = gtk_radio_button_new_with_label(format_grp, "Port");
- format_grp = gtk_radio_button_group(GTK_RADIO_BUTTON(radio_button));
+ format_grp = gtk_radio_button_get_group(GTK_RADIO_BUTTON(radio_button));
g_signal_connect(radio_button, "clicked", G_CALLBACK(decode_sctp_update_srcdst_menu), page);
gtk_box_pack_start(GTK_BOX(format_vb), radio_button, TRUE, TRUE, 0);
/* Select the last added page (selects first by default) */
/* Notebook must be visible for set_page to work. */
gtk_widget_show_all(notebook);
- gtk_notebook_set_page(GTK_NOTEBOOK(notebook), -1);
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), -1);
}
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 2);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(decode_w), main_vb);
/* First row - Buttons and Notebook */
gtk_container_set_border_width(GTK_CONTAINER(window), 5);
main_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(window), main_vb);
main_hb = gtk_hbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(main_hb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_hb), 5);
gtk_container_add(GTK_CONTAINER(main_vb), main_hb);
field_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(field_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(field_vb), 5);
gtk_container_add(GTK_CONTAINER(main_hb), field_vb);
field_tree_lb = gtk_label_new("Field name");
gtk_container_add(GTK_CONTAINER(tree_scrolled_win), field_tree);
relation_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(relation_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(relation_vb), 5);
gtk_container_add(GTK_CONTAINER(main_hb), relation_vb);
relation_label = gtk_label_new("Relation");
*/
/* value column */
value_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(value_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(value_vb), 5);
gtk_container_add(GTK_CONTAINER(main_hb), value_vb);
value_label = gtk_label_new("Value");
return;
button_hbox = g_object_get_data(G_OBJECT(hbox), BUTTON_HBOX_KEY);
- children = gtk_container_children(GTK_CONTAINER(button_hbox));
+ children = gtk_container_get_children(GTK_CONTAINER(button_hbox));
while (children) {
if (cur_item == focus_item) {
(GdkDragAction)(GDK_ACTION_MOVE | GDK_ACTION_COPY) );
/* get notified, if some dnd coming in */
- gtk_signal_connect(GTK_OBJECT(w), "drag_data_received",
- GTK_SIGNAL_FUNC(dnd_data_received), NULL);
+ g_signal_connect(w, "drag_data_received", G_CALLBACK(dnd_data_received), NULL);
}
menu_item=gtk_menu_item_new_with_label(expert_severity_om_vals[i].strptr);
g_object_set_data(G_OBJECT(menu_item), "tapdata", etd);
g_signal_connect(menu_item, "activate", G_CALLBACK(expert_dlg_severity_cb), (gpointer)(long) i);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
if(expert_severity_om_vals[i].value == (guint) etd->severity_report_level) {
gtk_menu_set_active(GTK_MENU(menu), i);
}
vbox = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(vbox), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 5);
gtk_container_add(GTK_CONTAINER(object_list->dlg), vbox);
sw = scrolled_window_new(NULL, NULL);
tooltips = gtk_tooltips_new();
main_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(fs_w), main_vb);
fs_sw = gtk_scrolled_window_new(NULL, NULL);
g_object_set_data(G_OBJECT(main_w), E_FILT_CONSTRUCT_ARGS_KEY, construct_args);
main_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(main_w), main_vb);
gtk_widget_show(main_vb);
/* Container for each row of widgets */
filter_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(filter_vb), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(filter_vb), 0);
gtk_container_add(GTK_CONTAINER(main_vb), filter_vb);
gtk_widget_show(filter_vb);
gtk_widget_show(edit_fr);
list_bb = gtk_vbox_new(TRUE, 0);
- gtk_container_border_width(GTK_CONTAINER(list_bb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(list_bb), 5);
gtk_container_add(GTK_CONTAINER(edit_fr), list_bb);
gtk_widget_show(list_bb);
gtk_widget_show(props_fr);
props_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(props_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(props_vb), 5);
gtk_container_add(GTK_CONTAINER(props_fr), props_vb);
gtk_widget_show(props_vb);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(find_frame_w), main_vb);
gtk_widget_show(main_vb);
gtk_widget_show(find_type_frame);
find_type_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(find_type_vb), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(find_type_vb), 3);
gtk_container_add(GTK_CONTAINER(find_type_frame), find_type_vb);
gtk_widget_show(find_type_vb);
/* search in row */
data_vb = gtk_vbox_new(TRUE, 0);
- gtk_container_border_width(GTK_CONTAINER(data_vb), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(data_vb), 3);
gtk_container_add(GTK_CONTAINER(data_frame), data_vb);
gtk_widget_show(data_vb);
string_opt_vb = gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(string_opt_frame), string_opt_vb);
- gtk_container_border_width(GTK_CONTAINER(string_opt_vb), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(string_opt_vb), 3);
gtk_widget_show(string_opt_vb);
case_cb = gtk_check_button_new_with_mnemonic("Case sensitive");
/* Direction row: Forward and reverse radio buttons */
direction_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(direction_vb), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(direction_vb), 3);
gtk_container_add(GTK_CONTAINER(direction_frame), direction_vb);
gtk_widget_show(direction_vb);
rule_w = dlg_window_new("Firewall ACL Rules");
gtk_widget_set_name(rule_w, "Firewall ACL rule window");
- gtk_container_border_width(GTK_CONTAINER(rule_w), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(rule_w), 6);
/* setup the container */
tooltips = gtk_tooltips_new ();
menu_item = gtk_menu_item_new_with_label(products[i].name);
g_signal_connect(menu_item, "activate", G_CALLBACK(select_product), GUINT_TO_POINTER(i));
g_object_set_data(G_OBJECT(menu_item), WS_RULE_INFO_KEY, rule_info);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
/* if (i == 0)
gtk_menu_item_select(GTK_MENU_ITEM(menu_item)); */
}
g_signal_connect(menu_item, "activate", G_CALLBACK(select_filter), \
GUINT_TO_POINTER(rt)); \
g_object_set_data(G_OBJECT(menu_item), WS_RULE_INFO_KEY, rule_info); \
- gtk_menu_append(GTK_MENU(menu), menu_item); \
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item); \
if (! rt_set) { \
rt_set = TRUE; \
first_mi = menu_item; \
gtk_box_pack_start(GTK_BOX(main_vb), range_fr, FALSE, FALSE, 0);
range_tb = gtk_table_new(4, 4, FALSE);
- gtk_container_border_width(GTK_CONTAINER(range_tb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(range_tb), 5);
gtk_container_add(GTK_CONTAINER(range_fr), range_tb);
/* Process all packets */
gtk_box_pack_start(GTK_BOX(main_vb), flow_type_fr, FALSE, FALSE, 0);
flow_type_tb = gtk_table_new(4, 4, FALSE);
- gtk_container_border_width(GTK_CONTAINER(flow_type_tb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(flow_type_tb), 5);
gtk_container_add(GTK_CONTAINER(flow_type_fr), flow_type_tb);
/* General information */
gtk_box_pack_start(GTK_BOX(main_vb), node_addr_fr, FALSE, FALSE, 0);
node_addr_tb = gtk_table_new(4, 4, FALSE);
- gtk_container_border_width(GTK_CONTAINER(node_addr_tb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(node_addr_tb), 5);
gtk_container_add(GTK_CONTAINER(node_addr_fr), node_addr_tb);
/* Source / Dest address */
/* Main vertical box */
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(find_dlg_w), main_vb);
/* Horizontal box for find label, entry field and up/down radio
gtk_widget_set_name(streamwindow, title);
gtk_window_set_default_size(GTK_WINDOW(streamwindow),
DEF_WIDTH, DEF_HEIGHT);
- gtk_container_border_width(GTK_CONTAINER(streamwindow), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(streamwindow), 6);
/* setup the container */
tooltips = gtk_tooltips_new ();
follow_info->ascii_bt = radio_bt;
/* EBCDIC radio button */
- radio_bt = gtk_radio_button_new_with_label(gtk_radio_button_group
+ radio_bt = gtk_radio_button_new_with_label(gtk_radio_button_get_group
(GTK_RADIO_BUTTON(radio_bt)),
"EBCDIC");
gtk_tooltips_set_tip (tooltips, radio_bt, "Stream data output in \"EBCDIC\" format", NULL);
follow_info->ebcdic_bt = radio_bt;
/* HEX DUMP radio button */
- radio_bt = gtk_radio_button_new_with_label(gtk_radio_button_group
+ radio_bt = gtk_radio_button_new_with_label(gtk_radio_button_get_group
(GTK_RADIO_BUTTON(radio_bt)),
"Hex Dump");
gtk_tooltips_set_tip (tooltips, radio_bt, "Stream data output in \"Hexdump\" format", NULL);
follow_info->hexdump_bt = radio_bt;
/* C Array radio button */
- radio_bt = gtk_radio_button_new_with_label(gtk_radio_button_group
+ radio_bt = gtk_radio_button_new_with_label(gtk_radio_button_get_group
(GTK_RADIO_BUTTON(radio_bt)),
"C Arrays");
gtk_tooltips_set_tip (tooltips, radio_bt, "Stream data output in \"C Array\" format", NULL);
follow_info->carray_bt = radio_bt;
/* Raw radio button */
- radio_bt = gtk_radio_button_new_with_label(gtk_radio_button_group
+ radio_bt = gtk_radio_button_new_with_label(gtk_radio_button_get_group
(GTK_RADIO_BUTTON(radio_bt)),
"Raw");
gtk_tooltips_set_tip (tooltips, radio_bt, "Stream data output in \"Raw\" (binary) format. As this contains non printable characters, the screen output will be in ASCII format", NULL);
txt_scrollw = scrolled_window_new(NULL, NULL);
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 6);
gtk_container_add(GTK_CONTAINER(tw->win), main_vb);
gtk_container_add(GTK_CONTAINER(main_vb), txt_scrollw);
main_vb = gtk_vbox_new(TRUE,5);
gtk_container_add(GTK_CONTAINER(win), main_vb);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 6);
main_tb = gtk_table_new(i+1, 2, FALSE);
gtk_box_pack_start(GTK_BOX(main_vb), main_tb, FALSE, FALSE, 0);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(goto_frame_w), main_vb);
gtk_widget_show(main_vb);
/* Container for each row of widgets */
vertb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(vertb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(vertb), 5);
gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(save_to_file_w)->action_area),
vertb, FALSE, FALSE, 0);
gtk_widget_show (vertb);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(sum_open_w), main_vb);
gtk_widget_show(main_vb);
resolv_cb = gtk_check_button_new_with_mnemonic("Name resolution");
gtk_container_add(GTK_CONTAINER(hbox), resolv_cb);
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(resolv_cb), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(resolv_cb), TRUE);
gtk_tooltips_set_tip(tooltips, resolv_cb, "Show results of name resolutions rather than the \"raw\" values. "
"Please note: The corresponding name resolution must be enabled.", NULL);
filter_cb = gtk_check_button_new_with_mnemonic("Limit to display filter");
gtk_container_add(GTK_CONTAINER(hbox), filter_cb);
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(filter_cb), FALSE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(filter_cb), FALSE);
gtk_tooltips_set_tip(tooltips, filter_cb, "Limit the list to endpoints matching the current display filter.", NULL);
g_signal_connect(filter_cb, "toggled", G_CALLBACK(hostlist_filter_toggle_dest), pages);
GUINT_TO_POINTER(pixels_per_tick[i]));
g_signal_connect(menu_item, "activate", G_CALLBACK(pixels_per_tick_select), io);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
}
gtk_menu_set_active(GTK_MENU(menu), DEFAULT_PIXELS_PER_TICK);
return;
GUINT_TO_POINTER(tick_interval_values[i]));
g_signal_connect(menu_item, "activate", G_CALLBACK(tick_interval_select), (gpointer)io);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
}
gtk_menu_set_active(GTK_MENU(menu), DEFAULT_TICK_VALUE);
return;
GUINT_TO_POINTER(yscale_max[i]));
g_signal_connect(menu_item, "activate", G_CALLBACK(yscale_select), io);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
}
gtk_menu_set_active(GTK_MENU(menu), DEFAULT_YSCALE);
return;
g_object_set_data(G_OBJECT(menu_item), "count_type", GINT_TO_POINTER(i));
g_signal_connect(menu_item, "activate", G_CALLBACK(count_type_select), io);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
}
return;
}
vbox=gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(frame), vbox);
- gtk_container_border_width(GTK_CONTAINER(vbox), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 3);
gtk_box_set_child_packing(GTK_BOX(box), vbox, FALSE, FALSE, 0, GTK_PACK_END);
gtk_widget_show(vbox);
view_cb = gtk_check_button_new_with_mnemonic("_View as time of day");
gtk_container_add(GTK_CONTAINER(vbox), view_cb);
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(view_cb), io->view_as_time);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(view_cb), io->view_as_time);
g_signal_connect(view_cb, "toggled", G_CALLBACK(view_as_time_toggle_dest), io);
gtk_widget_show(view_cb);
vbox=gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(frame), vbox);
- gtk_container_border_width(GTK_CONTAINER(vbox), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 3);
gtk_box_set_child_packing(GTK_BOX(box), vbox, FALSE, FALSE, 0, GTK_PACK_END);
gtk_widget_show(vbox);
menu_item=gtk_menu_item_new_with_label(calc_type_names[i]);
g_signal_connect(menu_item, "activate", G_CALLBACK(calc_type_select), &gio->calc_types[i]);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
}
return;
}
create_advanced_field(io_stat_graph_t *gio, GtkWidget *box)
{
- gio->calc_field=gtk_entry_new_with_max_length(50);
+ gio->calc_field=gtk_entry_new();
+ gtk_entry_set_max_length(GTK_ENTRY(gio->calc_field),50);
gtk_box_pack_start(GTK_BOX(box), gio->calc_field, TRUE, TRUE, 0);
gtk_widget_show(gio->calc_field);
g_signal_connect(gio->calc_field, "activate", G_CALLBACK(filter_callback), gio);
gtk_widget_modify_fg(label, GTK_STATE_PRELIGHT, &gio->color);
gtk_widget_modify_fg(label, GTK_STATE_SELECTED, &gio->color);
gtk_widget_modify_fg(label, GTK_STATE_INSENSITIVE, &gio->color);
-/* gtk_signal_connect(GTK_OBJECT(gio->display_button), "toggled", GTK_SIGNAL_FUNC(filter_callback), gio);*/
+/* g_signal_connect(gio->display_button, "toggled", filter_callback, gio);*/
/* filter prefs dialog */
gtk_box_pack_start(GTK_BOX(hbox), gio->filter_bt, FALSE, TRUE, 0);
gtk_widget_show(gio->filter_bt);
- gio->filter_field=gtk_entry_new_with_max_length(256);
-
+ gio->filter_field=gtk_entry_new();
+ gtk_entry_set_max_length(GTK_ENTRY(gio->filter_field),256);
/* filter prefs dialog */
g_object_set_data(G_OBJECT(gio->filter_bt), E_FILT_TE_PTR_KEY, gio->filter_field);
/* filter prefs dialog */
g_object_set_data(G_OBJECT(menu_item), "plot_style", GINT_TO_POINTER(i));
g_signal_connect(menu_item, "activate", G_CALLBACK(plot_style_select), &gio->io->graphs[num-1]);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
}
gtk_menu_set_active(GTK_MENU(menu), DEFAULT_PLOT_STYLE);
vbox=gtk_vbox_new(FALSE, 1);
gtk_container_add(GTK_CONTAINER(frame), vbox);
- gtk_container_border_width(GTK_CONTAINER(vbox), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 3);
gtk_box_set_child_packing(GTK_BOX(box), vbox, FALSE, FALSE, 0, GTK_PACK_START);
gtk_widget_show(vbox);
hbox=gtk_hbox_new(FALSE, 3);
gtk_box_pack_end(GTK_BOX(vbox), hbox, FALSE, FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(hbox), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(hbox), 3);
gtk_box_set_child_packing(GTK_BOX(vbox), hbox, FALSE, FALSE, 0, GTK_PACK_START);
gtk_widget_show(hbox);
/* Vertical container for menu bar, toolbar(s), paned windows and progress/info box */
main_vbox = gtk_vbox_new(FALSE, 1);
- gtk_container_border_width(GTK_CONTAINER(main_vbox), 1);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vbox), 1);
gtk_container_add(GTK_CONTAINER(top_level), main_vbox);
gtk_widget_show(main_vbox);
submenu_recent_files = gtk_item_factory_get_widget(main_menu_factory, MENU_RECENT_FILES_PATH);
/* convert container to a GList */
- menu_item_list = gtk_container_children(GTK_CONTAINER(submenu_recent_files));
+ menu_item_list = gtk_container_get_children(GTK_CONTAINER(submenu_recent_files));
/* iterate through list items of menu_item_list,
* removing special items, a maybe duplicate entry and every item above count_max */
/* add new item at latest position */
menu_item = gtk_menu_item_new_with_label(normalized_cf_name);
g_object_set_data(G_OBJECT(menu_item), MENU_RECENT_FILES_KEY, normalized_cf_name);
- gtk_menu_prepend (GTK_MENU(submenu_recent_files), menu_item);
+ gtk_menu_shell_prepend (GTK_MENU_SHELL(submenu_recent_files), menu_item);
g_signal_connect_swapped(GTK_OBJECT(menu_item), "activate",
G_CALLBACK(menu_open_recent_file_cmd_cb), (GtkObject *) menu_item);
gtk_widget_show (menu_item);
/* we have to iterate backwards through the children's list,
* so we get the latest item last in the file.
* (don't use gtk_container_foreach() here, it will return the wrong iteration order) */
- children = gtk_container_children(GTK_CONTAINER(submenu_recent_files));
+ children = gtk_container_get_children(GTK_CONTAINER(submenu_recent_files));
child = g_list_last(children);
while(child != NULL) {
/* get capture filename from the menu item label */
bv_tvb = g_object_get_data(G_OBJECT(bv), E_BYTE_VIEW_TVBUFF_KEY);
if (bv_tvb == tvb) {
/* Found it. */
- gtk_notebook_set_page(GTK_NOTEBOOK(nb_ptr), num);
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(nb_ptr), num);
break;
}
}
gtk_notebook_set_show_tabs(GTK_NOTEBOOK(byte_nb), TRUE);
/* set this page (this will print the packet data) */
- gtk_notebook_set_page(GTK_NOTEBOOK(byte_nb),
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(byte_nb),
gtk_notebook_page_num(GTK_NOTEBOOK(byte_nb), byte_nb));
return byte_view;
/*
* Initially select the first byte view.
*/
- gtk_notebook_set_page(GTK_NOTEBOOK(byte_nb_ptr), 0);
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(byte_nb_ptr), 0);
}
/* Sstatus hbox */
status_hbox = gtk_hbox_new(FALSE, 1);
- gtk_container_border_width(GTK_CONTAINER(status_hbox), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(status_hbox), 0);
/* info (main) statusbar */
info_bar_new();
gtk_box_pack_start(GTK_BOX(topic_vb), topic_header, FALSE, FALSE, 0);
layout_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(layout_vb), 10);
+ gtk_container_set_border_width(GTK_CONTAINER(layout_vb), 10);
gtk_box_pack_start(GTK_BOX(topic_vb), layout_vb, FALSE, FALSE, 0);
/* colorize vbox (we need an event box for this!) */
/* content */
welcome_hb = gtk_hbox_new(FALSE, 10);
- gtk_container_border_width(GTK_CONTAINER(welcome_hb), 10);
+ gtk_container_set_border_width(GTK_CONTAINER(welcome_hb), 10);
gtk_box_pack_start(GTK_BOX(welcome_vb), welcome_hb, TRUE, TRUE, 0);
static void mcaststream_draw(void *arg _U_)
{
/* XXX: see mcaststream_on_update in mcast_streams_dlg.c for comments
- gtk_signal_emit_by_name(top_level, "signal_mcaststream_update");
+ g_signal_emit_by_name(top_level, "signal_mcaststream_update");
*/
mcaststream_dlg_update(the_tapinfo_struct.strinfo_list);
return;
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 2);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 2);
gtk_container_add(GTK_CONTAINER(mcast_params_dlg), main_vb);
gtk_widget_show(main_vb);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(sum_open_w), main_vb);
gtk_widget_show(main_vb);
/* Container for paned windows */
main_vbox = gtk_vbox_new(FALSE, 1);
- gtk_container_border_width(GTK_CONTAINER(main_vbox), 1);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vbox), 1);
gtk_container_add(GTK_CONTAINER(main_w), main_vbox);
gtk_widget_show(main_vbox);
/* Panes for the tree and byte view */
pane = gtk_vpaned_new();
- gtk_paned_gutter_size(GTK_PANED(pane), (GTK_PANED(pane))->handle_size);
+ gtk_paned_set_gutter_size(GTK_PANED(pane), (GTK_PANED(pane))->handle_size);
gtk_container_add(GTK_CONTAINER(main_vbox), pane);
gtk_widget_show(pane);
/* Main vertical box */
main_vb = gtk_vbox_new(FALSE, 7);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
/* Main table */
main_tb = gtk_table_new(CAPTURE_TABLE_ROWS, 2, FALSE);
gtk_window_set_default_size(GTK_WINDOW(ifopts_edit_dlg), DEF_WIDTH, 340);
main_vb = gtk_vbox_new(FALSE, 1);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(ifopts_edit_dlg), main_vb);
gtk_widget_show(main_vb);
/* create a scrolled window to pack the current options CList widget into */
cur_scr_win = scrolled_window_new(NULL, NULL);
- gtk_container_border_width(GTK_CONTAINER(cur_scr_win), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(cur_scr_win), 3);
gtk_container_add(GTK_CONTAINER(cur_opts_fr), cur_scr_win);
gtk_widget_show(cur_scr_win);
gtk_widget_show(ed_opts_fr);
main_hb = gtk_hbox_new(TRUE, 5);
- gtk_container_border_width(GTK_CONTAINER(main_hb), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(main_hb), 3);
gtk_container_add(GTK_CONTAINER(ed_opts_fr), main_hb);
gtk_widget_show(main_hb);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_widget_show(main_vb);
g_object_set_data(G_OBJECT(GTK_OBJECT(main_vb)), E_COL_CM_KEY, (gpointer)FALSE);
/* Colunm name entry and format selection */
tb = gtk_table_new(2, 3, FALSE);
- gtk_container_border_width(GTK_CONTAINER(tb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(tb), 5);
gtk_container_add(GTK_CONTAINER(props_fr), tb);
gtk_table_set_row_spacings(GTK_TABLE(tb), 10);
gtk_table_set_col_spacings(GTK_TABLE(tb), 15);
/* Main vertical box */
main_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(frame), main_vb);
/* Main table */
/* Container for each row of widgets */
cts.main_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(cts.main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(cts.main_vb), 5);
gtk_container_add(GTK_CONTAINER(prefs_w), cts.main_vb);
gtk_widget_show(cts.main_vb);
prefs_tree_page_add(label_str, cts.page, store, &gui_iter, FALSE);
cts.page++;
- gtk_container_border_width( GTK_CONTAINER(gui_font_pg), 5 );
+ gtk_container_set_border_width( GTK_CONTAINER(gui_font_pg), 5 );
/* IMPORTANT: the following gtk_font_selection_set_xy() functions will only
work, if the widget and it's corresponding window is already shown
button = gtk_radio_button_new_with_label(rb_group,
enum_valp->description);
gtk_widget_show(button);
- rb_group = gtk_radio_button_group(GTK_RADIO_BUTTON(button));
+ rb_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(button));
gtk_box_pack_start(GTK_BOX(radio_button_hbox), button, FALSE,
FALSE, 10);
if (enum_valp->value == current_val) {
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(button),
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button),
TRUE);
}
}
* Go through the list of of radio buttons in the button's group,
* and find the first one that's active.
*/
- rb_group = gtk_radio_button_group(GTK_RADIO_BUTTON(button));
+ rb_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(button));
button = NULL;
for (rb_entry = rb_group; rb_entry != NULL;
rb_entry = g_slist_next(rb_entry)) {
for (enum_valp = enumvals, index = 0; enum_valp->name != NULL;
enum_valp++, index++) {
menu_item = gtk_menu_item_new_with_label(enum_valp->description);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
if (enum_valp->value == current_val)
menu_index = index;
gtk_widget_show(menu_item);
{
gtk_tree_model_get(model, &iter, 1, &page, -1);
if (page >= 0)
- gtk_notebook_set_page(g_object_get_data(G_OBJECT(prefs_w), E_PREFSW_NOTEBOOK_KEY), page);
+ gtk_notebook_set_current_page(g_object_get_data(G_OBJECT(prefs_w), E_PREFSW_NOTEBOOK_KEY), page);
}
}
/* Main vertical box */
main_vb = gtk_vbox_new(FALSE, 7);
- gtk_container_border_width( GTK_CONTAINER(main_vb), 5 );
+ gtk_container_set_border_width( GTK_CONTAINER(main_vb), 5 );
/* Main table */
main_tb = gtk_table_new(GUI_TABLE_ROWS, 2, FALSE);
gtk_container_add(GTK_CONTAINER(radio_vb), radio_lb);
radio_none_rb = gtk_radio_button_new_with_mnemonic_from_widget(NULL, "None");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(radio_none_rb), content == layout_pane_content_none);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_none_rb), content == layout_pane_content_none);
gtk_tooltips_set_tip (tooltips, radio_none_rb, "Put nothing in this pane.", NULL);
gtk_container_add(GTK_CONTAINER(radio_vb), radio_none_rb);
radio_plist_rb = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(radio_none_rb), "Packet List");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(radio_plist_rb), content == layout_pane_content_plist);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_plist_rb), content == layout_pane_content_plist);
gtk_tooltips_set_tip (tooltips, radio_plist_rb, "Put the packet list in this pane.", NULL);
gtk_container_add(GTK_CONTAINER(radio_vb), radio_plist_rb);
radio_pdetails_rb = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(radio_none_rb), "Packet Details");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(radio_pdetails_rb), content == layout_pane_content_pdetails);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_pdetails_rb), content == layout_pane_content_pdetails);
gtk_tooltips_set_tip (tooltips, radio_pdetails_rb, "Put the packet details tree in this pane.", NULL);
gtk_container_add(GTK_CONTAINER(radio_vb), radio_pdetails_rb);
radio_pbytes_rb = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(radio_none_rb), "Packet Bytes");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(radio_pbytes_rb), content == layout_pane_content_pbytes);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_pbytes_rb), content == layout_pane_content_pbytes);
gtk_tooltips_set_tip (tooltips, radio_pbytes_rb, "Put the packet bytes hexdump in this pane.", NULL);
gtk_container_add(GTK_CONTAINER(radio_vb), radio_pbytes_rb);
switch(pane_content) {
case(layout_pane_content_none):
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(g_object_get_data(G_OBJECT(radio_vb), LAYOUT_NONE_RB_KEY)), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(g_object_get_data(G_OBJECT(radio_vb), LAYOUT_NONE_RB_KEY)), TRUE);
break;
case(layout_pane_content_plist):
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(g_object_get_data(G_OBJECT(radio_vb), LAYOUT_PLIST_RB_KEY)), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(g_object_get_data(G_OBJECT(radio_vb), LAYOUT_PLIST_RB_KEY)), TRUE);
break;
case(layout_pane_content_pdetails):
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(g_object_get_data(G_OBJECT(radio_vb), LAYOUT_PDETAILS_RB_KEY)), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(g_object_get_data(G_OBJECT(radio_vb), LAYOUT_PDETAILS_RB_KEY)), TRUE);
break;
case(layout_pane_content_pbytes):
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(g_object_get_data(G_OBJECT(radio_vb), LAYOUT_PBYTES_RB_KEY)), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(g_object_get_data(G_OBJECT(radio_vb), LAYOUT_PBYTES_RB_KEY)), TRUE);
break;
default:
g_assert_not_reached();
/* Main vertical box */
main_vb = gtk_vbox_new(FALSE, 7);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
/* Main table */
main_tb = gtk_table_new(RESOLV_TABLE_ROWS, 3, FALSE);
/* Enclosing containers for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
main_tb = gtk_table_new(4, 2, FALSE);
gtk_box_pack_start(GTK_BOX(main_vb), main_tb, FALSE, FALSE, 0);
/* Main vertical box */
main_vb = gtk_vbox_new(FALSE, 7);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
/* Main table */
main_tb = gtk_table_new(PROTOCOLS_TABLE_ROWS, 1, FALSE);
/* Enclosing containers for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
main_tb = gtk_table_new(3, 3, FALSE);
gtk_box_pack_start(GTK_BOX(main_vb), main_tb, FALSE, FALSE, 0);
/* Main vertical box */
main_vb = gtk_vbox_new(FALSE, 7);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
/* Main table */
main_tb = gtk_table_new(RTP_PLAYER_TABLE_ROWS, 2, FALSE);
/* Vertical enclosing container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(main_win), main_vb);
gtk_widget_show(main_vb);
gtk_box_pack_start(GTK_BOX(main_vb), printer_fr, FALSE, FALSE, 0);
gtk_widget_show(printer_fr);
printer_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(printer_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(printer_vb), 5);
gtk_container_add(GTK_CONTAINER(printer_fr), printer_vb);
gtk_widget_show(printer_vb);
/* "Plain text" / "Postscript" / "PDML", ... radio buttons */
text_rb = gtk_radio_button_new_with_mnemonic_from_widget(NULL, "Plain _text");
if (args->format == PR_FMT_TEXT)
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(text_rb), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(text_rb), TRUE);
gtk_tooltips_set_tip (tooltips, text_rb, "Print output in ascii \"plain text\" format. If you're unsure, use this format.", NULL);
gtk_box_pack_start(GTK_BOX(printer_vb), text_rb, FALSE, FALSE, 0);
if(action == output_action_print)
ps_rb = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(text_rb), "_PostScript");
if (args->format == PR_FMT_PS)
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(ps_rb), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(ps_rb), TRUE);
gtk_tooltips_set_tip (tooltips, ps_rb, "Print output in \"postscript\" format, for postscript capable printers or print servers.", NULL);
gtk_box_pack_start(GTK_BOX(printer_vb), ps_rb, FALSE, FALSE, 0);
if(action == output_action_print)
pdml_rb = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(text_rb), "PDM_L (XML: Packet Details Markup Language)");
if (action == output_action_export_pdml)
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(pdml_rb), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(pdml_rb), TRUE);
gtk_tooltips_set_tip (tooltips, pdml_rb,
"Print output in \"PDML\" (Packet Details Markup Language), "
"an XML based packet data interchange format. "
psml_rb = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(text_rb), "PSML (XML: Packet Summary Markup Language)");
if (action == output_action_export_psml)
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(psml_rb), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(psml_rb), TRUE);
gtk_tooltips_set_tip (tooltips, psml_rb,
"Print output in \"PSML\" (Packet Summary Markup Language), "
"an XML based packet summary interchange format. "
csv_rb = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(text_rb), "_CSV");
if (action == output_action_export_csv)
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(csv_rb), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(csv_rb), TRUE);
gtk_tooltips_set_tip (tooltips, csv_rb,
"Print output in \"Comma Separated Values\" (CSV) format, "
"a text format compatible with OpenOffice and Excel. "
carrays_rb = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(text_rb), "C Arrays");
if (action == output_action_export_carrays)
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(carrays_rb), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(carrays_rb), TRUE);
gtk_tooltips_set_tip (tooltips, carrays_rb,
"Print output in C Arrays format, "
"a text file suitable for use in C/C++ programs. "
/* Output to file button */
dest_cb = gtk_check_button_new_with_mnemonic("Output to _file:");
if (args->to_file)
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(dest_cb), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dest_cb), TRUE);
gtk_tooltips_set_tip (tooltips, dest_cb, "Output to file instead of printer", NULL);
gtk_table_attach_defaults(GTK_TABLE(printer_tb), dest_cb, 0, 1, 0, 1);
if(action == output_action_print)
action == output_action_export_ps)
gtk_widget_show(format_fr);
format_vb = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(format_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(format_vb), 5);
gtk_container_add(GTK_CONTAINER(format_fr), format_vb);
gtk_widget_show(format_vb);
/* "Print summary line" check button */
summary_cb = gtk_check_button_new_with_mnemonic("Packet summary line");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(summary_cb), args->print_summary);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(summary_cb), args->print_summary);
g_signal_connect(summary_cb, "clicked", G_CALLBACK(print_cmd_toggle_detail), main_win);
gtk_tooltips_set_tip (tooltips, summary_cb, "Output of a packet summary line, like in the packet list", NULL);
gtk_container_add(GTK_CONTAINER(format_vb), summary_cb);
/* "Details" check button */
details_cb = gtk_check_button_new_with_mnemonic("Packet details:");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(details_cb), args->print_dissections != print_dissections_none);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(details_cb), args->print_dissections != print_dissections_none);
g_signal_connect(details_cb, "clicked", G_CALLBACK(print_cmd_toggle_detail), main_win);
gtk_tooltips_set_tip (tooltips, details_cb, "Output format of the selected packet details (protocol tree).", NULL);
gtk_container_add(GTK_CONTAINER(format_vb), details_cb);
/*** packet details ***/
details_hb = gtk_hbox_new(FALSE, 6);
- gtk_container_border_width(GTK_CONTAINER(details_hb), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(details_hb), 0);
gtk_container_add(GTK_CONTAINER(format_vb), details_hb);
gtk_widget_show(details_hb);
details_vb = gtk_vbox_new(FALSE, 6);
- gtk_container_border_width(GTK_CONTAINER(details_vb), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(details_vb), 0);
gtk_container_add(GTK_CONTAINER(details_hb), details_vb);
gtk_widget_show(details_vb);
details_vb = gtk_vbox_new(FALSE, 6);
- gtk_container_border_width(GTK_CONTAINER(details_vb), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(details_vb), 0);
gtk_container_add(GTK_CONTAINER(details_hb), details_vb);
gtk_widget_show(details_vb);
/* "All collapsed"/"As displayed"/"All Expanded" radio buttons */
collapse_all_rb = gtk_radio_button_new_with_mnemonic_from_widget(NULL, "All co_llapsed");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(collapse_all_rb), args->print_dissections == print_dissections_collapsed);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(collapse_all_rb), args->print_dissections == print_dissections_collapsed);
gtk_tooltips_set_tip (tooltips, collapse_all_rb, "Output of the packet details tree \"collapsed\"", NULL);
gtk_container_add(GTK_CONTAINER(details_vb), collapse_all_rb);
gtk_widget_show(collapse_all_rb);
as_displayed_rb = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(collapse_all_rb), "As displa_yed");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(as_displayed_rb), args->print_dissections == print_dissections_as_displayed);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(as_displayed_rb), args->print_dissections == print_dissections_as_displayed);
gtk_tooltips_set_tip (tooltips, as_displayed_rb, "Output of the packet details tree \"as displayed\"", NULL);
gtk_container_add(GTK_CONTAINER(details_vb), as_displayed_rb);
gtk_widget_show(as_displayed_rb);
expand_all_rb = gtk_radio_button_new_with_mnemonic_from_widget(GTK_RADIO_BUTTON(collapse_all_rb), "All e_xpanded");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(expand_all_rb), args->print_dissections == print_dissections_expanded);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(expand_all_rb), args->print_dissections == print_dissections_expanded);
gtk_tooltips_set_tip (tooltips, expand_all_rb, "Output of the packet details tree \"expanded\"", NULL);
gtk_container_add(GTK_CONTAINER(details_vb), expand_all_rb);
gtk_widget_show(expand_all_rb);
/* "Print hex" check button. */
hex_cb = gtk_check_button_new_with_mnemonic("Packet bytes");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(hex_cb), args->print_hex);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(hex_cb), args->print_hex);
g_signal_connect(hex_cb, "clicked", G_CALLBACK(print_cmd_toggle_detail), main_win);
gtk_tooltips_set_tip (tooltips, hex_cb, "Add a hexdump of the packet data", NULL);
gtk_container_add(GTK_CONTAINER(format_vb), hex_cb);
/* "Each packet on a new page" check button. */
formfeed_cb = gtk_check_button_new_with_mnemonic("Each packet on a new page");
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(formfeed_cb), args->print_formfeed);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(formfeed_cb), args->print_formfeed);
gtk_tooltips_set_tip (tooltips, formfeed_cb, "When checked, a new page will be used for each packet. "
"This is done by adding a formfeed (or similar) between the packet outputs.", NULL);
gtk_container_add(GTK_CONTAINER(format_vb), formfeed_cb);
gtk_window_set_default_size(GTK_WINDOW(main_w), 400, 400);
main_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(main_w), main_vb);
gtk_widget_show(main_vb);
/* Container for each row of widgets */
profile_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(profile_vb), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(profile_vb), 0);
gtk_container_add(GTK_CONTAINER(main_vb), profile_vb);
gtk_widget_show(profile_vb);
gtk_widget_show(edit_fr);
list_bb = gtk_vbox_new(TRUE, 0);
- gtk_container_border_width(GTK_CONTAINER(list_bb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(list_bb), 5);
gtk_container_add(GTK_CONTAINER(edit_fr), list_bb);
gtk_widget_show(list_bb);
gtk_widget_show(props_fr);
props_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(props_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(props_vb), 5);
gtk_container_add(GTK_CONTAINER(props_fr), props_vb);
gtk_widget_show(props_vb);
* Container for dialog widgets.
*/
main_vb = gtk_vbox_new(FALSE, 1);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 5);
gtk_container_add(GTK_CONTAINER(dlg_w), main_vb);
/*
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 6);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 6);
gtk_container_add(GTK_CONTAINER(proto_w), main_vb);
gtk_widget_show(main_vb);
proto_vb = gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(proto_frame), proto_vb);
- gtk_container_border_width(GTK_CONTAINER(proto_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(proto_vb), 5);
gtk_widget_show(proto_vb);
proto_sw = scrolled_window_new(NULL, NULL);
dlg = window_new(GTK_WINDOW_TOPLEVEL, "Wireshark: Protocol Hierarchy Statistics");
vbox = gtk_vbox_new(FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(vbox), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 5);
gtk_container_add(GTK_CONTAINER(dlg), vbox);
current_filter=gtk_entry_get_text(GTK_ENTRY(main_display_filter_widget));
/* range table */
range_tb = gtk_table_new(7, 3, FALSE);
- gtk_container_border_width(GTK_CONTAINER(range_tb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(range_tb), 5);
/* captured button */
captured_bt = gtk_toggle_button_new_with_mnemonic("_Captured");
(gpointer)(long) i);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(vers_menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(vers_menu), menu_item);
}
gtk_option_menu_set_menu(GTK_OPTION_MENU(vers_opt), vers_menu);
}
g_signal_connect(menu_item, "activate", G_CALLBACK(rpcstat_program_select), k);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(prog_menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(prog_menu), menu_item);
if(!rpc_program){
rpc_program=k->prog;
gtk_window_set_default_size(GTK_WINDOW(dlg), 300, -1);
dlg_box=gtk_vbox_new(FALSE, 10);
- gtk_container_border_width(GTK_CONTAINER(dlg_box), 10);
+ gtk_container_set_border_width(GTK_CONTAINER(dlg_box), 10);
gtk_container_add(GTK_CONTAINER(dlg), dlg_box);
gtk_widget_show(dlg_box);
(gpointer)(long) i);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(vers_menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(vers_menu), menu_item);
}
gtk_option_menu_set_menu(GTK_OPTION_MENU(vers_opt), vers_menu);
gtk_box_pack_start(GTK_BOX(prog_box), vers_opt, TRUE, TRUE, 0);
#endif
/* disable the "switch_page" signal in the dlg, otherwise will be called when the windows is destroy and cause an exception using GTK1*/
- gtk_signal_disconnect(GTK_OBJECT(user_data->dlg.notebook), user_data->dlg.notebook_signal_id);
+ g_signal_handler_disconnect(user_data->dlg.notebook, user_data->dlg.notebook_signal_id);
g_free(user_data->dlg.col_arrows_fwd);
g_free(user_data->dlg.col_arrows_rev);
GUINT_TO_POINTER(vp.fnumber));
}
if (row!=-1) {
- gtk_notebook_set_page(GTK_NOTEBOOK(user_data->dlg.notebook),
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(user_data->dlg.notebook),
(clist == GTK_CLIST(user_data->dlg.clist_fwd)) ? 0 : 1);
gtk_clist_select_row(clist, row, 0);
gtk_clist_moveto(clist, row, 0, 0.5, 0);
vbox=gtk_vbox_new(FALSE, 1);
gtk_container_add(GTK_CONTAINER(frame), vbox);
- gtk_container_border_width(GTK_CONTAINER(vbox), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 3);
gtk_box_set_child_packing(GTK_BOX(box), vbox, FALSE, FALSE, 0, GTK_PACK_START);
gtk_widget_show(vbox);
GUINT_TO_POINTER(yscale_max[i]));
g_signal_connect(menu_item, "activate", G_CALLBACK(yscale_select), user_data);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
}
return;
}
GUINT_TO_POINTER(pixels_per_tick[i]));
g_signal_connect(menu_item, "activate", G_CALLBACK(pixels_per_tick_select), user_data);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
}
gtk_menu_set_active(GTK_MENU(menu), DEFAULT_PIXELS_PER_TICK);
return;
GUINT_TO_POINTER(tick_interval_values[i]));
g_signal_connect(menu_item, "activate", G_CALLBACK(tick_interval_select), (gpointer)user_data);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
}
gtk_menu_set_active(GTK_MENU(menu), DEFAULT_TICK_VALUE);
return;
vbox=gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(frame), vbox);
- gtk_container_border_width(GTK_CONTAINER(vbox), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 3);
gtk_box_set_child_packing(GTK_BOX(box), vbox, FALSE, FALSE, 0, GTK_PACK_END);
gtk_widget_show(vbox);
vbox=gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(frame), vbox);
- gtk_container_border_width(GTK_CONTAINER(vbox), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 3);
gtk_box_set_child_packing(GTK_BOX(box), vbox, FALSE, FALSE, 0, GTK_PACK_END);
gtk_widget_show(vbox);
hbox=gtk_hbox_new(FALSE, 3);
gtk_box_pack_end(GTK_BOX(vbox), hbox, FALSE, FALSE, 5);
- gtk_container_border_width(GTK_CONTAINER(hbox), 3);
+ gtk_container_set_border_width(GTK_CONTAINER(hbox), 3);
gtk_box_set_child_packing(GTK_BOX(vbox), hbox, FALSE, FALSE, 0, GTK_PACK_START);
gtk_widget_show(hbox);
/* Container for each row of widgets */
vertb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(vertb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(vertb), 5);
gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(user_data->dlg.save_csv_as_w)->action_area),
vertb, FALSE, FALSE, 0);
gtk_widget_show (vertb);
gtk_misc_set_alignment (GTK_MISC (channels_label), 0, 0.5);
forward_rb = gtk_radio_button_new_with_label (channels_group, "forward ");
- channels_group = gtk_radio_button_group (GTK_RADIO_BUTTON (forward_rb));
+ channels_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (forward_rb));
gtk_widget_show (forward_rb);
gtk_table_attach (GTK_TABLE (table1), forward_rb, 1, 2, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
reversed_rb = gtk_radio_button_new_with_label (channels_group, "reversed");
- channels_group = gtk_radio_button_group (GTK_RADIO_BUTTON (reversed_rb));
+ channels_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (reversed_rb));
gtk_widget_show (reversed_rb);
gtk_table_attach (GTK_TABLE (table1), reversed_rb, 2, 3, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
both_rb = gtk_radio_button_new_with_label (channels_group, "both");
- channels_group = gtk_radio_button_group (GTK_RADIO_BUTTON (both_rb));
+ channels_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (both_rb));
gtk_widget_show (both_rb);
gtk_table_attach (GTK_TABLE (table1), both_rb, 3, 4, 1, 2,
(GtkAttachOptions) (GTK_FILL),
/* Container for each row of widgets */
vertb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(vertb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(vertb), 5);
gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(user_data->dlg.save_voice_as_w)->action_area),
vertb, FALSE, FALSE, 0);
gtk_widget_show (vertb);
gtk_misc_set_alignment (GTK_MISC (label_format), 0, 0.5);
raw_rb = gtk_radio_button_new_with_label (format_group, ".raw");
- format_group = gtk_radio_button_group (GTK_RADIO_BUTTON (raw_rb));
+ format_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (raw_rb));
gtk_widget_show (raw_rb);
gtk_table_attach (GTK_TABLE (table1), raw_rb, 1, 2, 0, 1,
(GtkAttachOptions) (GTK_FILL),
au_rb = gtk_radio_button_new_with_label (format_group, ".au");
- format_group = gtk_radio_button_group (GTK_RADIO_BUTTON (au_rb));
+ format_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (au_rb));
gtk_widget_show (au_rb);
gtk_table_attach (GTK_TABLE (table1), au_rb, 3, 4, 0, 1,
(GtkAttachOptions) (GTK_FILL),
/* we support .au - ulaw*/
/* wav_rb = gtk_radio_button_new_with_label (format_group, ".wav");
- format_group = gtk_radio_button_group (GTK_RADIO_BUTTON (wav_rb));
+ format_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (wav_rb));
gtk_widget_show (wav_rb);
gtk_table_attach (GTK_TABLE (table1), wav_rb, 1, 2, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
sw_rb = gtk_radio_button_new_with_label (format_group, "8 kHz, 16 bit ");
- format_group = gtk_radio_button_group (GTK_RADIO_BUTTON (sw_rb));
+ format_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (sw_rb));
gtk_widget_show (sw_rb);
gtk_table_attach (GTK_TABLE (table1), sw_rb, 2, 3, 0, 1,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
au_rb = gtk_radio_button_new_with_label (format_group, ".au");
- format_group = gtk_radio_button_group (GTK_RADIO_BUTTON (au_rb));
+ format_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (au_rb));
gtk_widget_show (au_rb);
gtk_table_attach (GTK_TABLE (table1), au_rb, 3, 4, 0, 1,
(GtkAttachOptions) (GTK_FILL),
gtk_misc_set_alignment (GTK_MISC (channels_label), 0, 0.5);
forward_rb = gtk_radio_button_new_with_label (channels_group, "forward ");
- channels_group = gtk_radio_button_group (GTK_RADIO_BUTTON (forward_rb));
+ channels_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (forward_rb));
gtk_widget_show (forward_rb);
gtk_table_attach (GTK_TABLE (table1), forward_rb, 1, 2, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
reversed_rb = gtk_radio_button_new_with_label (channels_group, "reversed");
- channels_group = gtk_radio_button_group (GTK_RADIO_BUTTON (reversed_rb));
+ channels_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (reversed_rb));
gtk_widget_show (reversed_rb);
gtk_table_attach (GTK_TABLE (table1), reversed_rb, 2, 3, 1, 2,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
both_rb = gtk_radio_button_new_with_label (channels_group, "both");
- channels_group = gtk_radio_button_group (GTK_RADIO_BUTTON (both_rb));
+ channels_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (both_rb));
gtk_widget_show (both_rb);
gtk_table_attach (GTK_TABLE (table1), both_rb, 3, 4, 1, 2,
(GtkAttachOptions) (GTK_FILL),
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 2);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 2);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 2);
gtk_container_add(GTK_CONTAINER(window), main_vb);
gtk_widget_show(main_vb);
/* Filter/status hbox */
stat_hbox = gtk_hbox_new(FALSE, 1);
- gtk_container_border_width(GTK_CONTAINER(stat_hbox), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(stat_hbox), 0);
/* statusbar */
info_bar = gtk_statusbar_new();
static void rtpstream_draw(void *arg _U_)
{
/* XXX: see rtpstream_on_update in rtp_streams_dlg.c for comments
- gtk_signal_emit_by_name(top_level, "signal_rtpstream_update");
+ g_signal_emit_by_name(top_level, "signal_rtpstream_update");
*/
rtpstream_dlg_update(the_tapinfo_struct.strinfo_list);
return;
/* Container for each row of widgets */
vertb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(vertb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(vertb), 5);
gtk_box_pack_start(GTK_BOX(GTK_FILE_SELECTION(rtpstream_save_dlg)->action_area),
vertb, FALSE, FALSE, 0);
gtk_widget_show (vertb);
gtk_window_set_default_size(GTK_WINDOW(dlg), 300, -1);
dlg_box=gtk_vbox_new(FALSE, 10);
- gtk_container_border_width(GTK_CONTAINER(dlg_box), 10);
+ gtk_container_set_border_width(GTK_CONTAINER(dlg_box), 10);
gtk_container_add(GTK_CONTAINER(dlg), dlg_box);
gtk_widget_show(dlg_box);
menu_item=gtk_menu_item_new_with_label("SBC (disk)");
g_signal_connect(menu_item, "activate", G_CALLBACK(scsistat_program_select), SCSI_DEV_SBC);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(prog_menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(prog_menu), menu_item);
/* SSC */
menu_item=gtk_menu_item_new_with_label("SSC (tape)");
g_signal_connect(menu_item, "activate", G_CALLBACK(scsistat_program_select), (gpointer)SCSI_DEV_SSC);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(prog_menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(prog_menu), menu_item);
/* MMC */
menu_item=gtk_menu_item_new_with_label("MMC (cd/dvd)");
g_signal_connect(menu_item, "activate", G_CALLBACK(scsistat_program_select), (gpointer)SCSI_DEV_CDROM);
gtk_widget_show(menu_item);
- gtk_menu_append(GTK_MENU(prog_menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(prog_menu), menu_item);
gtk_option_menu_set_menu(GTK_OPTION_MENU(prog_opt), prog_menu);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 2);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 2);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 2);
gtk_container_add(GTK_CONTAINER(window), main_vb);
gtk_widget_show(main_vb);
gtk_container_add(GTK_CONTAINER(page2), u_data->analyse_nb->page2->addr_frame);
addr_hb = gtk_hbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(addr_hb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(addr_hb), 5);
gtk_container_add(GTK_CONTAINER(u_data->analyse_nb->page2->addr_frame), addr_hb);
u_data->analyse_nb->page2->scrolled_window = scrolled_window_new(NULL, NULL);
gtk_container_add(GTK_CONTAINER(page2), stat_fr);
hbox = gtk_hbox_new(FALSE,3);
- gtk_container_border_width(GTK_CONTAINER(hbox), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(hbox), 5);
gtk_container_add(GTK_CONTAINER(stat_fr), hbox);
vbox_l = gtk_vbox_new(FALSE, 3);
gtk_container_add(GTK_CONTAINER(page3), u_data->analyse_nb->page3->addr_frame);
addr_hb = gtk_hbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(addr_hb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(addr_hb), 5);
gtk_container_add(GTK_CONTAINER(u_data->analyse_nb->page3->addr_frame), addr_hb);
u_data->analyse_nb->page3->scrolled_window = scrolled_window_new(NULL, NULL);
gtk_container_add(GTK_CONTAINER(page3), stat_fr);
hbox = gtk_hbox_new(FALSE,3);
- gtk_container_border_width(GTK_CONTAINER(hbox), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(hbox), 5);
gtk_container_add(GTK_CONTAINER(stat_fr), hbox);
vbox_l = gtk_vbox_new(FALSE, 3);
gtk_box_pack_start(GTK_BOX(hbox), sack_bt, FALSE, FALSE, 0);
gtk_widget_show(sack_bt);
- gtk_signal_connect(GTK_OBJECT(sack_bt), "clicked", (GtkSignalFunc)on_sack_bt, u_data);
+ g_signal_connect(sack_bt, "clicked", G_CALLBACK(on_sack_bt), u_data);
tsn_bt = gtk_button_new_with_label ("Data bytes sent");
gtk_box_pack_start(GTK_BOX(hbox), tsn_bt, FALSE, FALSE, 0);
gtk_widget_show(bt_close);
g_signal_connect(bt_close, "clicked", G_CALLBACK(sctp_graph_close_cb), u_data);
- gtk_signal_connect(GTK_OBJECT(u_data->io->draw_area),"button_press_event",(GtkSignalFunc)on_button_press, u_data);
- gtk_signal_connect(GTK_OBJECT(u_data->io->draw_area),"button_release_event",(GtkSignalFunc)on_button_release, u_data);
+ g_signal_connect(u_data->io->draw_area,"button_press_event",G_CALLBACK(on_button_press), u_data);
+ g_signal_connect(u_data->io->draw_area,"button_release_event",G_CALLBACK(on_button_release), u_data);
gtk_widget_set_events(u_data->io->draw_area, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_EXPOSURE_MASK);
/* dlg_set_cancel(u_data->io->window, bt_close); */
/* Container for each row of widgets */
vbox1 = gtk_vbox_new(FALSE, 2);
- gtk_container_border_width(GTK_CONTAINER(vbox1), 8);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox1), 8);
gtk_container_add(GTK_CONTAINER(u_data->io->window), vbox1);
gtk_widget_show(vbox1);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 12);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 12);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 12);
gtk_container_add(GTK_CONTAINER(u_data->io->window), main_vb);
/* table */
/* Container for each row of widgets */
vbox1 = gtk_vbox_new(FALSE, 2);
- gtk_container_border_width(GTK_CONTAINER(vbox1), 8);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox1), 8);
gtk_container_add(GTK_CONTAINER(sctp_error_dlg_w), vbox1);
gtk_widget_show(vbox1);
gtk_box_pack_start(GTK_BOX(hbox), sack_bt, FALSE, FALSE, 0);
gtk_widget_show(sack_bt);
- gtk_signal_connect(GTK_OBJECT(sack_bt), "clicked", (GtkSignalFunc)on_sack_bt, u_data);
+ g_signal_connect(sack_bt, "clicked", G_CALLBACK(on_sack_bt), u_data);
tsn_bt = gtk_button_new_with_label ("Show TSNs");
gtk_box_pack_start(GTK_BOX(hbox), tsn_bt, FALSE, FALSE, 0);
gtk_widget_show(bt_close);
g_signal_connect(bt_close, "clicked", G_CALLBACK(sctp_graph_close_cb), u_data);
- gtk_signal_connect(GTK_OBJECT(u_data->io->draw_area),"button_press_event",(GtkSignalFunc)on_button_press, u_data);
- gtk_signal_connect(GTK_OBJECT(u_data->io->draw_area),"button_release_event",(GtkSignalFunc)on_button_release, u_data);
+ g_signal_connect(u_data->io->draw_area,"button_press_event",G_CALLBACK(on_button_press), u_data);
+ g_signal_connect(u_data->io->draw_area,"button_release_event",G_CALLBACK(on_button_release), u_data);
gtk_widget_set_events(u_data->io->draw_area, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_EXPOSURE_MASK);
gtk_widget_show(u_data->io->window);
/* Container for each row of widgets */
vbox1 = gtk_vbox_new(FALSE, 2);
- gtk_container_border_width(GTK_CONTAINER(vbox1), 8);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox1), 8);
gtk_container_add(GTK_CONTAINER(sctp_stat_dlg_w), vbox1);
gtk_widget_show(vbox1);
}
gtk_window_set_modal(GTK_WINDOW(win), TRUE);
- gtk_container_border_width(GTK_CONTAINER(win), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(win), 6);
/* Container for our rows */
main_vb = gtk_vbox_new(FALSE, 12);
/* Top row: Icon and message text */
top_hb = gtk_hbox_new(FALSE, 12);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 6);
gtk_container_add(GTK_CONTAINER(main_vb), top_hb);
gtk_widget_show(top_hb);
/* Create container for all widgets */
main_vb = gtk_vbox_new(FALSE, 12);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 12);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 12);
gtk_container_add(GTK_CONTAINER(sp->win), main_vb);
/* Initialise & show number of packets */
/* Request table and frame */
request_fr = gtk_frame_new("List of request methods");
gtk_container_add(GTK_CONTAINER(main_vb), request_fr);
- gtk_container_border_width(GTK_CONTAINER(request_fr), 0);
+ gtk_container_set_border_width(GTK_CONTAINER(request_fr), 0);
sp->request_box = gtk_vbox_new(FALSE, 10);
gtk_container_add(GTK_CONTAINER(request_fr), sp->request_box);
g_free(title);
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 12);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 12);
gtk_container_add(GTK_CONTAINER(st->pr->win), main_vb);
scr_win = scrolled_window_new(NULL, NULL);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 12);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 12);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 12);
gtk_container_add(GTK_CONTAINER(sum_open_w), main_vb);
/* table */
supported_w = window_new(GTK_WINDOW_TOPLEVEL, "Wireshark: Supported Protocols");
gtk_window_set_default_size(GTK_WINDOW(supported_w), DEF_WIDTH * 2/3, DEF_HEIGHT * 2/3);
- gtk_container_border_width(GTK_CONTAINER(supported_w), 2);
+ gtk_container_set_border_width(GTK_CONTAINER(supported_w), 2);
/* Container for each row of widgets */
main_vb = gtk_vbox_new(FALSE, 1);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 1);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 1);
gtk_container_add(GTK_CONTAINER(supported_w), main_vb);
gtk_widget_show(main_vb);
/* protocol list */
proto_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(proto_vb), 1);
+ gtk_container_set_border_width(GTK_CONTAINER(proto_vb), 1);
txt_scrollw = scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(txt_scrollw),
/* display filter fields */
dfilter_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(dfilter_vb), 1);
+ gtk_container_set_border_width(GTK_CONTAINER(dfilter_vb), 1);
txt_scrollw = scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(txt_scrollw),
g_free(title);
dlg_box=gtk_vbox_new(FALSE, 10);
- gtk_container_border_width(GTK_CONTAINER(dlg_box), 10);
+ gtk_container_set_border_width(GTK_CONTAINER(dlg_box), 10);
gtk_container_add(GTK_CONTAINER(current_dlg->dlg), dlg_box);
gtk_widget_show(dlg_box);
streamwindow = dlg_window_new ("Wireshark: Packet chain");
gtk_widget_set_name (streamwindow, "Packet chain");
gtk_widget_set_size_request(streamwindow, TXT_WIDTH, TXT_HEIGHT);
- gtk_container_border_width (GTK_CONTAINER(streamwindow), 2);
+ gtk_container_set_border_width (GTK_CONTAINER(streamwindow), 2);
box = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (streamwindow), box);
time_orig_cap =
gtk_radio_button_new_with_label (NULL, "beginning of capture");
time_orig_conn = gtk_radio_button_new_with_label (
- gtk_radio_button_group (GTK_RADIO_BUTTON (time_orig_cap)),
+ gtk_radio_button_get_group (GTK_RADIO_BUTTON (time_orig_cap)),
"beginning of this TCP connection");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (time_orig_conn), TRUE);
time_orig_box = gtk_vbox_new (TRUE, 0);
/* sequence number origin group */
seq_orig_isn =
gtk_radio_button_new_with_label (NULL, "initial sequence number");
- seq_orig_zero = gtk_radio_button_new_with_label (gtk_radio_button_group (
+ seq_orig_zero = gtk_radio_button_new_with_label (gtk_radio_button_get_group (
GTK_RADIO_BUTTON (seq_orig_isn)), "0 (=absolute)");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (seq_orig_isn), TRUE);
seq_orig_box = gtk_vbox_new (TRUE, 0);
gtk_window_set_default_size(GTK_WINDOW(toplevel), 500, 400);
vbox = gtk_vbox_new (FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(vbox), 12);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 12);
gtk_container_add (GTK_CONTAINER (toplevel), vbox);
scroll = scrolled_window_new (NULL, NULL);
zoom_in = gtk_radio_button_new_with_label (NULL, "in");
zoom_out = gtk_radio_button_new_with_label (
- gtk_radio_button_group (GTK_RADIO_BUTTON (zoom_in)), "out");
+ gtk_radio_button_get_group (GTK_RADIO_BUTTON (zoom_in)), "out");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (zoom_in), TRUE);
zoom_inout_box = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (zoom_inout_box), zoom_in, FALSE, FALSE, 10);
double old_this;
direction = (long)g_object_get_data(G_OBJECT(spin), "direction");
- value = gtk_spin_button_get_value_as_float (GTK_SPIN_BUTTON (spin));
+ value = gtk_spin_button_get_value (GTK_SPIN_BUTTON (spin));
if (direction) {
zoom_this = &g->zoom.step_y;
return;
}
direction = (long)g_object_get_data(G_OBJECT(spin), "direction");
- value = gtk_spin_button_get_value_as_float (GTK_SPIN_BUTTON (spin));
+ value = gtk_spin_button_get_value (GTK_SPIN_BUTTON (spin));
if (direction) {
zoom_this = &g->magnify.zoom.y;
zoom_lock_none = gtk_radio_button_new_with_label (NULL, "none");
zoom_lock_h = gtk_radio_button_new_with_label (
- gtk_radio_button_group (GTK_RADIO_BUTTON (zoom_lock_none)),
+ gtk_radio_button_get_group (GTK_RADIO_BUTTON (zoom_lock_none)),
"horizontal");
zoom_lock_v = gtk_radio_button_new_with_label (
- gtk_radio_button_group (GTK_RADIO_BUTTON (zoom_lock_none)),
+ gtk_radio_button_get_group (GTK_RADIO_BUTTON (zoom_lock_none)),
"vertical");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (zoom_lock_none), TRUE);
zoom_lock_box = gtk_hbox_new (FALSE, 0);
label = gtk_label_new ("Crosshairs:");
off = gtk_radio_button_new_with_label (NULL, "off");
on = gtk_radio_button_new_with_label (
- gtk_radio_button_group (GTK_RADIO_BUTTON (off)), "on");
+ gtk_radio_button_get_group (GTK_RADIO_BUTTON (off)), "on");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (off), TRUE);
box = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 10);
graph_tput = gtk_radio_button_new_with_label (NULL, "Throughput");
graph_tseqttrace = gtk_radio_button_new_with_label (
- gtk_radio_button_group (GTK_RADIO_BUTTON (graph_tput)),
+ gtk_radio_button_get_group (GTK_RADIO_BUTTON (graph_tput)),
"Time/Sequence (tcptrace-style)");
graph_tseqstevens = gtk_radio_button_new_with_label (
- gtk_radio_button_group (GTK_RADIO_BUTTON (graph_tput)),
+ gtk_radio_button_get_group (GTK_RADIO_BUTTON (graph_tput)),
"Time/Sequence (Stevens'-style)");
graph_rtt = gtk_radio_button_new_with_label (
- gtk_radio_button_group (GTK_RADIO_BUTTON (graph_tput)),
+ gtk_radio_button_get_group (GTK_RADIO_BUTTON (graph_tput)),
"Round-trip Time");
switch (g->type) {
case GRAPH_TSEQ_STEVENS:
GtkWidget *page_vb, *txt_scrollw, *txt;
page_vb = gtk_vbox_new(FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(page_vb), 1);
+ gtk_container_set_border_width(GTK_CONTAINER(page_vb), 1);
txt_scrollw = scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(txt_scrollw),
GTK_SHADOW_IN);
main_vb = gtk_vbox_new(FALSE,5);
gtk_container_add(GTK_CONTAINER(win), main_vb);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 6);
main_tb = gtk_table_new(uat->ncols+1, 2, FALSE);
gtk_box_pack_start(GTK_BOX(main_vb), main_tb, FALSE, FALSE, 0);
md->text = str;
md->valptr = valptr;
- gtk_menu_append(GTK_MENU(menu), menu_item);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
if ( g_str_equal(str, text) ) {
menu_index = index;
main_vb = gtk_vbox_new(FALSE,5);
gtk_container_add(GTK_CONTAINER(win), main_vb);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 6);
main_tb = gtk_table_new(uat->ncols+1, 2, FALSE);
gtk_box_pack_start(GTK_BOX(main_vb), main_tb, FALSE, FALSE, 0);
gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER_ON_PARENT);
vbox = gtk_vbox_new(FALSE, 12);
- gtk_container_border_width(GTK_CONTAINER(vbox), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 6);
gtk_container_add(GTK_CONTAINER(win), vbox);
message = ep_strdup_printf("Changes to '%s' are not being saved!\n"
gtk_window_resize(GTK_WINDOW(rep->window), 720, 512);
gtk_window_set_position(GTK_WINDOW(rep->window), GTK_WIN_POS_CENTER_ON_PARENT);
- gtk_container_border_width(GTK_CONTAINER(rep->window), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(rep->window), 6);
rep->vbox = gtk_vbox_new(FALSE, 12);
- gtk_container_border_width(GTK_CONTAINER(rep->vbox), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(rep->vbox), 6);
gtk_container_add(GTK_CONTAINER(rep->window), rep->vbox);
hbox = gtk_hbox_new(FALSE,12);
- gtk_container_border_width(GTK_CONTAINER(hbox), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(hbox), 6);
gtk_container_add(GTK_CONTAINER(rep->vbox), hbox);
vbox = gtk_vbox_new(FALSE, 12);
- gtk_container_border_width(GTK_CONTAINER(vbox), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(vbox), 6);
gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0);
rep->scrolledwindow = scrolled_window_new(NULL, NULL);
gtk_paned_pack1(GTK_PANED(wlanstat_pane), wlanstat_name_lb, FALSE, TRUE);
selected_vb = gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(wlanstat_name_lb), selected_vb);
- gtk_container_border_width(GTK_CONTAINER(selected_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(selected_vb), 5);
scrolled_window = scrolled_window_new (NULL, NULL);
gtk_box_pack_start(GTK_BOX(selected_vb), scrolled_window, TRUE, TRUE, 0);
gtk_paned_pack2(GTK_PANED(wlanstat_pane), frame, FALSE, TRUE);
selected_vb = gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(frame), selected_vb);
- gtk_container_border_width(GTK_CONTAINER(selected_vb), 5);
+ gtk_container_set_border_width(GTK_CONTAINER(selected_vb), 5);
scrolled_window = scrolled_window_new (NULL, NULL);
gtk_box_pack_start(GTK_BOX(selected_vb), scrolled_window, TRUE, TRUE, 0);
resolv_cb = gtk_check_button_new_with_mnemonic("Name resolution");
gtk_container_add(GTK_CONTAINER(hbox), resolv_cb);
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(resolv_cb), TRUE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(resolv_cb), TRUE);
gtk_tooltips_set_tip(tooltips, resolv_cb, "Show results of name resolutions rather than the \"raw\" values. "
"Please note: The corresponding name resolution must be enabled.", NULL);
filter_cb = gtk_check_button_new_with_mnemonic("Limit to display filter");
gtk_container_add(GTK_CONTAINER(hbox), filter_cb);
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(filter_cb), FALSE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(filter_cb), FALSE);
gtk_tooltips_set_tip(tooltips, filter_cb, "Limit the list to entries matching the current display filter.", NULL);
g_signal_connect(filter_cb, "toggled", G_CALLBACK(wlan_filter_toggle_dest), hs);
existing_cb = gtk_check_button_new_with_mnemonic("Only show existing networks");
gtk_container_add(GTK_CONTAINER(hbox), existing_cb);
- gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(existing_cb), FALSE);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(existing_cb), FALSE);
gtk_tooltips_set_tip(tooltips, existing_cb, "This option disables probe requests for "
"unknown networks.", NULL);
g_signal_connect(existing_cb, "toggled", G_CALLBACK(wlan_existing_toggle_dest), hs);
/* container for the two frames */
main_vb = gtk_vbox_new(FALSE, 3);
- gtk_container_border_width(GTK_CONTAINER(main_vb), 12);
+ gtk_container_set_border_width(GTK_CONTAINER(main_vb), 12);
gtk_container_add(GTK_CONTAINER(sp->win), main_vb);
/* PDU Types frame */