ShortcutTheme
Object Hierarchy:
Description:
[
CCode ( type_id =
"dzl_shortcut_theme_get_type ()" ) ]
public class ShortcutTheme :
Object
Content:
Properties:
Creation methods:
Methods:
- public void add_command (string accelerator, string command)
- public void add_context (ShortcutContext context)
- public void add_css_resource (string path)
- public unowned ShortcutContext find_context_by_name (string name)
Gets the context named name.
- public unowned ShortcutContext? find_default_context (Widget widget)
Finds the default context in the theme for widget.
- public unowned ShortcutChord get_chord_for_action (string detailed_action_name)
- public unowned ShortcutChord get_chord_for_command (string command)
- public unowned string get_name ()
- public unowned ShortcutTheme? get_parent ()
If the
parent_name property has been set, this will fetch the parent
ShortcutTheme.
- public unowned string? get_parent_name ()
Gets the name of the parent shortcut theme.
- public unowned string get_subtitle ()
- public unowned string get_title ()
- public bool load_from_data (string data, ssize_t len) throws Error
- public bool load_from_file (File file, Cancellable? cancellable = null) throws Error
- public bool load_from_path (string path, Cancellable? cancellable = null) throws Error
- public void remove_css_resource (string path)
- public bool save_to_file (File file, Cancellable? cancellable = null) throws Error
- public bool save_to_path (string path, Cancellable? cancellable = null) throws Error
- public bool save_to_stream (OutputStream stream, Cancellable? cancellable = null) throws Error
- public void set_accel_for_action (string detailed_action_name, string accel, ShortcutPhase phase)
- public void set_accel_for_command (string? command, string? accel, ShortcutPhase phase)
This will set the command to execute when accel is
pressed.
- public void set_chord_for_action (string detailed_action_name, ShortcutChord chord, ShortcutPhase phase)
- public void set_chord_for_command (string? command, ShortcutChord? chord, ShortcutPhase phase)
This will set the command to execute when chord is
pressed.
- public void set_parent_name (string parent_name)
Inherited Members:
All known members inherited from class GLib.Object