Commit b123258b authored by Cheng Sun's avatar Cheng Sun

GTK: make toolbar disabled if no media_player

parent 531b372e
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment