[vlc-commits] VlcPluginGtk: Fix toolbar failing to show properly on Firefox

Cheng Sun git at videolan.org
Wed Dec 28 19:15:55 CET 2011


npapi-vlc | branch: master | Cheng Sun <chengsun9 at gmail.com> | Tue Dec 27 18:14:43 2011 +0000| [0fa462e80123a1348bf660eb0552f6eeb500e1db] | committer: Jean-Baptiste Kempf

VlcPluginGtk: Fix toolbar failing to show properly on Firefox

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=0fa462e80123a1348bf660eb0552f6eeb500e1db
---

 npapi/vlcplugin_gtk.cpp |    2 ++
 npapi/vlcshell.cpp      |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/npapi/vlcplugin_gtk.cpp b/npapi/vlcplugin_gtk.cpp
index bba1493..ed9135b 100644
--- a/npapi/vlcplugin_gtk.cpp
+++ b/npapi/vlcplugin_gtk.cpp
@@ -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;
 }
 
diff --git a/npapi/vlcshell.cpp b/npapi/vlcshell.cpp
index 8190f79..79fa987 100644
--- a/npapi/vlcshell.cpp
+++ b/npapi/vlcshell.cpp
@@ -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 */



More information about the vlc-commits mailing list