Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:monitor-plugin [2013/03/19 21:24]
hjudt [Optional]
dev:monitor-plugin [2013/03/23 13:45] (current)
nick [Sample API 2]
Line 95: Line 95:
   * Decision needed: Font size and color selectable in the panel or in the plugin? ​ --- //​[[h.judt@gmx.at|Harald Judt]] 2013/03/19 16:10//   * Decision needed: Font size and color selectable in the panel or in the plugin? ​ --- //​[[h.judt@gmx.at|Harald Judt]] 2013/03/19 16:10//
   * A recommendation:​ we should avoid "​setters",​ "​updaters"​ etc. in Monitor-logic API in favor of "​getters"​ and signals - this makes both sides of the API deal with only its own tasks.   * A recommendation:​ we should avoid "​setters",​ "​updaters"​ etc. in Monitor-logic API in favor of "​getters"​ and signals - this makes both sides of the API deal with only its own tasks.
-  * Currently without a use-case, but perhaps be useful: Support reacting to external signals, e.g. via D-Bus? ​ --- //​[[h.judt@gmx.at|Harald Judt]] 2013/03/19 16:18//+  * Currently without a use-case, but perhaps ​it could be useful: Support reacting to external signals, e.g. via D-Bus? ​ --- //​[[h.judt@gmx.at|Harald Judt]] 2013/03/19 16:18//
   * Not sure this belongs here, but... as an alternative to making a plugin "​small",​ could it somehow be achieved that a plugin can occupy more than one row but still have the "​small"​ properties and so share space with another plugin? ​ --- //​[[h.judt@gmx.at|Harald Judt]] 2013/03/19 21:13//   * Not sure this belongs here, but... as an alternative to making a plugin "​small",​ could it somehow be achieved that a plugin can occupy more than one row but still have the "​small"​ properties and so share space with another plugin? ​ --- //​[[h.judt@gmx.at|Harald Judt]] 2013/03/19 21:13//
  
Line 231: Line 231:
   ​   ​
  
 +====== Sample API 2 ======
 +
 +http://​users.xfce.org/​~nick/​proposal/​indicator-api/​
 +
 +  * Idea is the plugin shows preferences for the widgets:
 +    * set their position, therefore the static names for both multiple items (in case of example the sysload plugin), but also the position of the indicator items (by default icon/​progressbar,​ label).
 +    * Plugins can pack a widget (vbox or a single frame) for the plugin specific settings.
 +    * Color settings for progressbar and label.
 +    * Graph appearance.
 +  * An option would be a xfce_panel_indicator_item_add_width (XfcePanelIndicatorItem *item, const gchar *name, const gchar *display_name,​ GtkWidget *widget); to pack custom widgets. No idea if that is really useful and would affect the '​standardization'​ we try to accomplish here.
 +  * Plugin is responsible for the updates (so its own gdk timeout).
 +  * A graph widget could be a nice addition. It would at least merge the cpugraph and sysload plugins, making them both more functional (also graph of memory/swap usage), but also the netload and diskperf plugin would benefit. Bit of fancy cairo and transparency wouldn'​t hurt here :-).
 +    * Xfce4-taskmanager has a nice widget already.