Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gio/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,12 @@ manual_traits = ["ApplicationCommandLineExtManual"]
string_type = "os_string"
[[object.function]]
name = "set_exit_status"
# Uses glib::ExitCode for consitency with gio::Application interfaces
# Uses glib::ExitCode for consistency with gio::Application interfaces
manual = true
doc_trait_name = "ApplicationCommandLineExtManual"
[[object.function]]
name = "get_exit_status"
# Uses glib::ExitCode for consitency with gio::Application interfaces
# Uses glib::ExitCode for consistency with gio::Application interfaces
manual = true
doc_trait_name = "ApplicationCommandLineExtManual"

Expand Down
15 changes: 4 additions & 11 deletions gio/src/application_command_line.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
// Take a look at the license at the top of the repository in the LICENSE file.

use std::{boxed::Box as Box_, mem::transmute, ops::ControlFlow};
use glib::{prelude::*, translate::*, ExitCode};

use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
ExitCode, GString,
};
use crate::{ffi, ApplicationCommandLine};

use crate::{ffi, Application, ApplicationCommandLine, ExitCode, File};

pub trait ApplicationCommandLineExtManual: IsA<Application> {
pub trait ApplicationCommandLineExtManual: IsA<ApplicationCommandLine> {
#[doc(alias = "g_application_command_line_get_exit_status")]
#[doc(alias = "get_exit_status")]
fn exit_code(&self) -> ExitCode {
Expand All @@ -33,4 +26,4 @@ pub trait ApplicationCommandLineExtManual: IsA<Application> {
}
}

impl<O: IsA<Application>> ApplicationExtManual for O {}
impl<O: IsA<ApplicationCommandLine>> ApplicationCommandLineExtManual for O {}
1 change: 1 addition & 0 deletions gio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mod app_info;
mod application;
pub use action_entry::{ActionEntry, ActionEntryBuilder};
pub use application::{ApplicationBusyGuard, ApplicationHoldGuard};
mod application_command_line;
mod async_initable;
mod cancellable;
pub use cancellable::CancelledHandlerId;
Expand Down
3 changes: 2 additions & 1 deletion gio/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ pub use crate::win32_input_stream::Win32InputStreamExt;
#[cfg(windows)]
pub use crate::win32_output_stream::Win32OutputStreamExt;
pub use crate::{
action_map::ActionMapExtManual, application::ApplicationExtManual, auto::traits::*,
action_map::ActionMapExtManual, application::ApplicationExtManual,
application_command_line::ApplicationCommandLineExtManual, auto::traits::*,
cancellable::CancellableExtManual, converter::ConverterExtManual,
data_input_stream::DataInputStreamExtManual, datagram_based::DatagramBasedExtManual,
dbus_connection::DBusMethodCall, dbus_proxy::DBusProxyExtManual, file::FileExtManual,
Expand Down
Loading