Commit 0fa462e8 authored by Cheng Sun's avatar Cheng Sun Committed by Jean-Baptiste Kempf

VlcPluginGtk: Fix toolbar failing to show properly on Firefox

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 797af8ba
......@@ -125,6 +125,8 @@ void VlcPluginGtk::set_toolbar_visible(bool yes)
gtk_widget_hide(toolbar);
gtk_container_remove(GTK_CONTAINER(parent_vbox), toolbar);
}
resize_windows();
gtk_container_resize_children(GTK_CONTAINER(parent));
is_toolbar_visible = yes;
}
......
......@@ -351,6 +351,7 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
} else {
if (window->window == curr_window.window) {
/* resize / move notification */
p_plugin->setWindow(*window);
p_plugin->resize_windows();
} else {
/* plugin parent window was changed, notify plugin about it */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment