[webkit-gtk] Showing and hiding widgets inside a plugin

Robert Schroll rschroll at gmail.com
Mon Jun 3 22:28:37 PDT 2013

Hi all,

I'm working on a program that embeds a somewhat complex widget inside 
of a WebView, using the create-plugin-widget signal.  Everything seems 
to be working fine, except that the UI isn't updated when widgets are 
added or removed from the plugin container.  Only when the plugin 
container is resized is everything updated.

Attached is some test-case code.  It creates a Window that contains a 
WebView which contains an <embed> into which goes the rest of the GUI.  
There are two buttons.  The top one adds a label directly below it.  
However, clicking on it appears to do nothing.  Only when the window is 
resized does the label appear.  (And this only happens because the 
<embed> is set to a percentage size, so it resizes with the window.)  
The bottom one alternately shows and hides the label below itself.  The 
visibility of the label is immediately updated with clicks, but the 
space for the label isn't removed/added until the window is resized.

I don't think I'm doing anything wrong GTK-wise.  (Please point it out 
if I am.)  This works as expected when the widgets are put directly in 
the GtkWindow, instead of the WebView.  Is this a bug in webkitgtk?  Or 
are additional method calls needed when adding or removing widgets from 
a plugin?  If matters, I'm using webkitgtk 1.10.2 and Gtk 3.4.2.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugin3.c
Type: text/x-csrc
Size: 2606 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20130604/9da2e3a4/attachment.bin>

More information about the webkit-gtk mailing list