[fbpanel] How to combine chart and meter components in a single plugin?
Brought to you by:
aanatoly
From: José R. M. <j.r...@gm...> - 2011-09-30 20:18:59
|
Hello. I want to enhance the fbpanel cpu plugin by optionally showing each cpu (core) usage individually. The cpu plugin would have one chart component to display the total cpu usage, and n (where n is the number of cpus) meter components, that would display individual cpu usage. The user would be able to set (in the configuration file) which ones he wants: only the total cpu usage, only all individual cpu usages, or both. In order to implement it, I want the cpu plugin to have a horizontal box where the chart and/or meter components would be added. The problem is that currently chart and meter are plugins themselves. So I do not know how to add them as components in a box. Is it possible? Maybe chart and meter should be normal Gtk+ widgets, and then they could be used as components of other Gtk+ container widgets. Any comments? Romildo |