mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-06 03:25:27 +00:00
begin identity dialog implementation
This commit is contained in:
parent
12b4d441ca
commit
14c31734fd
18 changed files with 439 additions and 72 deletions
|
|
@ -1,3 +1,6 @@
|
|||
use std::rc::Rc;
|
||||
|
||||
use crate::app::browser::window::tab::item::Action;
|
||||
use adw::StatusPage;
|
||||
use gtk::{prelude::ButtonExt, Align, Button};
|
||||
|
||||
|
|
@ -11,7 +14,7 @@ const DEFAULT_BUTTON_CLASS: &str = "suggested-action";
|
|||
|
||||
/// Create new default preset for `Identity`
|
||||
/// [StatusPage](https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.StatusPage.html)
|
||||
pub fn new_gobject() -> StatusPage {
|
||||
pub fn new_gobject(action: Rc<Action>) -> StatusPage {
|
||||
// Init certificate selection
|
||||
let button = &Button::builder()
|
||||
.css_classes([DEFAULT_BUTTON_CLASS])
|
||||
|
|
@ -21,7 +24,7 @@ pub fn new_gobject() -> StatusPage {
|
|||
.build();
|
||||
|
||||
// Init events
|
||||
button.connect_activate(|_| {}); // @TODO
|
||||
button.connect_clicked(move |_| action.ident().activate());
|
||||
|
||||
// Init status page
|
||||
StatusPage::builder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue