cases.
svn path=/trunk/; revision=53597
hide_interface(g_strdup(new_hide));
/* Refresh all places that are displaying an interface list
- that includes local interfaces. */
+ that includes local interfaces, in case we've changed
+ a property of the interface list that changes how it's
+ displayed. */
refresh_local_interface_lists();
/* save changes to the preferences file */
update_properties_all();
}
+/*
+ * We've been asked to rescan the system looking for interfaces.
+ */
static void
rescan_local_cb(GtkWidget *button _U_, gpointer *data _U_)
{
if (present == up)
return;
+ /*
+ * We've been told that there's a new interface or that an old
+ * interface is gone; reload the list and refresh all places
+ * that are displaying the list.
+ */
refresh_local_interface_lists();
}
cfilter_dialog_cb(NULL /* GtkWidget *w _U_ */);
}
+/*
+ * We've been asked to rescan the system looking for interfaces.
+ */
static void
refresh_interfaces_action_cb(GtkAction *action _U_, gpointer user_data _U_)
{
gtk_tree_selection_set_select_function(GTK_TREE_SELECTION(entry), on_selection_changed, (gpointer)&changed, NULL);
}
+/*
+ * We've been asked to rescan the system looking for interfaces.
+ */
static void
refresh_interfaces_cb(GtkWidget *w _U_, gpointer user_data _U_)
{
}
/* Update everything that shows an interface list that includes
- local interfaces. */
+ local interfaces, as we may have changed something that
+ affects how those lists are displayed. */
refresh_local_interface_lists();
/* Now nuke this window. */