Blame SOURCES/wireshark-1.10.14-capture-options-resolution.patch

ae5d7c
diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c
ae5d7c
index 06874dc931..a3a011100e 100644
ae5d7c
--- a/ui/gtk/capture_dlg.c
ae5d7c
+++ b/ui/gtk/capture_dlg.c
ae5d7c
@@ -4635,7 +4635,7 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
 #endif
ae5d7c
 
ae5d7c
   swindow = gtk_scrolled_window_new (NULL, NULL);
ae5d7c
-  gtk_widget_set_size_request(swindow, 676, 180);
ae5d7c
+  gtk_widget_set_size_request(swindow, 676, 100);
ae5d7c
   gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(swindow), GTK_SHADOW_IN);
ae5d7c
 
ae5d7c
   view = gtk_tree_view_new ();
ae5d7c
@@ -5042,30 +5042,6 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
 
ae5d7c
   row++;
ae5d7c
 
ae5d7c
-  /* Files row */
ae5d7c
-  stop_files_cb = gtk_check_button_new_with_label("Stop capture after");
ae5d7c
-  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(stop_files_cb),
ae5d7c
-                               global_capture_opts.has_autostop_files);
ae5d7c
-  g_signal_connect(stop_files_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
ae5d7c
-  gtk_widget_set_tooltip_text(stop_files_cb, "Stop capturing after the given number of \"file switches\" have been done.");
ae5d7c
-  ws_gtk_grid_attach_extended(GTK_GRID (multi_grid), stop_files_cb, 0, row, 1, 1,
ae5d7c
-                              (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
-
ae5d7c
-  stop_files_adj = (GtkAdjustment *) gtk_adjustment_new((gfloat)global_capture_opts.autostop_files,
ae5d7c
-    1, (gfloat)INT_MAX, 1.0, 10.0, 0.0);
ae5d7c
-  stop_files_sb = gtk_spin_button_new (stop_files_adj, 0, 0);
ae5d7c
-  gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (stop_files_sb), TRUE);
ae5d7c
-  gtk_widget_set_size_request(stop_files_sb, 80, -1);
ae5d7c
-  ws_gtk_grid_attach_extended(GTK_GRID (multi_grid), stop_files_sb, 1, row, 1, 1,
ae5d7c
-                              (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
-
ae5d7c
-  stop_files_lb = gtk_label_new("file(s)");
ae5d7c
-  gtk_misc_set_alignment(GTK_MISC(stop_files_lb), 0, 0.5f);
ae5d7c
-  ws_gtk_grid_attach_extended(GTK_GRID (multi_grid), stop_files_lb, 2, row, 1, 1,
ae5d7c
-                              (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
-
ae5d7c
-  row++;
ae5d7c
-
ae5d7c
   /* Capture limits frame */
ae5d7c
   limit_fr = frame_new("Stop Capture Automatically After...");
ae5d7c
   gtk_box_pack_start(GTK_BOX (left_vb), limit_fr, TRUE, TRUE, 0);
ae5d7c
@@ -5105,15 +5081,13 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
   ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_packets_lb, 2, row, 1, 1,
ae5d7c
                               (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
 
ae5d7c
-  row++;
ae5d7c
-
ae5d7c
   /* Filesize row */
ae5d7c
   stop_filesize_cb = gtk_check_button_new();
ae5d7c
   gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(stop_filesize_cb),
ae5d7c
                                global_capture_opts.has_autostop_filesize);
ae5d7c
   g_signal_connect(stop_filesize_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
ae5d7c
   gtk_widget_set_tooltip_text(stop_filesize_cb, "Stop capturing after the specified amount of data has been captured.");
ae5d7c
-  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_filesize_cb, 0, row, 1, 1,
ae5d7c
+  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_filesize_cb, 3, row, 1, 1,
ae5d7c
                               (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
 
ae5d7c
   stop_filesize_adj = (GtkAdjustment *) gtk_adjustment_new(0.0,
ae5d7c
@@ -5121,11 +5095,11 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
   stop_filesize_sb = gtk_spin_button_new (stop_filesize_adj, 0, 0);
ae5d7c
   gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (stop_filesize_sb), TRUE);
ae5d7c
   gtk_widget_set_size_request(stop_filesize_sb, 80, -1);
ae5d7c
-  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_filesize_sb, 1, row, 1, 1,
ae5d7c
+  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_filesize_sb, 4, row, 1, 1,
ae5d7c
                               (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
 
ae5d7c
   stop_filesize_cbx = size_unit_combo_box_new(global_capture_opts.autostop_filesize);
ae5d7c
-  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_filesize_cbx, 2, row, 1, 1,
ae5d7c
+  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_filesize_cbx, 5, row, 1, 1,
ae5d7c
                               (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
 
ae5d7c
   value = size_unit_combo_box_set_value(global_capture_opts.autostop_filesize);
ae5d7c
@@ -5133,13 +5107,35 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
 
ae5d7c
   row++;
ae5d7c
 
ae5d7c
+  /* Files row */
ae5d7c
+  stop_files_cb = gtk_check_button_new();
ae5d7c
+  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(stop_files_cb),
ae5d7c
+                               global_capture_opts.has_autostop_files);
ae5d7c
+  g_signal_connect(stop_files_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
ae5d7c
+  gtk_widget_set_tooltip_text(stop_files_cb, "Stop capturing after the given number of \"file switches\" have been done.");
ae5d7c
+  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_files_cb, 0, row, 1, 1,
ae5d7c
+                              (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
+
ae5d7c
+  stop_files_adj = (GtkAdjustment *) gtk_adjustment_new((gfloat)global_capture_opts.autostop_files,
ae5d7c
+    1, (gfloat)INT_MAX, 1.0, 10.0, 0.0);
ae5d7c
+  stop_files_sb = gtk_spin_button_new (stop_files_adj, 0, 0);
ae5d7c
+  gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (stop_files_sb), TRUE);
ae5d7c
+  gtk_widget_set_size_request(stop_files_sb, 80, -1);
ae5d7c
+  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_files_sb, 1, row, 1, 1,
ae5d7c
+                              (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
+
ae5d7c
+  stop_files_lb = gtk_label_new("file(s)");
ae5d7c
+  gtk_misc_set_alignment(GTK_MISC(stop_files_lb), 0, 0.5f);
ae5d7c
+  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_files_lb, 2, row, 1, 1,
ae5d7c
+                              (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
+
ae5d7c
   /* Duration row */
ae5d7c
   stop_duration_cb = gtk_check_button_new();
ae5d7c
   gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(stop_duration_cb),
ae5d7c
                                global_capture_opts.has_autostop_duration);
ae5d7c
   g_signal_connect(stop_duration_cb, "toggled", G_CALLBACK(capture_prep_adjust_sensitivity), cap_open_w);
ae5d7c
   gtk_widget_set_tooltip_text(stop_duration_cb, "Stop capturing after the specified amount of time has passed.");
ae5d7c
-  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_duration_cb, 0, row, 1, 1,
ae5d7c
+  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_duration_cb, 3, row, 1, 1,
ae5d7c
                               (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
 
ae5d7c
   stop_duration_adj = (GtkAdjustment *) gtk_adjustment_new(0.0,
ae5d7c
@@ -5147,11 +5143,11 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
   stop_duration_sb = gtk_spin_button_new (stop_duration_adj, 0, 0);
ae5d7c
   gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (stop_duration_sb), TRUE);
ae5d7c
   gtk_widget_set_size_request(stop_duration_sb, 80, -1);
ae5d7c
-  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_duration_sb, 1, row, 1, 1,
ae5d7c
+  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_duration_sb, 4, row, 1, 1,
ae5d7c
                               (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
 
ae5d7c
   stop_duration_cbx = time_unit_combo_box_new(global_capture_opts.autostop_duration);
ae5d7c
-  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_duration_cbx, 2, row, 1, 1,
ae5d7c
+  ws_gtk_grid_attach_extended(GTK_GRID (limit_grid), stop_duration_cbx, 5, row, 1, 1,
ae5d7c
                               (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(GTK_FILL), 0, 0);
ae5d7c
 
ae5d7c
   value = time_unit_combo_box_convert_value(global_capture_opts.autostop_duration);
ae5d7c
@@ -5162,7 +5158,7 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
   display_fr = frame_new("Display Options");
ae5d7c
   gtk_box_pack_start(GTK_BOX (right_vb), display_fr, TRUE, TRUE, 0);
ae5d7c
 
ae5d7c
-  display_vb = ws_gtk_box_new(GTK_ORIENTATION_VERTICAL, DLG_UNRELATED_SPACING, FALSE);
ae5d7c
+  display_vb = ws_gtk_box_new(GTK_ORIENTATION_VERTICAL, DLG_LABEL_SPACING, FALSE);
ae5d7c
   gtk_container_set_border_width(GTK_CONTAINER(display_vb), DLG_OUTER_MARGIN);
ae5d7c
   gtk_container_add(GTK_CONTAINER(display_fr), display_vb);
ae5d7c
 
ae5d7c
@@ -5175,7 +5171,7 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
   gtk_widget_set_tooltip_text(sync_cb,
ae5d7c
     "Using this option will show the captured packets immediately on the main screen. "
ae5d7c
     "Please note: this will slow down capturing, so increased packet drops might appear.");
ae5d7c
-  gtk_box_pack_start(GTK_BOX (display_vb), sync_cb, TRUE, TRUE, 0);
ae5d7c
+  gtk_box_pack_start(GTK_BOX (display_vb), sync_cb, FALSE, TRUE, 0);
ae5d7c
 
ae5d7c
   /* "Auto-scroll live update" row */
ae5d7c
   auto_scroll_cb = gtk_check_button_new_with_mnemonic("_Automatically scroll during live capture");
ae5d7c
@@ -5183,19 +5179,19 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
   gtk_widget_set_tooltip_text(auto_scroll_cb,
ae5d7c
     "This will scroll the \"Packet List\" automatically to the latest captured packet, "
ae5d7c
     "when the \"Update List of packets in real time\" option is used.");
ae5d7c
-  gtk_box_pack_start(GTK_BOX (display_vb), auto_scroll_cb, TRUE, TRUE, 0);
ae5d7c
+  gtk_box_pack_start(GTK_BOX (display_vb), auto_scroll_cb, FALSE, TRUE, 0);
ae5d7c
 
ae5d7c
   /* "Hide capture info" row */
ae5d7c
   hide_info_cb = gtk_check_button_new_with_mnemonic("_Hide capture info dialog");
ae5d7c
   gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(hide_info_cb), !global_capture_opts.show_info);
ae5d7c
   gtk_widget_set_tooltip_text(hide_info_cb, "Hide the capture info dialog while capturing.");
ae5d7c
-  gtk_box_pack_start(GTK_BOX (display_vb), hide_info_cb, TRUE, TRUE, 0);
ae5d7c
+  gtk_box_pack_start(GTK_BOX (display_vb), hide_info_cb, FALSE, TRUE, 0);
ae5d7c
 
ae5d7c
   /* Name Resolution frame */
ae5d7c
   resolv_fr = frame_new("Name Resolution");
ae5d7c
   gtk_box_pack_start(GTK_BOX (right_vb), resolv_fr, TRUE, TRUE, 0);
ae5d7c
 
ae5d7c
-  resolv_vb = ws_gtk_box_new(GTK_ORIENTATION_VERTICAL, DLG_UNRELATED_SPACING, FALSE);
ae5d7c
+  resolv_vb = ws_gtk_box_new(GTK_ORIENTATION_VERTICAL, DLG_LABEL_SPACING, FALSE);
ae5d7c
   gtk_container_set_border_width(GTK_CONTAINER(resolv_vb), DLG_OUTER_MARGIN);
ae5d7c
   gtk_container_add(GTK_CONTAINER(resolv_fr), resolv_vb);
ae5d7c
 
ae5d7c
@@ -5204,14 +5200,14 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
   gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_resolv_cb),
ae5d7c
                 gbl_resolv_flags.mac_name);
ae5d7c
   gtk_widget_set_tooltip_text(m_resolv_cb, "Perform MAC layer name resolution while capturing.");
ae5d7c
-  gtk_box_pack_start(GTK_BOX (resolv_vb), m_resolv_cb, TRUE, TRUE, 0);
ae5d7c
+  gtk_box_pack_start(GTK_BOX (resolv_vb), m_resolv_cb, FALSE, TRUE, 0);
ae5d7c
 
ae5d7c
   n_resolv_cb = gtk_check_button_new_with_mnemonic(
ae5d7c
                 "Resolve _network-layer names");
ae5d7c
   gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(n_resolv_cb),
ae5d7c
                 gbl_resolv_flags.network_name);
ae5d7c
   gtk_widget_set_tooltip_text(n_resolv_cb, "Perform network layer name resolution while capturing.");
ae5d7c
-  gtk_box_pack_start(GTK_BOX (resolv_vb), n_resolv_cb, TRUE, TRUE, 0);
ae5d7c
+  gtk_box_pack_start(GTK_BOX (resolv_vb), n_resolv_cb, FALSE, TRUE, 0);
ae5d7c
 
ae5d7c
   t_resolv_cb = gtk_check_button_new_with_mnemonic(
ae5d7c
                 "Resolve _transport-layer name");
ae5d7c
@@ -5219,7 +5215,7 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
                 gbl_resolv_flags.transport_name);
ae5d7c
   gtk_widget_set_tooltip_text(t_resolv_cb,
ae5d7c
     "Perform transport layer name resolution while capturing.");
ae5d7c
-  gtk_box_pack_start(GTK_BOX (resolv_vb), t_resolv_cb, TRUE, TRUE, 0);
ae5d7c
+  gtk_box_pack_start(GTK_BOX (resolv_vb), t_resolv_cb, FALSE, TRUE, 0);
ae5d7c
 
ae5d7c
   e_resolv_cb = gtk_check_button_new_with_mnemonic(
ae5d7c
                 "Use _external network name resolver");
ae5d7c
@@ -5227,7 +5223,7 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
ae5d7c
                 gbl_resolv_flags.use_external_net_name_resolver);
ae5d7c
   gtk_widget_set_tooltip_text(e_resolv_cb,
ae5d7c
                 "Use the (system's) configured name resolver (e.g., DNS) to resolve network names.");
ae5d7c
-  gtk_box_pack_start(GTK_BOX (resolv_vb), e_resolv_cb, TRUE, TRUE, 0);
ae5d7c
+  gtk_box_pack_start(GTK_BOX (resolv_vb), e_resolv_cb, FALSE, TRUE, 0);
ae5d7c
 
ae5d7c
   /* Button row: "Start", "Cancel" and "Help" buttons */
ae5d7c
   bbox = dlg_button_row_new(WIRESHARK_STOCK_CAPTURE_START, GTK_STOCK_CLOSE, GTK_STOCK_HELP, NULL);