mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
add history submenu
This commit is contained in:
parent
7ebcbde01b
commit
2d81cf7954
4 changed files with 49 additions and 36 deletions
|
|
@ -1,7 +1,6 @@
|
|||
use adw::{TabPage, TabView};
|
||||
use gtk::{
|
||||
gio::{Icon, MenuModel},
|
||||
glib::GString,
|
||||
prelude::IsA,
|
||||
};
|
||||
|
||||
|
|
@ -65,18 +64,6 @@ impl Widget {
|
|||
|
||||
// Getters
|
||||
|
||||
pub fn current_page_keyword(&self) -> Option<GString> {
|
||||
let page = self.gobject.selected_page()?;
|
||||
let id = page.keyword()?;
|
||||
Some(id)
|
||||
} // @TODO remove as deprecated
|
||||
|
||||
/// Get **keyword** for page at given position, `None` for selected page
|
||||
/// * return `None` if requested page or selected not found
|
||||
pub fn page_keyword(&self, position: Option<i32>) -> Option<GString> {
|
||||
self.page(position)?.keyword()
|
||||
}
|
||||
|
||||
/// Get tab page by position, `None` for selected page
|
||||
/// * return `None` if requested or selected page not found
|
||||
pub fn page(&self, position: Option<i32>) -> Option<TabPage> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue