npapi-vlc | branch: master | Cheng Sun <[email protected]> | Sat Jan 21 
11:53:20 2012 +0000| [e5e345d71b7bedf316d1f71adae216dc7c1f1bcc] | committer: 
Cheng Sun

GTK: make toolbar disabled if no media_player

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

 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)) {

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

Reply via email to