Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
15 changes: 15 additions & 0 deletions lib/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ namespace Gala {
IS_TILED
}

[CCode (has_type_id = false)]
public class ActionKeys {
public const string INTERACTIVE_SCREENSHOT_ACTION = "interactive-screenshot-action";
public const string OVERLAY_ACTION = "overlay-action";
public const string PANEL_MAIN_MENU_ACTION = "panel-main-menu-action";
public const string TOGGLE_RECORDING_ACTION = "toggle-recording-action";
}

/**
* Function that should return true if the given shortcut should be blocked.
*/
Expand Down Expand Up @@ -176,5 +184,12 @@ namespace Gala {
* @param direction The direction in which to switch
*/
public abstract void switch_to_next_workspace (Meta.MotionDirection direction, uint32 timestamp);

/**
* Gets action command from gsettings and executes it.
*
* @param action_key The gsettings key of action. Available keys are stored in ActionKeys
*/
public abstract void launch_action (string action_key);
}
}
Loading