[−][src]Trait gtk::AppChooserWidgetExt
Required methods
fn get_default_text(&self) -> Option<GString>
Returns the text that is shown if there are not applications that can handle the content type.
Returns
the value of AppChooserWidget:default-text
fn get_show_all(&self) -> bool
Returns the current value of the AppChooserWidget:show-all
property.
Returns
the value of AppChooserWidget:show-all
fn get_show_default(&self) -> bool
Returns the current value of the AppChooserWidget:show-default
property.
Returns
the value of AppChooserWidget:show-default
fn get_show_fallback(&self) -> bool
Returns the current value of the AppChooserWidget:show-fallback
property.
Returns
the value of AppChooserWidget:show-fallback
fn get_show_other(&self) -> bool
Returns the current value of the AppChooserWidget:show-other
property.
Returns
the value of AppChooserWidget:show-other
fn get_show_recommended(&self) -> bool
Returns the current value of the AppChooserWidget:show-recommended
property.
Returns
the value of AppChooserWidget:show-recommended
fn set_default_text(&self, text: &str)
Sets the text that is shown if there are not applications that can handle the content type.
text
the new value for AppChooserWidget:default-text
fn set_show_all(&self, setting: bool)
Sets whether the app chooser should show all applications in a flat list.
setting
the new value for AppChooserWidget:show-all
fn set_show_default(&self, setting: bool)
Sets whether the app chooser should show the default handler for the content type in a separate section.
setting
the new value for AppChooserWidget:show-default
fn set_show_fallback(&self, setting: bool)
Sets whether the app chooser should show related applications for the content type in a separate section.
setting
the new value for AppChooserWidget:show-fallback
fn set_show_other(&self, setting: bool)
Sets whether the app chooser should show applications which are unrelated to the content type.
setting
the new value for AppChooserWidget:show-other
fn set_show_recommended(&self, setting: bool)
Sets whether the app chooser should show recommended applications for the content type in a separate section.
setting
the new value for AppChooserWidget:show-recommended
fn connect_application_activated<F: Fn(&Self, &AppInfo) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Emitted when an application item is activated from the widget's list.
This usually happens when the user double clicks an item, or an item is selected and the user presses one of the keys Space, Shift+Space, Return or Enter.
application
the activated gio::AppInfo
fn connect_application_selected<F: Fn(&Self, &AppInfo) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Emitted when an application item is selected from the widget's list.
application
the selected gio::AppInfo
fn connect_populate_popup<F: Fn(&Self, &Menu, &AppInfo) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Emitted when a context menu is about to popup over an application item.
Clients can insert menu items into the provided Menu
object in the
callback of this signal; the context menu will be shown over the item
if at least one item has been added to the menu.
menu
the Menu
to populate
application
the current gio::AppInfo
fn connect_property_default_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_show_all_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_show_default_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_show_fallback_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_show_other_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_show_recommended_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<AppChooserWidget>> AppChooserWidgetExt for O
[src]
fn get_default_text(&self) -> Option<GString>
[src]
fn get_show_all(&self) -> bool
[src]
fn get_show_default(&self) -> bool
[src]
fn get_show_fallback(&self) -> bool
[src]
fn get_show_other(&self) -> bool
[src]
fn get_show_recommended(&self) -> bool
[src]
fn set_default_text(&self, text: &str)
[src]
fn set_show_all(&self, setting: bool)
[src]
fn set_show_default(&self, setting: bool)
[src]
fn set_show_fallback(&self, setting: bool)
[src]
fn set_show_other(&self, setting: bool)
[src]
fn set_show_recommended(&self, setting: bool)
[src]
fn connect_application_activated<F: Fn(&Self, &AppInfo) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_application_selected<F: Fn(&Self, &AppInfo) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_populate_popup<F: Fn(&Self, &Menu, &AppInfo) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_default_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_show_all_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_show_default_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_show_fallback_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_show_other_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_show_recommended_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId