integrate bookmark action

This commit is contained in:
yggverse 2024-11-12 18:02:35 +02:00
parent c279576ee2
commit 3db4c2c6be
9 changed files with 163 additions and 20 deletions

View file

@ -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) {

View file

@ -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(