Re: Unplugging GtkPlug from GtkSocket



Am Wed, 15 Apr 2009 00:19:38 +0530
schrieb Ravi Kasibhatla <kasibhatla ravi gmail com>:

> Hi all,
> 
> I am creating a plugin for a browser based on webkit, using the xembed
> protocol i.e. using GtkSocket & GtkPlug. I have been successfully
> able to create the plugin & show the content required on the plugin
> window, but I am facing problem when I try to delete the plugin. At
> the time of deletion of plugin, I want to delete the plug created, so
> as to free the resources allocated to the plug while creating plugin.
> Can anyone tell me how to do it, including how to do the cleanup on
> the GtkSocket side created in the browser?
> 
> It would be of great help if anyone could let me know on this ASAP,
> as I am in urgent need of this information. I tried to find any
> resource telling more on XEmbed protocol usage and the cleanup
> process when using XEmbed protocol on the web, but couldn't get
> anything concrete help on this topic.
> 
> Thanks & Regards,
> Ravi Phaneendra K

Hey Ravi,

so what problem are you facing exactly? From what I understand you have
an nsplugin that creates a socket and loads a plug from somewhere.
Please correct me if I misunderstand the scenario. And I assume you are
in charge of the socket and plug code. So both are GtkWidgets which
have the usual finalize, dispose and destroy, plus the "plug-removed"
signal on GtkSocket.

I haven't used this in a while since it is somewhat messy, so it would
be good if you could provide more context about what you are doing and
what is not working.

Yours,
    Christian


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]