Skip to content

Commit 0004784

Browse files
authored
Cleanup ScreenshotManager and WindowManager (#2298)
1 parent 968de64 commit 0004784

File tree

3 files changed

+488
-484
lines changed

3 files changed

+488
-484
lines changed

lib/WindowManager.vala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
//
1717

1818
namespace Gala {
19+
namespace ActionKeys {
20+
public const string INTERACTIVE_SCREENSHOT_ACTION = "interactive-screenshot-action";
21+
public const string OVERLAY_ACTION = "overlay-action";
22+
public const string PANEL_MAIN_MENU_ACTION = "panel-main-menu-action";
23+
public const string TOGGLE_RECORDING_ACTION = "toggle-recording-action";
24+
}
25+
1926
public enum ActionType {
2027
NONE = 0,
2128
SHOW_MULTITASKING_VIEW,
@@ -171,5 +178,12 @@ namespace Gala {
171178
* @param direction The direction in which to switch
172179
*/
173180
public abstract void switch_to_next_workspace (Meta.MotionDirection direction, uint32 timestamp);
181+
182+
/**
183+
* Gets action command from gsettings and executes it.
184+
*
185+
* @param action_key The gsettings key of action. Available keys are stored in ActionKeys
186+
*/
187+
public abstract void launch_action (string action_key);
174188
}
175189
}

0 commit comments

Comments
 (0)