Skip to content

Commit 5e7e6ea

Browse files
committed
Merge branch 'main' into lenemter/gtk4
2 parents cf0d447 + d11be69 commit 5e7e6ea

File tree

9 files changed

+66
-95
lines changed

9 files changed

+66
-95
lines changed

daemon/DBus.vala

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,6 @@
33
* SPDX-License-Identifier: GPL-3.0-or-later
44
*/
55

6-
public enum Gala.ActionType {
7-
NONE = 0,
8-
SHOW_MULTITASKING_VIEW,
9-
MAXIMIZE_CURRENT,
10-
HIDE_CURRENT,
11-
OPEN_LAUNCHER,
12-
CUSTOM_COMMAND,
13-
WINDOW_OVERVIEW,
14-
WINDOW_OVERVIEW_ALL,
15-
SWITCH_TO_WORKSPACE_PREVIOUS,
16-
SWITCH_TO_WORKSPACE_NEXT,
17-
SWITCH_TO_WORKSPACE_LAST,
18-
START_MOVE_CURRENT,
19-
START_RESIZE_CURRENT,
20-
TOGGLE_ALWAYS_ON_TOP_CURRENT,
21-
TOGGLE_ALWAYS_ON_VISIBLE_WORKSPACE_CURRENT,
22-
MOVE_CURRENT_WORKSPACE_LEFT,
23-
MOVE_CURRENT_WORKSPACE_RIGHT,
24-
CLOSE_CURRENT,
25-
SCREENSHOT_CURRENT
26-
}
27-
28-
[Flags]
29-
public enum Gala.WindowFlags {
30-
NONE = 0,
31-
CAN_HIDE,
32-
CAN_MAXIMIZE,
33-
IS_MAXIMIZED,
34-
ALLOWS_MOVE,
35-
ALLOWS_RESIZE,
36-
ALWAYS_ON_TOP,
37-
ON_ALL_WORKSPACES,
38-
CAN_CLOSE,
39-
IS_TILED,
40-
ALLOWS_MOVE_LEFT,
41-
ALLOWS_MOVE_RIGHT
42-
}
43-
446
[DBus (name = "org.pantheon.gala")]
457
public interface Gala.WMDBus : GLib.Object {
468
public abstract void perform_action (Gala.ActionType type) throws DBusError, IOError;

daemon/meson.build

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ gala_daemon_sources = files(
77
'WindowMenu.vala',
88
)
99

10-
granite_dep = dependency('granite-7')
10+
gtk4_dep = dependency('gtk4')
11+
granite7_dep = dependency('granite-7')
1112

12-
gala_daemon_bin = executable(
13+
executable(
1314
'gala-daemon',
1415
gala_daemon_sources,
16+
gala_common_enums,
1517
config_header,
1618
gala_resources,
17-
dependencies: [granite_dep, gtk4_dep],
18-
include_directories: include_directories('.'),
19-
install: true,
19+
dependencies: [gtk4_dep, granite7_dep],
20+
install: true
2021
)

docs/meson.build

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
valadoc = find_program('valadoc')
2-
31
mutter_packages_command = []
42
foreach dep : mutter_dep
53
mutter_packages_command += [ '--pkg', dep.name() ]
64
endforeach
75

86
basic_command = [
9-
valadoc,
7+
find_program('valadoc'),
108
'--force',
119
'--verbose',
1210
'--package-name','gala',
@@ -18,7 +16,7 @@ basic_command = [
1816
'--pkg', 'gmodule-2.0',
1917
'--pkg', 'posix',
2018
vala_flags,
21-
'--vapidir=' + join_paths(meson.build_root(), 'lib'),
19+
'--vapidir=' + join_paths(meson.project_build_root(), 'lib'),
2220
'--vapidir=' + join_paths(meson.global_source_root(), 'vapi'),
2321
'--doclet=html',
2422
'--use-svg-images'
@@ -45,6 +43,7 @@ all_doc_target = custom_target(
4543
'--pkg', 'gnome-bg-4',
4644
'--pkg', 'gnome-desktop-4',
4745
'--pkg', 'libsystemd',
46+
'--pkg', 'gnome-desktop-3.0',
4847
'--pkg', 'pantheon-desktop-shell',
4948
'--pkg', 'sqlite3',
5049
'--pkg', 'wayland-server',

lib/CommonEnums.vala

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* SPDX-License-Identifier: GPL-3.0-or-later
3+
* SPDX-FileCopyrightText: 2025 elementary, Inc. (https://elementary.io)
4+
* 2014 Tom Beckmann
5+
*
6+
* Note: These enums are shared with the daemon
7+
*/
8+
9+
namespace Gala {
10+
public enum ActionType {
11+
NONE = 0,
12+
SHOW_MULTITASKING_VIEW,
13+
MAXIMIZE_CURRENT,
14+
HIDE_CURRENT,
15+
OPEN_LAUNCHER,
16+
CUSTOM_COMMAND,
17+
WINDOW_OVERVIEW,
18+
WINDOW_OVERVIEW_ALL,
19+
SWITCH_TO_WORKSPACE_PREVIOUS,
20+
SWITCH_TO_WORKSPACE_NEXT,
21+
SWITCH_TO_WORKSPACE_LAST,
22+
START_MOVE_CURRENT,
23+
START_RESIZE_CURRENT,
24+
TOGGLE_ALWAYS_ON_TOP_CURRENT,
25+
TOGGLE_ALWAYS_ON_VISIBLE_WORKSPACE_CURRENT,
26+
MOVE_CURRENT_WORKSPACE_LEFT,
27+
MOVE_CURRENT_WORKSPACE_RIGHT,
28+
CLOSE_CURRENT,
29+
SCREENSHOT_CURRENT
30+
}
31+
32+
[Flags]
33+
public enum WindowFlags {
34+
NONE = 0,
35+
CAN_HIDE,
36+
CAN_MAXIMIZE,
37+
IS_MAXIMIZED,
38+
ALLOWS_MOVE,
39+
ALLOWS_RESIZE,
40+
ALWAYS_ON_TOP,
41+
ON_ALL_WORKSPACES,
42+
CAN_CLOSE,
43+
IS_TILED,
44+
ALLOWS_MOVE_LEFT,
45+
ALLOWS_MOVE_RIGHT
46+
}
47+
}

lib/WindowManager.vala

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -23,44 +23,6 @@ namespace Gala {
2323
public const string TOGGLE_RECORDING_ACTION = "toggle-recording-action";
2424
}
2525

26-
public enum ActionType {
27-
NONE = 0,
28-
SHOW_MULTITASKING_VIEW,
29-
MAXIMIZE_CURRENT,
30-
HIDE_CURRENT,
31-
OPEN_LAUNCHER,
32-
CUSTOM_COMMAND,
33-
WINDOW_OVERVIEW,
34-
WINDOW_OVERVIEW_ALL,
35-
SWITCH_TO_WORKSPACE_PREVIOUS,
36-
SWITCH_TO_WORKSPACE_NEXT,
37-
SWITCH_TO_WORKSPACE_LAST,
38-
START_MOVE_CURRENT,
39-
START_RESIZE_CURRENT,
40-
TOGGLE_ALWAYS_ON_TOP_CURRENT,
41-
TOGGLE_ALWAYS_ON_VISIBLE_WORKSPACE_CURRENT,
42-
MOVE_CURRENT_WORKSPACE_LEFT,
43-
MOVE_CURRENT_WORKSPACE_RIGHT,
44-
CLOSE_CURRENT,
45-
SCREENSHOT_CURRENT
46-
}
47-
48-
[Flags]
49-
public enum WindowFlags {
50-
NONE = 0,
51-
CAN_HIDE,
52-
CAN_MAXIMIZE,
53-
IS_MAXIMIZED,
54-
ALLOWS_MOVE,
55-
ALLOWS_RESIZE,
56-
ALWAYS_ON_TOP,
57-
ON_ALL_WORKSPACES,
58-
CAN_CLOSE,
59-
IS_TILED,
60-
ALLOWS_MOVE_LEFT,
61-
ALLOWS_MOVE_RIGHT
62-
}
63-
6426
/**
6527
* Function that should return true if the given shortcut should be blocked.
6628
*/

lib/meson.build

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
gala_common_enums = files(
2+
'CommonEnums.vala',
3+
)
4+
15
gala_lib_sources = files(
26
'ActivatableComponent.vala',
37
'App.vala',
@@ -33,7 +37,7 @@ gala_lib_sources = files(
3337
'Gestures/SpringTimeline.vala',
3438
'Gestures/ToucheggBackend.vala',
3539
'Gestures/TouchpadBackend.vala'
36-
)
40+
) + gala_common_enums
3741

3842
gala_resources = gnome.compile_resources(
3943
'gala-resources',
@@ -47,7 +51,6 @@ gala_lib = shared_library(
4751
gala_lib_sources,
4852
gala_resources,
4953
dependencies: [gala_base_dep],
50-
include_directories: include_directories('.'),
5154
install: true,
5255
install_dir: [true, join_paths(get_option('includedir'), 'gala'), true],
5356
install_rpath: mutter_typelib_dir,

plugins/pip/meson.build

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
gala_pip_sources = [
1+
gala_pip_sources = files(
22
'Main.vala',
33
'PopupWindow.vala',
44
'SelectionArea.vala'
5-
]
5+
)
66

77
gala_pip_lib = shared_library(
88
'gala-pip',
99
gala_pip_sources,
1010
dependencies: [gala_dep, gala_base_dep],
11-
include_directories: include_directories('.'),
1211
install: true,
1312
install_dir: plugins_dir,
1413
install_rpath: mutter_typelib_dir,

plugins/template/meson.build

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
gala_template_sources = [
2-
'Main.vala',
3-
]
1+
gala_template_sources = files(
2+
'Main.vala'
3+
)
44

55
gala_template_lib = shared_library(
66
'gala-template',
77
gala_template_sources,
88
dependencies: [gala_dep, gala_base_dep],
9-
include_directories: include_directories('.'),
109
install: false,
1110
install_dir: plugins_dir,
1211
install_rpath: mutter_typelib_dir,

src/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ gala_bin = executable(
7272
gala_bin_sources,
7373
config_header,
7474
dependencies: [gala_dep, gala_base_dep, pantheon_desktop_shell_dep],
75-
include_directories: include_directories('.'),
7675
install_rpath: mutter_typelib_dir,
7776
install: true,
7877
)

0 commit comments

Comments
 (0)