[vlc-commits] GTK: allow return from fullscreen by clicking on embedded area
Cheng Sun
git at videolan.org
Fri Jan 13 12:47:24 CET 2012
npapi-vlc | branch: master | Cheng Sun <chengsun9 at gmail.com> | Tue Jan 10 22:09:09 2012 +0000| [22c769a3abfa5c37ef3c63de4b2d6219bcee6b61] | 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=22c769a3abfa5c37ef3c63de4b2d6219bcee6b61
---
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 ee9aae0..fe0a01f 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