summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2013-01-08 04:30:32 -0800
committerDan Nicholson <dbn.lists@gmail.com>2013-01-19 16:04:11 -0800
commitb98442b260d6568f59ba03e83c0e8711f3371280 (patch)
treec676b79542d2090317790bc0a3bbcd1bff6b005e
parentc441b591c7f93824bc87d5b2b0688f7fea27e863 (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.
-rw-r--r--src/evbp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/evbp.c b/src/evbp.c
index 849e3fc..fab3838 100644
--- a/src/evbp.c
+++ b/src/evbp.c
@@ -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);
}