diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2013-01-08 04:30:32 -0800 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2013-01-19 16:04:11 -0800 |
commit | b98442b260d6568f59ba03e83c0e8711f3371280 (patch) | |
tree | c676b79542d2090317790bc0a3bbcd1bff6b005e /src | |
parent | c441b591c7f93824bc87d5b2b0688f7fea27e863 (diff) |
Set appropriate size request on plug creation
When the plug is out of process, it doesn't get appropriate allocations
from the socket. Firefox seems to handle this fine, but let's just make
use of the size information it's provided us.
Diffstat (limited to 'src')
-rw-r--r-- | src/evbp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -209,6 +209,8 @@ evbp_set_window(NPP instance, NPWindow *window) g_debug("plugging into window id %lu", (unsigned long)id); priv->plug = gtk_plug_new(id); + gtk_widget_set_size_request(priv->plug, window->width, + window->height); gtk_container_add(GTK_CONTAINER(priv->plug), priv->viewer); gtk_widget_show(priv->plug); } |