To open applets without the control panel, you use the osso_cp_plugin_execute function of libosso. However, you need to gtk_init() and have a GLib/GTK+ mainloop running as you're running GTK+ applets directly in your own process