Skip to content

Commit 209e818

Browse files
committed
Improve deprecation message for old egui::menu
1 parent 6e34152 commit 209e818

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/egui/src/menu.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![allow(deprecated)]
2-
//! Menu bar functionality (very basic so far).
2+
//! Deprecated menu API - Use [`crate::containers::menu`] instead.
33
//!
44
//! Usage:
55
//! ```
@@ -88,6 +88,7 @@ fn set_menu_style(style: &mut Style) {
8888
/// The menu bar goes well in a [`crate::TopBottomPanel::top`],
8989
/// but can also be placed in a [`crate::Window`].
9090
/// In the latter case you may want to wrap it in [`Frame`].
91+
#[deprecated = "Use `crate::containers::menu::Bar` instead"]
9192
pub fn bar<R>(ui: &mut Ui, add_contents: impl FnOnce(&mut Ui) -> R) -> InnerResponse<R> {
9293
ui.horizontal(|ui| {
9394
set_menu_style(ui.style_mut());

0 commit comments

Comments
 (0)