[recipes] Move a function to utils
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Move a function to utils
- Date: Wed, 18 Jan 2017 12:20:23 +0000 (UTC)
commit d525db56d749403b8e47eeb2a9f182372e6d1526
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 18 07:13:59 2017 -0500
Move a function to utils
It will be used in more places soon.
src/gr-app.c | 6 ------
src/gr-utils.c | 6 ++++++
src/gr-utils.h | 2 ++
3 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/gr-app.c b/src/gr-app.c
index 5108be9..0ec7e8d 100644
--- a/src/gr-app.c
+++ b/src/gr-app.c
@@ -220,12 +220,6 @@ add_built_logo (GtkAboutDialog *about)
g_object_unref (copyright_label);
}
-static gboolean
-in_flatpak_sandbox (void)
-{
- return g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS);
-}
-
static void
get_flatpak_information (char **flatpak_version,
char **app_id,
diff --git a/src/gr-utils.c b/src/gr-utils.c
index 8051c19..f9a2560 100644
--- a/src/gr-utils.c
+++ b/src/gr-utils.c
@@ -426,3 +426,9 @@ format_date_time_difference (GDateTime *end,
return _("some time ago");
}
+gboolean
+in_flatpak_sandbox (void)
+{
+ return g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS);
+}
+
diff --git a/src/gr-utils.h b/src/gr-utils.h
index 4ae30b4..d43e8db 100644
--- a/src/gr-utils.h
+++ b/src/gr-utils.h
@@ -56,3 +56,5 @@ char *generate_id (const char *s, ...);
void start_recording (void);
void stop_recording (void);
void record_step (const char *blurb);
+
+gboolean in_flatpak_sandbox (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]