On 10/12/15 21:04, Rene Engelhard wrote: > Hi, > > On Thu, Dec 10, 2015 at 07:19:32PM +0100, Emilio Pozuelo Monfort wrote: >> system, and while at that I noticed that libreoffice-core and >> libreoffice-evolution depend on libgtk2.0-0. >> >> Binary file pluginapp.bin matches >> Binary file libpllo.so matches > > This is > http://cgit.freedesktop.org/libreoffice/core/tree/extensions/source/plugin/unx?h=libreoffice-5-1 > and thus > http://cgit.freedesktop.org/libreoffice/core/tree/extensions/Executable_pluginapp.bin.mk?h=libreoffice-5-1 > and > http://cgit.freedesktop.org/libreoffice/core/tree/extensions/Library_pl.mk?h=libreoffice-5-1. > > The (imho uneeded) "use npapi plugins inside LibreOffice" feature....
I didn't know about that. What plugins can be used inside LO? > Probably depending on gtk2 since "the browsers (read: firefox/icewasel)" do, > which is wrong noadays. But It uses gtk itself: Probably because some plugins use GTK+2 (e.g. Flash), hence the plugin process needs to use GTK+2 as well. > (sid)rene@frodo ..0.0.beta2/extensions/source/plugin/unx % grep -r gtk_ * > npnapi.cxx: pInst->pGtkWindow = > gtk_plug_new((GdkNativeWindow)reinterpret_cast<sal_uIntPtr>(pWindow->window)); > npnapi.cxx: gtk_widget_show( pInst->pGtkWindow ); > npnapi.cxx: pInst->pGtkWidget = gtk_socket_new(); > npnapi.cxx: gtk_widget_show( pInst->pGtkWidget ); > npnapi.cxx: gtk_container_add( > GTK_CONTAINER(pInst->pGtkWindow), pInst->pGtkWidget ); > npnapi.cxx: gtk_widget_show_all( pInst->pGtkWindow ); > npnapi.cxx: pInst->window.window = > reinterpret_cast<void *>(gtk_socket_get_id( GTK_SOCKET(pInst->pGtkWidget ) )); > npnapi.cxx: gtk_widget_set_size_request( > pInst->pGtkWidget, pWindow->width, pWindow->height ); > npnapi.cxx: gtk_window_resize( > GTK_WINDOW(pInst->pGtkWindow), pWindow->width, pWindow->height ); > npnapi.cxx: GdkScreen* pGdkScreen = gtk_widget_get_screen( > pInst->pGtkWidget ); > npwrap.cxx: gtk_init(&argc, &argv); > (sid)rene@frodo ..0.0.beta2/extensions/source/plugin/unx % > > No idea about whether the API used changed between gtk2 and gtk3... > >> Binary file libevoablo.so matches > > And this is the evolution ab thingy. Probably depending on gtk2 because > of evolution (which also changed). I mean, it doesn't use gtk directly afaics: > > (sid)rene@frodo ..ta2/connectivity/source/drivers/evoab2 % grep -r gtk_ * > 1 (sid)rene@frodo ..ta2/connectivity/source/drivers/evoab2 % > >> It'd be nice if those didn't depend on gtk2... no idea how hard that is or if >> upstream is already aware of that... > > I don't believe they are. > In fact, 5.1 will the first release even enabling gtk3 per default upstream > and the VCLPlug (-gtk3) is the first step. So.. > >> Let me know if I should report this upstream, I'm happy to do that. > > If you wanted to do that, that would be nice. Reported this as https://bugs.documentfoundation.org/show_bug.cgi?id=96398 Cheers, Emilio

