<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Not every item is pluggable yet.  Look at the user interface, keyboard,<br>
or mouse settings dialogs, their main.c files.  Those are pluggable,<br>
and have a special case to be run either in a GtkPlug or a GtkWindow.<br>
<br>
<br>
<br>
Cheers<br>
Mike<br>
<br>
</blockquote><div><br>Actually i tried the mouse settings dialog, and it's also  popping up a separate window, in the code i didn't see anything like a GtkPlug! <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
<br>
Message: 6<br>
<br>
<br>
You need:<br>
<br>
  1. X-XfcePluggable=true in the .desktop entry<br>
  2. Provide a --socket-id=<SOCKET ID> command line parameter that<br>
     takes an integer.<br>
  3. If the --socket-id parameter is defined, you need to do:<br>
<br>
       GtkWidget *plug;<br>
       GtkWidget *plug_child;<br>
<br>
       plug = gtk_plug_new (socket_id);<br>
       g_signal_connect (plug, 'delete-event',<br>
                         G_CALLBACK (gtk_main_quit), NULL);<br>
       gtk_widget_show (plug);<br>
<br>
       plug_child = get_the_dialog_contents_from_somewhere ();<br>
       gtk_widget_reparent (plug_child, plug);<br>
<br>
That's all. Optionally, you can add<br>
<br>
   4. X-XfceHelpFile=/absolute/filename/to/the/help/file<br>
<br>
to the .desktop entry if you want a help button. The help file usually<br>
would be a HTML file or something like that.<br>
<br>
  - Jannis<br></blockquote><div><br>Thanks for the detailed information, i'll try that.<br><br>Since you are speaking about help file, i started yesterday looking about what is done in xfce4-panel and xfdesktop,<br>but i'm not that used to how writing a documentation for now i have xfce_exec("xfhelp4 xfce4-power-manager.html", FALSE, FALSE, NULL);<br>
wish displays a blank page when one clicks on the help button of the settings dialog, but from my finding i see that i need to write an xml file from it i can generate html page like:<br><br></div>xmlto  -x ../xfce-nochunk.xsl --skip-validation  html xfce4-power-manager.xml.<br>
<br>is that correct? <br>is there is any good tool to write the xml file ? i'm using bluefish!<br></div><br>Many thanks,<br>Ali<br>