Add method to query number of columns in a GraphModel
A dzl_graph_view_model_get_n_columns
method would be useful to find out how many columns are in a given graph view model.
This way the DzlCpuGraph shouldn't have to call g_get_num_processors
, but could use the get_n_columns call (as the model already knows the number of cpus, as it already added one column per CPU).
This would make sense for users of the charts (e.g. System Monitor, Usage) to not have to write a custom GraphView and GraphModel, in most cases for time-based graphs (e.g. memory, network) it would be sufficient to provide a custom GraphModel implementation.
Thoughts?