summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/gtk_plugin_container.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/plugins/gtk_plugin_container.h')
-rw-r--r--webkit/glue/plugins/gtk_plugin_container.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/webkit/glue/plugins/gtk_plugin_container.h b/webkit/glue/plugins/gtk_plugin_container.h
index bde5db6..eed6b94 100644
--- a/webkit/glue/plugins/gtk_plugin_container.h
+++ b/webkit/glue/plugins/gtk_plugin_container.h
@@ -10,9 +10,8 @@
// directly, so we need a subclass of GtkSocket that sidesteps the
// size_request handler.
//
-// The custom size_request handler just reports the allocation, so it's
-// the owner's responsibility to call gtk_widget_size_allocate() with the
-// proper size.
+// The custom size_request handler just reports the size set by
+// gtk_plugin_container_set_size.
typedef struct _GtkWidget GtkWidget;
@@ -21,4 +20,7 @@ typedef struct _GtkWidget GtkWidget;
// This is a GtkSocket subclass; see its documentation for available methods.
GtkWidget* gtk_plugin_container_new();
+// Sets the size of the GtkPluginContainer.
+void gtk_plugin_container_set_size(GtkWidget *widget, int width, int height);
+
#endif // WEBKIT_GLUE_PLUGINS_GTK_PLUGIN_CONTAINER_H_