mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
connect focus action
This commit is contained in:
parent
e606ef5fa9
commit
bcf8dcb83a
2 changed files with 12 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use gtk::{gio::SimpleAction, glib::uuid_string_random};
|
||||
use gtk::{gio::SimpleAction, glib::uuid_string_random, prelude::ActionExt};
|
||||
|
||||
/// [SimpleAction](https://docs.gtk.org/gio/class.SimpleAction.html) wrapper for `Focus` action of `Browser` group
|
||||
pub struct Focus {
|
||||
|
|
@ -15,6 +15,14 @@ impl Focus {
|
|||
}
|
||||
}
|
||||
|
||||
// Actions
|
||||
|
||||
/// Emit [activate](https://docs.gtk.org/gio/signal.SimpleAction.activate.html) signal
|
||||
/// with formatted for this action [Variant](https://docs.gtk.org/glib/struct.Variant.html) value
|
||||
pub fn activate(&self) {
|
||||
self.gobject.activate(None); // @TODO custom value
|
||||
}
|
||||
|
||||
// Events
|
||||
|
||||
/// Define callback function for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue