Skip to content

Commit 5ab55d6

Browse files
authored
Remove "[CCode (instance_pos = -1)]" (#2474)
1 parent 373322d commit 5ab55d6

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

plugins/pip/Main.vala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public class Gala.Plugins.PIP.Plugin : Gala.Plugin {
4949
windows.clear ();
5050
}
5151

52-
[CCode (instance_pos = -1)]
5352
private void on_initiate (Meta.Display display, Meta.Window? window, Clutter.KeyEvent? event,
5453
Meta.KeyBinding binding) {
5554
selection_area = new SelectionArea (wm);

src/ScreenshotManager.vala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public class Gala.ScreenshotManager : Object {
6767
notifications_manager.notification_closed.connect ((id) => notifications_id_to_path.remove (id));
6868
}
6969

70-
[CCode (instance_pos = -1)]
7170
private void handle_screenshot (
7271
Meta.Display display, Meta.Window? window, Clutter.KeyEvent? event, Meta.KeyBinding binding
7372
) {

src/WindowManager.vala

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,6 @@ namespace Gala {
451451
return Clutter.EVENT_STOP;
452452
}
453453

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

476-
[CCode (instance_pos = -1)]
477475
private void handle_move_to_workspace (Meta.Display display, Meta.Window? window,
478476
Clutter.KeyEvent? event, Meta.KeyBinding binding) {
479477
if (window == null) {
@@ -501,7 +499,6 @@ namespace Gala {
501499
}
502500
}
503501

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

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

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

551-
[CCode (instance_pos = -1)]
552546
private void handle_applications_menu (Meta.Display display, Meta.Window? window,
553547
Clutter.KeyEvent? event, Meta.KeyBinding binding) {
554548
launch_action (ActionKeys.PANEL_MAIN_MENU_ACTION);

src/Zoom.vala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,11 @@ public class Gala.Zoom : Object, GestureTarget, RootTarget {
6666
}
6767
}
6868

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

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

0 commit comments

Comments
 (0)