add: gtk_widget_set_sensitive (widget, caps); widget = glade_xml_get_widget (totem->xml, "tmw_volume_up_menu_item"); gtk_widget_set_sensitive (widget, caps); widget = glade_xml_get_widget (totem->xml, "tmw_volume_down_menu_item");
context: totem_action_set_mrl_with_warning (Totem *totem, const char *mrl,		gboolean warn){	GtkWidget *widget;	gboolean retval = TRUE;	if (totem->mrl != NULL)	{		g_free (totem->mrl);		totem->mrl = NULL;		bacon_video_widget_close (totem->bvw);	}	/* Reset the properties and wait for the signal*/	bacon_video_widget_properties_reset		(BACON_VIDEO_WIDGET_PROPERTIES (totem->properties));	if (mrl == NULL)	{		retval = FALSE;		/* Play/Pause */		gtk_widget_set_sensitive (totem->pp_button, FALSE);		widget = glade_xml_get_widget (totem->xml, "tmw_play_menu_item");		gtk_widget_set_sensitive (widget, FALSE);		widget = glade_xml_get_widget (totem->xml_popup, "trcm_play");		gtk_widget_set_sensitive (widget, FALSE);		/* Seek bar and seek buttons */		update_seekable (totem, FALSE);		/* Volume */		widget = glade_xml_get_widget (totem->xml, "tcw_volume_button");		gtk_widget_set_sensitive (widget, FALSE);		widget = glade_xml_get_widget (totem->xml_popup, "trcm_volume_up");		gtk_widget_set_sensitive (widget, FALSE);		widget = glade_xml_get_widget (totem->xml_popup, "trcm_volume_down");		gtk_widget_set_sensitive (widget, FALSE);		/* Control popup */		gtk_widget_set_sensitive (totem->fs_seek, FALSE);		gtk_widget_set_sensitive (totem->fs_pp_button, FALSE);		widget = glade_xml_get_widget (totem->xml,				"tcw_previous_button");		gtk_widget_set_sensitive (widget, FALSE);		widget = glade_xml_get_widget (totem->xml, "tcw_next_button"); 		gtk_widget_set_sensitive (widget, FALSE);		widget = glade_xml_get_widget (totem->xml_popup, "trcm_next_chapter");		gtk_widget_set_sensitive (widget, FALSE);		widget = glade_xml_get_widget (totem->xml_popup, "trcm_previous_chapter");		gtk_widget_set_sensitive (widget, FALSE);		widget = glade_xml_get_widget (totem->xml, "tcw_volume_hbox");		gtk_widget_set_sensitive (widget, FALSE);		/* Take a screenshot */		widget = glade_xml_get_widget (totem->xml,				"tmw_take_screenshot_menu_item");		gtk_widget_set_sensitive (widget, FALSE);		/* Set the logo */		bacon_video_widget_set_logo_mode (totem->bvw, TRUE);		bacon_video_widget_set_logo (totem->bvw, LOGO_PATH);		update_mrl_label (totem, NULL);	} else {		gboolean caps;		char *subtitle_uri;		GError *err = NULL;		if (bacon_video_widget_get_logo_mode (totem->bvw) != FALSE)		{			bacon_video_widget_close (totem->bvw);			bacon_video_widget_set_logo_mode (totem->bvw, FALSE);		}		subtitle_uri = totem_uri_get_subtitle_uri (mrl);		retval = bacon_video_widget_open_with_subtitle (totem->bvw,				mrl, subtitle_uri, &err);		totem->mrl = g_strdup (mrl);		/* Play/Pause */		gtk_widget_set_sensitive (totem->pp_button, TRUE);		widget = glade_xml_get_widget (totem->xml, "tmw_play_menu_item");		gtk_widget_set_sensitive (widget, TRUE);		widget = glade_xml_get_widget (totem->xml_popup, "trcm_play");		gtk_widget_set_sensitive (widget, TRUE);		gtk_widget_set_sensitive (totem->fs_pp_button, TRUE);		/* Seek bar */		update_seekable (totem,				bacon_video_widget_is_seekable (totem->bvw));		/* Volume */		caps = bacon_video_widget_can_set_volume (totem->bvw);		widget = glade_xml_get_widget (totem->xml, "tcw_volume_button");		gtk_widget_set_sensitive (widget, caps);		widget = glade_xml_get_widget (totem->xml, "tcw_volume_hbox");		gtk_widget_set_sensitive (widget, caps);		widget = glade_xml_get_widget (totem->xml_popup, "trcm_volume_up");                gtk_widget_set_sensitive (widget, caps);		widget = glade_xml_get_widget (totem->xml_popup, "trcm_volume_down");		gtk_widget_set_sensitive (widget, caps);		/* Take a screenshot */		widget = glade_xml_get_widget (totem->xml,				"tmw_take_screenshot_menu_item");		gtk_widget_set_sensitive (widget, retval);		/* Set the playlist */		totem_playlist_set_playing (totem->playlist, retval);		if (retval == FALSE && warn != FALSE)		{			char *msg, *disp;			disp = totem_uri_escape_for_display (totem->mrl);			msg = g_strdup_printf(_("Totem could not play '%s'."), disp);			g_free (disp);			totem_action_error (msg, err->message, totem);			g_free (msg);		}		if (retval == FALSE)		{			g_error_free (err);			g_free (totem->mrl);			totem->mrl = NULL;			play_pause_set_label (totem, STATE_STOPPED);		}	}	update_buttons (totem);	update_media_menu_items (totem);	widget = glade_xml_get_widget (totem->xml, "tmw_properties_menu_item");	gtk_widget_set_sensitive (widget, retval);	return retval;}