diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-04-06 22:25:36 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-04-06 22:25:36 +0000 |
commit | 93354c91215373eb36de7f3e4b79a7da49fdf4dd (patch) | |
tree | 6716b439fcfb47bab8dff7148ff768e71e9a1261 /gtk/capture_dlg.c | |
parent | 660af8d6263f629a7735dfb0256b659b2455c683 (diff) |
remove GTK1 code
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24810 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/capture_dlg.c')
-rw-r--r-- | gtk/capture_dlg.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c index 5d88d7869c..53bd70011e 100644 --- a/gtk/capture_dlg.c +++ b/gtk/capture_dlg.c @@ -811,11 +811,7 @@ capture_remote_cb(GtkWidget *w _U_, gpointer d _U_) "Null authentication"); gtk_box_pack_start(GTK_BOX(auth_vb), auth_null_rb, TRUE, TRUE, 0); -#if GTK_MAJOR_VERSION >= 2 auth_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(auth_null_rb)); -#else - auth_group = gtk_radio_button_group(GTK_RADIO_BUTTON(auth_null_rb)); -#endif auth_passwd_rb = gtk_radio_button_new_with_label(auth_group, "Password authentication"); gtk_box_pack_start(GTK_BOX(auth_vb), auth_passwd_rb, TRUE, TRUE, 0); @@ -919,11 +915,9 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_) *m_resolv_cb, *n_resolv_cb, *t_resolv_cb, *bbox, *ok_bt, *cancel_bt, *help_bt; -#if GTK_MAJOR_VERSION >= 2 /* For some reason this button's action crashes under GTK 1. */ #ifdef HAVE_AIRPCAP GtkWidget *advanced_hb, *advanced_bt; #endif -#endif #ifdef HAVE_PCAP_REMOTE GtkWidget *iftype_om, *nocap_rpcap_cb, *datatx_udp_cb; #ifdef HAVE_PCAP_SETSAMPLING @@ -934,9 +928,6 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_) GSList *samp_group; #endif #endif -#if GTK_MAJOR_VERSION < 2 - GtkAccelGroup *accel_group; -#endif GtkTooltips *tooltips; GtkAdjustment *snap_adj, *ringbuffer_nbf_adj, *stop_packets_adj, *stop_filesize_adj, *stop_duration_adj, *stop_files_adj, *ring_filesize_adj, *file_duration_adj; @@ -1018,14 +1009,6 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_) tooltips = gtk_tooltips_new(); -#if GTK_MAJOR_VERSION < 2 - /* Accelerator group for the accelerators (or, as they're called in - Windows and, I think, in Motif, "mnemonics"; Alt+<key> is a mnemonic, - Ctrl+<key> is an accelerator). */ - accel_group = gtk_accel_group_new(); - gtk_window_add_accel_group(GTK_WINDOW(cap_open_w), accel_group); -#endif - main_vb = gtk_vbox_new(FALSE, 0); gtk_container_border_width(GTK_CONTAINER(main_vb), 5); gtk_container_add(GTK_CONTAINER(cap_open_w), main_vb); @@ -1254,7 +1237,6 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_) OBJECT_SET_DATA(filter_bt, E_FILT_TE_PTR_KEY, filter_te); /* advanced row */ -#if GTK_MAJOR_VERSION >= 2 /* For some reason this button's action crashes under GTK 1. */ #ifdef HAVE_AIRPCAP advanced_hb = gtk_hbox_new(FALSE,5); gtk_box_pack_start(GTK_BOX(capture_vb), advanced_hb, FALSE, FALSE, 0); @@ -1262,13 +1244,8 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_) advanced_bt = gtk_button_new_with_label("Wireless Settings"); /* set the text */ - #if GTK_MAJOR_VERSION >= 2 /* XXX - find a way to set the GtkButton label in GTK 2.x */ gtk_button_set_label(GTK_BUTTON(advanced_bt), "Wireless Settings"); - #else - /* Set the GtkButton label in GTK 1.x */ - gtk_label_set_text(GTK_LABEL(GTK_BIN(advanced_bt)->child), "Wireless Settings"); - #endif /* Both the callback and the data are global */ SIGNAL_CONNECT(advanced_bt,"clicked",options_airpcap_advanced_cb,airpcap_tb); @@ -1288,7 +1265,6 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_) gtk_widget_show(advanced_bt); gtk_widget_show(advanced_hb); #endif -#endif /* Capture file-related options frame */ file_fr = gtk_frame_new("Capture File(s)"); @@ -1543,11 +1519,7 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_) gtk_table_attach_defaults(GTK_TABLE(sampling_tb), samp_none_rb, 0, 1, 0, 1); /* "Sampling by counter" row */ -#if GTK_MAJOR_VERSION >= 2 samp_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(samp_none_rb)); -#else - samp_group = gtk_radio_button_group(GTK_RADIO_BUTTON(samp_none_rb)); -#endif samp_count_rb = gtk_radio_button_new_with_label(samp_group, "1 of"); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(samp_none_rb), (capture_opts->sampling_method == CAPTURE_SAMP_BY_COUNT)); @@ -1567,11 +1539,7 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_) gtk_table_attach_defaults(GTK_TABLE(sampling_tb), sampling_lb, 2, 3, 1, 2); /* "Sampling by timer" row */ -#if GTK_MAJOR_VERSION >= 2 samp_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(samp_count_rb)); -#else - samp_group = gtk_radio_button_group(GTK_RADIO_BUTTON(samp_count_rb)); -#endif samp_timer_rb = gtk_radio_button_new_with_label(samp_group, "1 every"); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(samp_none_rb), (capture_opts->sampling_method == CAPTURE_SAMP_BY_TIMER)); @@ -1893,9 +1861,7 @@ select_link_type_cb(GtkWidget *w, gpointer data) if (old_linktype != new_linktype) { OBJECT_SET_DATA(linktype_om, E_CAP_OM_LT_VALUE_KEY, GINT_TO_POINTER(new_linktype)); capture_opts->linktype = GPOINTER_TO_INT(OBJECT_GET_DATA(linktype_om, E_CAP_OM_LT_VALUE_KEY)); -#if GTK_MAJOR_VERSION >= 2 linktype_history=MAX(gtk_option_menu_get_history(GTK_OPTION_MENU(linktype_om)), 0); -#endif } } |