-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
granite-init.patch
48 lines (44 loc) · 1.57 KB
/
granite-init.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff --git a/meson.build b/meson.build
index 1f4010cb..0c355f3a 100644
--- a/meson.build
+++ b/meson.build
@@ -30,6 +30,7 @@ use_native_appchooser = get_option('use_native_appchooser')
libm_dep = c_comp.find_library('m')
thread_dep = dependency('threads')
glib_dep = dependency('glib-2.0', version: glib_version)
+granite_dep = dependency('granite-7', version: '>= 7.2.0')
gthread_dep = dependency('gthread-2.0')
gtk_dep = dependency('gtk4', version: gtk4_version)
libportal_dep = dependency('libportal', version: '>= 0.5', required: use_native_appchooser)
diff --git a/src/fr-application.c b/src/fr-application.c
index b7dea42f..167ac15a 100644
--- a/src/fr-application.c
+++ b/src/fr-application.c
@@ -468,6 +468,7 @@ fr_application_register_archive_manager_service (FrApplication *self)
static void
fr_application_startup (GApplication *application)
{
+ granite_init ();
G_APPLICATION_CLASS (fr_application_parent_class)->startup (application);
g_set_application_name (_("File Roller"));
diff --git a/src/fr-application.h b/src/fr-application.h
index ac556720..2cb4f13c 100644
--- a/src/fr-application.h
+++ b/src/fr-application.h
@@ -25,6 +25,7 @@
#include <gtk/gtk.h>
#include <adwaita.h>
+#include <granite-7.h>
G_DECLARE_FINAL_TYPE (FrApplication, fr_application, FR, APPLICATION, AdwApplication)
diff --git a/src/meson.build b/src/meson.build
index 5d9e1c73..fecefdb1 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -137,6 +137,7 @@ fr_exe = executable(
libm_dep,
thread_dep,
glib_dep,
+ granite_dep,
gthread_dep,
gtk_dep,
libadwaita_dep,