Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 0 additions & 1 deletion plugins/pip/Main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public class Gala.Plugins.PIP.Plugin : Gala.Plugin {
windows.clear ();
}

[CCode (instance_pos = -1)]
private void on_initiate (Meta.Display display, Meta.Window? window, Clutter.KeyEvent? event,
Meta.KeyBinding binding) {
selection_area = new SelectionArea (wm);
Expand Down
1 change: 0 additions & 1 deletion src/ScreenshotManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public class Gala.ScreenshotManager : Object {
notifications_manager.notification_closed.connect ((id) => notifications_id_to_path.remove (id));
}

[CCode (instance_pos = -1)]
private void handle_screenshot (
Meta.Display display, Meta.Window? window, Clutter.KeyEvent? event, Meta.KeyBinding binding
) {
Expand Down
6 changes: 0 additions & 6 deletions src/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,6 @@ namespace Gala {
return Clutter.EVENT_STOP;
}

[CCode (instance_pos = -1)]
private void handle_cycle_workspaces (Meta.Display display, Meta.Window? window, Clutter.KeyEvent? event,
Meta.KeyBinding binding) {
var direction = (binding.get_name () == "cycle-workspaces-next" ? 1 : -1);
Expand All @@ -473,7 +472,6 @@ namespace Gala {
}
}

[CCode (instance_pos = -1)]
private void handle_move_to_workspace (Meta.Display display, Meta.Window? window,
Clutter.KeyEvent? event, Meta.KeyBinding binding) {
if (window == null) {
Expand Down Expand Up @@ -501,7 +499,6 @@ namespace Gala {
}
}

[CCode (instance_pos = -1)]
private void handle_move_to_workspace_end (Meta.Display display, Meta.Window? window,
Clutter.KeyEvent? event, Meta.KeyBinding binding) {
if (window == null) {
Expand All @@ -516,7 +513,6 @@ namespace Gala {
workspace.activate_with_focus (window, timestamp);
}

[CCode (instance_pos = -1)]
private void handle_switch_to_workspace (Meta.Display display, Meta.Window? window,
Clutter.KeyEvent? event, Meta.KeyBinding binding) {
var timestamp = event != null ? event.get_time () : Meta.CURRENT_TIME;
Expand All @@ -540,15 +536,13 @@ namespace Gala {
}
}

[CCode (instance_pos = -1)]
private void handle_switch_to_workspace_end (Meta.Display display, Meta.Window? window,
Clutter.KeyEvent? event, Meta.KeyBinding binding) {
unowned Meta.WorkspaceManager manager = display.get_workspace_manager ();
var index = (binding.get_name () == "switch-to-workspace-first" ? 0 : manager.n_workspaces - 1);
manager.get_workspace_by_index (index).activate (event != null ? event.get_time () : Meta.CURRENT_TIME);
}

[CCode (instance_pos = -1)]
private void handle_applications_menu (Meta.Display display, Meta.Window? window,
Clutter.KeyEvent? event, Meta.KeyBinding binding) {
launch_action (ActionKeys.PANEL_MAIN_MENU_ACTION);
Expand Down
2 changes: 0 additions & 2 deletions src/Zoom.vala
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,11 @@ public class Gala.Zoom : Object, GestureTarget, RootTarget {
}
}

[CCode (instance_pos = -1)]
private void zoom_in (Meta.Display display, Meta.Window? window,
Clutter.KeyEvent? event, Meta.KeyBinding binding) {
zoom (SHORTCUT_DELTA, true);
}

[CCode (instance_pos = -1)]
private void zoom_out (Meta.Display display, Meta.Window? window,
Clutter.KeyEvent? event, Meta.KeyBinding binding) {
zoom (-SHORTCUT_DELTA, true);
Expand Down