Commit fc1e7684 authored by William Jon McCann's avatar William Jon McCann Committed by William Jon McCann

Remove grab_focus calls. They steal focus away from the user who may be

2004-06-06  William Jon McCann  <mccann@jhu.edu>

	* src/netstat.c (netstat_protocol_tree_insert)
	(netstat_route_tree_insert, netstat_multicast_tree_insert):
	* src/traceroute.c (traceroute_foreach_with_tree):
	* src/scan.c (scan_define_model):
	* src/lookup.c (lookup_foreach_with_tree):
	* src/ping.c (ping_foreach_with_tree):
	Remove grab_focus calls.  They steal focus away from the user
	who may be typing in another tab.
parent 0bf0789b
2004-06-06 William Jon McCann <mccann@jhu.edu>
* src/netstat.c (netstat_protocol_tree_insert)
(netstat_route_tree_insert, netstat_multicast_tree_insert):
* src/traceroute.c (traceroute_foreach_with_tree):
* src/scan.c (scan_define_model):
* src/lookup.c (lookup_foreach_with_tree):
* src/ping.c (ping_foreach_with_tree):
Remove grab_focus calls. They steal focus away from the user
who may be typing in another tab.
2004-06-06 William Jon McCann <mccann@jhu.edu>
* src/gnome-nettool.glade: Use GtkProgressBar and GtkStatusBar.
......
......@@ -229,7 +229,6 @@ lookup_foreach_with_tree (Netinfo * netinfo, gchar * line, gint len,
path = gtk_tree_model_get_path (model, &iter);
gtk_tree_view_set_cursor (GTK_TREE_VIEW (widget),
path, NULL, FALSE);
gtk_widget_grab_focus (GTK_WIDGET (widget));
gtk_tree_path_free (path);
}
}
......
......@@ -338,7 +338,6 @@ netstat_protocol_tree_insert (GtkTreeView *widget, gchar *line)
gtk_tree_view_set_model (widget, model);
path = gtk_tree_model_get_path (model, &iter);
gtk_tree_view_set_cursor (widget, path, NULL, FALSE);
gtk_widget_grab_focus (GTK_WIDGET (widget));
gtk_tree_path_free (path);
}
}
......@@ -533,7 +532,6 @@ netstat_route_tree_insert (GtkTreeView *widget, gchar *line)
gtk_tree_view_set_model (widget, model);
path = gtk_tree_model_get_path (model, &iter);
gtk_tree_view_set_cursor (widget, path, NULL, FALSE);
gtk_widget_grab_focus (GTK_WIDGET (widget));
gtk_tree_path_free (path);
}
}
......@@ -694,7 +692,6 @@ netstat_multicast_tree_insert (GtkTreeView *widget, gchar *line)
gtk_tree_view_set_model (widget, model);
path = gtk_tree_model_get_path (model, &iter);
gtk_tree_view_set_cursor (widget, path, NULL, FALSE);
gtk_widget_grab_focus (GTK_WIDGET (widget));
gtk_tree_path_free (path);
}
}
......
......@@ -272,7 +272,6 @@ ping_foreach_with_tree (Netinfo * netinfo, gchar * line, gint len,
path = gtk_tree_model_get_path (model, &iter);
gtk_tree_view_set_cursor (GTK_TREE_VIEW (widget),
path, NULL, FALSE);
gtk_widget_grab_focus (GTK_WIDGET (widget));
gtk_tree_path_free (path);
rtt = g_ascii_strtod (data.srtt, NULL);
......
......@@ -261,7 +261,6 @@ scan_define_model (Netinfo * netinfo, scan_data data)
path = gtk_tree_model_get_path (model, &iter);
gtk_tree_view_set_cursor (GTK_TREE_VIEW (widget),
path, NULL, FALSE);
gtk_widget_grab_focus (GTK_WIDGET (widget));
gtk_tree_path_free (path);
}
......
......@@ -194,7 +194,6 @@ traceroute_foreach_with_tree (Netinfo * netinfo, gchar * line, gint len,
path = gtk_tree_model_get_path (model, &iter);
gtk_tree_view_set_cursor (GTK_TREE_VIEW (widget),
path, NULL, FALSE);
gtk_widget_grab_focus (GTK_WIDGET (widget));
gtk_tree_path_free (path);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment