mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
add new tab item action group, delegate history handle to action implementation
This commit is contained in:
parent
5145a53bfa
commit
913030a955
29 changed files with 409 additions and 232 deletions
|
|
@ -6,7 +6,7 @@ use control::Control;
|
|||
use form::Form;
|
||||
use title::Title;
|
||||
|
||||
use super::TabAction;
|
||||
use super::ItemAction;
|
||||
use gtk::{
|
||||
gio::SimpleAction,
|
||||
glib::{uuid_string_random, Uri, UriHideFlags},
|
||||
|
|
@ -28,7 +28,7 @@ impl Response {
|
|||
|
||||
/// Build new `Self`
|
||||
pub fn build(
|
||||
tab_action: Rc<TabAction>,
|
||||
item_action: Rc<ItemAction>,
|
||||
base: Uri,
|
||||
title: Option<&str>,
|
||||
size_limit: Option<usize>,
|
||||
|
|
@ -77,7 +77,7 @@ impl Response {
|
|||
action_send.connect_activate({
|
||||
let form = form.clone();
|
||||
move |_, _| {
|
||||
tab_action.load.activate(
|
||||
item_action.load.activate(
|
||||
Some(&format!(
|
||||
"{}?{}",
|
||||
base.to_string_partial(UriHideFlags::QUERY),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
mod form;
|
||||
|
||||
use super::TabAction;
|
||||
use super::ItemAction;
|
||||
use form::Form;
|
||||
use gtk::{
|
||||
gio::SimpleAction,
|
||||
|
|
@ -22,7 +22,7 @@ impl Sensitive {
|
|||
|
||||
/// Build new `Self`
|
||||
pub fn build(
|
||||
tab_action: Rc<TabAction>,
|
||||
item_action: Rc<ItemAction>,
|
||||
base: Uri,
|
||||
title: Option<&str>,
|
||||
max_length: Option<i32>,
|
||||
|
|
@ -54,7 +54,7 @@ impl Sensitive {
|
|||
action_send.connect_activate({
|
||||
let form = form.clone();
|
||||
move |_, _| {
|
||||
tab_action.load.activate(
|
||||
item_action.load.activate(
|
||||
Some(&format!(
|
||||
"{}?{}",
|
||||
base.to_string_partial(UriHideFlags::QUERY),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue