Browse Source

fix actions list

master
yggverse 2 months ago
parent
commit
a2c4389498
  1. 2
      src/browser.rs
  2. 13
      src/browser/main.rs

2
src/browser.rs

@ -52,7 +52,7 @@ impl Browser {
&action_tab_pin, &action_tab_pin,
)); ));
let main = Arc::new(Main::new(&action_debug, &action_quit, &action_update)); let main = Arc::new(Main::new(&action_tab_page_reload, &action_update));
// Init widget // Init widget
let widget = ApplicationWindow::builder() let widget = ApplicationWindow::builder()

13
src/browser/main.rs

@ -13,20 +13,13 @@ pub struct Main {
impl Main { impl Main {
// Construct // Construct
pub fn new( pub fn new(action_tab_page_reload: &SimpleAction, action_update: &SimpleAction) -> Self {
action_debug: &SimpleAction,
action_quit: &SimpleAction,
action_update: &SimpleAction,
) -> Self {
// Init components // Init components
let tab = Arc::new(Tab::new()); let tab = Arc::new(Tab::new());
tab.activate(tab.clone()); tab.activate(tab.clone());
tab.append(Some(GString::from("gemini://geminiprotocol.net/")), true); // demo tab @TODO replace with session restore feature
// Append demo tab @TODO // GTK
tab.append(Some(GString::from("gemini://geminiprotocol.net/")), true);
// Extras
let widget = Box::builder().orientation(Orientation::Vertical).build(); let widget = Box::builder().orientation(Orientation::Vertical).build();
widget.append(tab.widget()); widget.append(tab.widget());

Loading…
Cancel
Save