[vlc-commits] GTK: Actually destroy our GTK windows when we are told to
Cheng Sun
git at videolan.org
Thu Jan 5 03:03:06 CET 2012
npapi-vlc | branch: master | Cheng Sun <chengsun9 at gmail.com> | 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 <jb at videolan.org>
> 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);
More information about the vlc-commits
mailing list