[vlc-commits] GTK: make toolbar disabled if no media_player
Cheng Sun
git at videolan.org
Mon Jan 23 19:28:35 CET 2012
npapi-vlc | branch: master | Cheng Sun <chengsun9 at gmail.com> | Sat Jan 21 11:53:20 2012 +0000| [b123258b220a8d5e7fdab623b7ffa97576faa121] | committer: Cheng Sun
GTK: make toolbar disabled if no media_player
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=b123258b220a8d5e7fdab623b7ffa97576faa121
---
npapi/vlcplugin_gtk.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/npapi/vlcplugin_gtk.cpp b/npapi/vlcplugin_gtk.cpp
index c498b4d..7f608db 100644
--- a/npapi/vlcplugin_gtk.cpp
+++ b/npapi/vlcplugin_gtk.cpp
@@ -345,6 +345,9 @@ void VlcPluginGtk::update_controls()
g_object_unref(toolbutton);
}
+ /* toolbar sensitivity */
+ gtk_widget_set_sensitive(toolbar, libvlc_media_player != NULL);
+
/* time slider */
if (!libvlc_media_player ||
!libvlc_media_player_is_seekable(libvlc_media_player)) {
More information about the vlc-commits
mailing list