Re: load trouble

"Kurt V. Hindenburg" <[email protected]>
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
On Thursday 25 May 2006 08:07, pierluigi petrelli wrote:
| static void load_plugin_config(gchar *arg) {
|   gchar *arg2;
|
|         //printf("arg = %c\n",arg);
|         printf("\n\naa\n\n\n\n\n");
|         printf("carica\n");
|
| }

Hello,
  I would suggest looking at the demos.... in demo1.c you'll see:

  /* When GKrellM is started up, load_plugin_config() is called if any
  |  config lines for this plugin are found.  The lines must have been
  |  saved by save_plugin_config().  gkrellm_load_chartconfig() must
  |  have the address of a ChartConfig struct pointer.  At this point, the
  |  pointer is almost always NULL and the function will allocate a
  |  ChartConfig struct and update the pointer.  The struct will be
  |  initialized with values from the config line.
  */

http://members.dslextreme.com/users/billw/gkrellm/Plugins/gkrellm2-demos.tar.gz

  Regards,
       Kurt

_______________________________________________
Gkrellm mailing list
[email protected]
http://ninja.linux-phreak.biz/mailman/listinfo/gkrellm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.