Blame wireshark-0020-Something-went-wrong-with-the-backport-of-r53608-r53.patch

b23552
From: Chris Maynard <Christopher.Maynard@GTECH.COM>
b23552
Date: Wed, 18 Dec 2013 16:31:29 +0000
b23552
Subject: [PATCH] Something went wrong with the backport of r53608 + r53611. 
b23552
 Fix it.
b23552
b23552
svn path=/trunk-1.10/; revision=54225
b23552
b23552
diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c
b23552
index 44d5652..db74289 100644
b23552
--- a/ui/gtk/capture_dlg.c
b23552
+++ b/ui/gtk/capture_dlg.c
b23552
@@ -1019,7 +1019,7 @@ guint32 value)
b23552
     if (value > (((guint32)G_MAXINT + 1) / 1000)) {
b23552
         return 0;
b23552
     } else {
b23552
-    return value;
b23552
+        return value;
b23552
     }
b23552
   case(SIZE_UNIT_MEGABYTES):
b23552
     if (value > (((guint32)G_MAXINT + 1) / (1000 * 1000))) {
b23552
@@ -3257,13 +3257,11 @@ static void promisc_mode_callback(GtkToggleButton *button, gpointer d _U_)
b23552
   GtkTreeIter        iter;
b23552
   GtkTreeView       *if_cb;
b23552
   GtkTreeModel      *model;
b23552
-  gboolean           enabled = FALSE, set;
b23552
+  gboolean           enabled = FALSE;
b23552
   interface_t        device;
b23552
   interface_options  interface_opts;
b23552
   guint              i;
b23552
 
b23552
-  set = gtk_toggle_button_get_active(button);
b23552
-  gtk_toggle_button_set_active(button, (set?FALSE:TRUE));
b23552
   if (gtk_toggle_button_get_active(button))
b23552
     enabled = TRUE;
b23552
 
b23552
@@ -4489,7 +4487,9 @@ update_properties_all(void)
b23552
   /* If all selected interfaces are in promiscuous mode, check the global
b23552
      "promiscuous mode" checkbox, otherwise un-check it. */
b23552
   promisc_b = (GtkWidget *)g_object_get_data(G_OBJECT(cap_open_w), E_CAP_PROMISC_KEY_ALL);
b23552
+  g_signal_handler_block(promisc_b, promisc_all_handler_id);
b23552
   gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(promisc_b), promisc_all);
b23552
+  g_signal_handler_unblock(promisc_b, promisc_all_handler_id);
b23552
 
b23552
   /* If all selected interfaces have the same filter string, set the
b23552
      global filter string to it. */
b23552
@@ -5315,7 +5315,7 @@ fprintf(stderr, "Adding the default filter \"%s\"???\n", global_capture_opts.def
b23552
 
b23552
   window_get_geometry(top_level, &tl_geom);
b23552
   gtk_window_set_default_size(GTK_WINDOW(cap_open_w), tl_geom.width * 8 / 10, -1);
b23552
-  
b23552
+
b23552
   gtk_widget_show_all(cap_open_w);
b23552
   window_present(cap_open_w);
b23552
 
b23552
@@ -5356,7 +5356,7 @@ capture_start_cb(GtkWidget *w _U_, gpointer d _U_)
b23552
     }
b23552
     success = capture_dlg_prep(cap_open_w);
b23552
     if (success)
b23552
-    window_destroy(GTK_WIDGET(cap_open_w));
b23552
+      window_destroy(GTK_WIDGET(cap_open_w));
b23552
     if (!success)
b23552
       return;   /* error in options dialog */
b23552
   }
b23552
@@ -5712,7 +5712,7 @@ create_and_fill_model(GtkTreeView *view)
b23552
         device.snaplen = WTAP_MAX_PACKET_SIZE;
b23552
         device.has_snaplen = FALSE;
b23552
       }
b23552
-      
b23552
+
b23552
       if (device.has_snaplen) {
b23552
         snaplen_string = g_strdup_printf("%d", device.snaplen);
b23552
       } else {
b23552
@@ -5725,7 +5725,7 @@ create_and_fill_model(GtkTreeView *view)
b23552
         device.buffer = buffer;
b23552
       } else {
b23552
         device.buffer = DEFAULT_CAPTURE_BUFFER_SIZE;
b23552
-      } 
b23552
+      }
b23552
 #endif
b23552
       global_capture_opts.all_ifaces = g_array_remove_index(global_capture_opts.all_ifaces, i);
b23552
       g_array_insert_val(global_capture_opts.all_ifaces, i, device);