void register_sorting_option(const int col, const Func& f) { set_column_order(col, {{ [f](int lhs, int rhs) { return f(lhs) < f(rhs); }, [f](int lhs, int rhs) { return f(lhs) > f(rhs); } }}); }
void nautilus_column_chooser_set_settings (NautilusColumnChooser *chooser, char **visible_columns, char **column_order) { g_return_if_fail (NAUTILUS_IS_COLUMN_CHOOSER (chooser)); g_return_if_fail (visible_columns != NULL); g_return_if_fail (column_order != NULL); set_visible_columns (chooser, visible_columns); set_column_order (chooser, column_order); list_changed (chooser); }
void caja_column_chooser_set_settings (CajaColumnChooser *chooser, char **visible_columns, char **column_order) { g_return_if_fail (CAJA_IS_COLUMN_CHOOSER (chooser)); g_return_if_fail (visible_columns != NULL); g_return_if_fail (column_order != NULL); set_visible_columns (chooser, visible_columns); set_column_order (chooser, column_order); list_changed (chooser); }