[vlc-commits] GTK: allow return from fullscreen by clicking on embedded area
Cheng Sun
git at videolan.org
Fri Jan 13 12:43:32 CET 2012
npapi-vlc | branch: master | Cheng Sun <chengsun9 at gmail.com> | Tue Jan 10 22:09:09 2012 +0000| [44d1dc6ba15b929d008ac9bd66cf12b1de7d5e5e] | committer: Jean-Baptiste Kempf
GTK: allow return from fullscreen by clicking on embedded area
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=44d1dc6ba15b929d008ac9bd66cf12b1de7d5e5e
---
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 4499c94..ea8bad4 100644
--- a/npapi/vlcplugin_gtk.cpp
+++ b/npapi/vlcplugin_gtk.cpp
@@ -365,6 +365,10 @@ bool VlcPluginGtk::create_windows()
parent = gtk_plug_new(socket);
gtk_widget_modify_bg(parent, GTK_STATE_NORMAL, &color_bg);
+ gtk_widget_add_events(parent,
+ GDK_BUTTON_PRESS_MASK
+ | GDK_BUTTON_RELEASE_MASK);
+ g_signal_connect(G_OBJECT(parent), "button-press-event", G_CALLBACK(video_button_handler), this);
parent_vbox = gtk_vbox_new(false, 0);
gtk_container_add(GTK_CONTAINER(parent), parent_vbox);
More information about the vlc-commits
mailing list