Skip to content

Commit 784cf87

Browse files
authored
PlugsManager: Replace deprecated Module.SUFFIX (#358)
1 parent a3bac63 commit 784cf87

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Switchboard is just the container application for Switchboard Plugs, which provi
1515
You'll need the following dependencies:
1616

1717
* libgee-0.8-dev
18-
* libglib2.0-dev
18+
* libglib2.0-dev (>= 2.76)
1919
* libgranite-7-dev
2020
* libgtk-4-dev
2121
* libadwaita-1-dev (>= 1.4)

lib/PlugsManager.vala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ public class Switchboard.PlugsManager : GLib.Object {
7777

7878
if (file_info.get_file_type () == FileType.REGULAR && GLib.ContentType.equals (file_info.get_content_type (), "application/x-sharedlib")) {
7979
var path = file.get_path ();
80-
if (path.has_suffix (Module.SUFFIX)) {
81-
load (path);
82-
}
80+
load (path);
8381
} else if (file_info.get_file_type () == FileType.DIRECTORY) {
8482
find_plugins (file);
8583
}

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pkg = import('pkgconfig')
3333
glib_dep = dependency('glib-2.0', version: '>=2.32')
3434
gio_dep = dependency('gio-2.0')
3535
gio_unix_dep = dependency('gio-unix-2.0')
36-
gmodule_dep = dependency('gmodule-2.0')
36+
gmodule_dep = dependency('gmodule-2.0', version: '>=2.76')
3737
gtk_dep = dependency('gtk4', version: '>=3.10')
3838
gee_dep = dependency('gee-0.8')
3939
granite_dep = dependency('granite-7', version: '>=7.0.0')

0 commit comments

Comments
 (0)