Skip to content

Commit

Permalink
Merge pull request gtk-rs#288 from sophie-h/dbus-action-group
Browse files Browse the repository at this point in the history
gio: Add DBusActionGroup
  • Loading branch information
sdroege authored Feb 3, 2021
2 parents f2bad67 + 82ebf6f commit 9fa43c1
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions gio/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ generate = [
"Gio.CredentialsType",
"Gio.DataStreamByteOrder",
"Gio.DataStreamNewlineType",
"Gio.DBusActionGroup",
"Gio.DBusArgInfo",
"Gio.DBusAuthObserver",
"Gio.DBusCallFlags",
Expand Down
40 changes: 40 additions & 0 deletions gio/src/auto/dbus_action_group.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::ActionGroup;
use crate::DBusConnection;
use crate::RemoteActionGroup;
use glib::translate::*;
use std::fmt;

glib::wrapper! {
pub struct DBusActionGroup(Object<ffi::GDBusActionGroup>) @implements ActionGroup, RemoteActionGroup;

match fn {
get_type => || ffi::g_dbus_action_group_get_type(),
}
}

impl DBusActionGroup {
#[doc(alias = "g_dbus_action_group_get")]
pub fn get(
connection: &DBusConnection,
bus_name: Option<&str>,
object_path: &str,
) -> Option<DBusActionGroup> {
unsafe {
from_glib_full(ffi::g_dbus_action_group_get(
connection.to_glib_none().0,
bus_name.to_glib_none().0,
object_path.to_glib_none().0,
))
}
}
}

impl fmt::Display for DBusActionGroup {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("DBusActionGroup")
}
}
3 changes: 3 additions & 0 deletions gio/src/auto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ pub use self::converter_output_stream::{ConverterOutputStream, NONE_CONVERTER_OU
mod credentials;
pub use self::credentials::Credentials;

mod dbus_action_group;
pub use self::dbus_action_group::DBusActionGroup;

mod dbus_auth_observer;
pub use self::dbus_auth_observer::DBusAuthObserver;

Expand Down

0 comments on commit 9fa43c1

Please sign in to comment.