npapi-vlc | branch: master | Cheng Sun <[email protected]> | Tue Jan  3 
21:16:44 2012 +0000| [eff390542f72cdefc356e7e3dbfd42895e9905c3] | committer: 
Jean-Baptiste Kempf

GTK: Actually destroy our GTK windows when we are told to

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

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

diff --git a/npapi/vlcplugin_gtk.cpp b/npapi/vlcplugin_gtk.cpp
index 37d2412..7cba903 100644
--- a/npapi/vlcplugin_gtk.cpp
+++ b/npapi/vlcplugin_gtk.cpp
@@ -445,6 +445,10 @@ bool VlcPluginGtk::destroy_windows()
     /* destroy x window */
     XDestroyWindow(display, video_xwindow);
 
+    /* destroy GTK top-levels */
+    gtk_widget_destroy(parent);
+    gtk_widget_destroy(fullscreen_win);
+
     /* free colors */
     Colormap colormap = DefaultColormap(display, DefaultScreen(display));
     XFreeColors(display, colormap, &bg_color.pixel, 1, 0);

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to