mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
implement tabs id features
This commit is contained in:
parent
09c08b2b6f
commit
06cfd72c62
4 changed files with 30 additions and 29 deletions
|
|
@ -29,17 +29,10 @@ impl Widget {
|
|||
}
|
||||
|
||||
// Getters
|
||||
pub fn current_name(&self) -> Option<GString> {
|
||||
pub fn current_page_keyword(&self) -> Option<GString> {
|
||||
let page = self.gobject.selected_page()?;
|
||||
|
||||
/* @TODO
|
||||
let widget_name = page.widget_name();
|
||||
if !widget_name.is_empty() {
|
||||
Some(widget_name)
|
||||
} else {
|
||||
None
|
||||
} */
|
||||
None
|
||||
let id = page.keyword()?;
|
||||
Some(id)
|
||||
}
|
||||
|
||||
pub fn gobject(&self) -> &TabView {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue