plugin writing problem

Jasper Huijsmans jasper at xfce.org
Wed Dec 21 11:10:24 CET 2005


> Adriano Winter Bess schreef:
...
>> What I'd like to know is if there's any other way I can get argc and
>> argv using the XfcePanelPlugin API (I couldn't find it) since
>> xfce_external_panel_plugin_new gets argc and argv as parameters. Any
>> sugestions are welcomed.
>>

Ooh, here's a thought: what hapens if you 'fake' the values?

static void
myplugin_construct (XfcePanelPlugin *plugin)
{
   int argc;
   char *argv[2];

   argc=0;
   argv[0] = "myplugin";
   argv[1] = NULL;

   bonobo_init (&argc, &argv);

   /* ... */
}

Would that work?

	Jasper



More information about the Xfce4-dev mailing list