[][src]Trait gio::AppLaunchContextExt

pub trait AppLaunchContextExt: 'static {
    fn get_display<P: IsA<AppInfo>>(
        &self,
        info: &P,
        files: &[File]
    ) -> Option<GString>;
fn get_environment(&self) -> Vec<OsString>;
fn get_startup_notify_id<P: IsA<AppInfo>>(
        &self,
        info: &P,
        files: &[File]
    ) -> Option<GString>;
fn launch_failed(&self, startup_notify_id: &str);
fn setenv<P: AsRef<OsStr>, Q: AsRef<OsStr>>(&self, variable: P, value: Q);
fn unsetenv<P: AsRef<OsStr>>(&self, variable: P);
fn connect_launch_failed<F: Fn(&Self, &str) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_launched<F: Fn(&Self, &AppInfo, &Variant) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn get_display<P: IsA<AppInfo>>(
    &self,
    info: &P,
    files: &[File]
) -> Option<GString>

fn get_environment(&self) -> Vec<OsString>

fn get_startup_notify_id<P: IsA<AppInfo>>(
    &self,
    info: &P,
    files: &[File]
) -> Option<GString>

fn launch_failed(&self, startup_notify_id: &str)

fn setenv<P: AsRef<OsStr>, Q: AsRef<OsStr>>(&self, variable: P, value: Q)

fn unsetenv<P: AsRef<OsStr>>(&self, variable: P)

fn connect_launch_failed<F: Fn(&Self, &str) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_launched<F: Fn(&Self, &AppInfo, &Variant) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<AppLaunchContext>> AppLaunchContextExt for O[src]

Loading content...