Skip to content

Commit 434eeed

Browse files
committed
Merge branch 'main' into lenemter/gtk4
2 parents 889a948 + 78e83f3 commit 434eeed

File tree

9 files changed

+12
-26
lines changed

9 files changed

+12
-26
lines changed

config.vala.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* SPDX-License-Identifier: GPL-3.0-or-later
3-
* SPDX-FileCopyrightText: 2024 elementary, Inc. (https://elementary.io)
3+
* SPDX-FileCopyrightText: 2025 elementary, Inc. (https://elementary.io)
44
* 2011 Robert Dyer
55
* 2011 Rico Tzschichholz
66
*/
@@ -10,5 +10,4 @@ namespace Config {
1010
public const string LOCALEDIR = "@LOCALEDIR@";
1111
public const string VERSION = "@VERSION@";
1212
public const string PLUGINDIR = "@PLUGINDIR@";
13-
public const string RESOURCEPATH = "@RESOURCEPATH@";
1413
}

daemon/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ granite_dep = dependency('granite-7')
1212
gala_daemon_bin = executable(
1313
'gala-daemon',
1414
gala_daemon_sources,
15-
gala_resources,
1615
config_header,
16+
gala_resources,
1717
dependencies: [granite_dep, gtk4_dep],
18-
include_directories: include_directories('.'),
18+
include_directories: config_inc_dir,
1919
install: true,
2020
)

docs/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ all_doc_target = custom_target(
5353
'@INPUT@'
5454
],
5555
build_by_default: true,
56-
input: gala_lib_sources + gala_bin_sources + [ config_header ],
56+
input: gala_lib_sources + gala_bin_sources + [config_header],
5757
output: 'full'
5858
)

lib/Drawing/StyleManager.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class Gala.Drawing.StyleManager : Object {
3636

3737
private static GLib.Once<StyleManager> instance;
3838
public static StyleManager get_instance () {
39-
return instance.once (() => {return new StyleManager ();});
39+
return instance.once (() => new StyleManager ());
4040
}
4141

4242
public ColorScheme prefers_color_scheme { get; private set; default = LIGHT; }

meson.build

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ plugins_dir = join_paths(get_option('prefix'), get_option('libdir'), meson.proje
2020
conf = configuration_data()
2121
conf.set('GETTEXT_PACKAGE', meson.project_name())
2222
conf.set('LOCALEDIR', locale_dir)
23-
conf.set('VERSION', meson.project_version())
2423
conf.set('PLUGINDIR', plugins_dir)
25-
conf.set('RESOURCEPATH', '/org/pantheon/desktop/gala')
24+
conf.set('VERSION', meson.project_version())
2625
config_header = configure_file (
2726
input: 'config.vala.in',
2827
output: 'config.vala',

src/Background/BackgroundCache.vala

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,17 @@
55
*/
66

77
public class Gala.BackgroundCache : Object {
8-
private static BackgroundCache? instance = null;
9-
8+
private static GLib.Once<BackgroundCache> instance;
109
public static unowned BackgroundCache get_default () {
11-
if (instance == null)
12-
instance = new BackgroundCache ();
13-
14-
return instance;
10+
return instance.once (() => new BackgroundCache ());
1511
}
1612

1713
public signal void file_changed (string filename);
1814

1915
private Gee.HashMap<string,FileMonitor> file_monitors;
2016
private BackgroundSource background_source;
21-
2217
private Animation animation;
2318

24-
public BackgroundCache () {
25-
Object ();
26-
}
27-
2819
construct {
2920
file_monitors = new Gee.HashMap<string,FileMonitor> ();
3021
}

src/PluginManager.vala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55
*/
66

77
public class Gala.PluginManager : Object {
8-
private static PluginManager? instance = null;
8+
private static GLib.Once<PluginManager> instance;
99
public static unowned PluginManager get_default () {
10-
if (instance == null)
11-
instance = new PluginManager ();
12-
13-
return instance;
10+
return instance.once (() => new PluginManager ());
1411
}
1512

1613
public delegate PluginInfo RegisterPluginFunction ();

src/Widgets/MultitaskingView/StaticWindowContainer.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public class Gala.StaticWindowContainer : ActorTarget {
1313
private static GLib.Once<StaticWindowContainer> instance;
1414
public static StaticWindowContainer get_instance (Meta.Display display) {
15-
return instance.once (() => { return new StaticWindowContainer (display); });
15+
return instance.once (() => new StaticWindowContainer (display));
1616
}
1717

1818
public signal void window_changed (Meta.Window window, bool is_static);

src/WindowDragProvider.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
public class Gala.WindowDragProvider : Object {
1010
private static GLib.Once<WindowDragProvider> instance;
1111
public static WindowDragProvider get_instance () {
12-
return instance.once (() => { return new WindowDragProvider (); });
12+
return instance.once (() => new WindowDragProvider ());
1313
}
1414

1515
public signal void enter (uint64 window_id);

0 commit comments

Comments
 (0)