mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
integrate bookmark action
This commit is contained in:
parent
c279576ee2
commit
3db4c2c6be
9 changed files with 163 additions and 20 deletions
|
|
@ -88,6 +88,10 @@ impl Page {
|
|||
|
||||
// Actions
|
||||
|
||||
pub fn bookmark(&self) {
|
||||
// @TODO self.navigation.request().widget().gobject().text()
|
||||
}
|
||||
|
||||
/// Navigate home URL (parsed from current navigation entry)
|
||||
/// * this method create new history record in memory as defined in `action_page_open` action
|
||||
pub fn home(&self) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,18 @@ impl Menu {
|
|||
)),
|
||||
);
|
||||
|
||||
main.append(
|
||||
let main_mark = gtk::gio::Menu::new();
|
||||
|
||||
main_mark.append(
|
||||
Some("Bookmark"),
|
||||
Some(&format!(
|
||||
"{}.{}",
|
||||
window_action.id(),
|
||||
window_action.bookmark().id()
|
||||
)),
|
||||
);
|
||||
|
||||
main_mark.append(
|
||||
Some("Pin"),
|
||||
Some(&format!(
|
||||
"{}.{}",
|
||||
|
|
@ -33,6 +44,8 @@ impl Menu {
|
|||
)),
|
||||
);
|
||||
|
||||
main.append_section(None, &main_mark);
|
||||
|
||||
let navigation = gtk::gio::Menu::new();
|
||||
|
||||
navigation.append(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue