[gnome-builder] libide-global: add ide_get_projects_dir()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide-global: add ide_get_projects_dir()
- Date: Tue, 12 Jul 2022 06:39:08 +0000 (UTC)
commit a8ac3c8d14a88814e18e783e25c274bf4809f048
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 11 16:36:21 2022 -0700
libide-global: add ide_get_projects_dir()
This isn't implemented here, but we always have it available and it's very
nice to be able to rely on it everywhere.
src/libide/core/ide-global.h | 2 ++
src/libide/projects/ide-projects-global.c | 4 ----
src/libide/projects/ide-projects-global.h | 6 ++----
3 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/libide/core/ide-global.h b/src/libide/core/ide-global.h
index fd064963a..33d28f3ae 100644
--- a/src/libide/core/ide-global.h
+++ b/src/libide/core/ide-global.h
@@ -66,5 +66,7 @@ IDE_AVAILABLE_IN_ALL
gsize ide_get_system_page_size (void) G_GNUC_CONST;
IDE_AVAILABLE_IN_ALL
gchar *ide_get_relocatable_path (const gchar *path);
+IDE_AVAILABLE_IN_ALL
+const char *ide_get_projects_dir (void);
G_END_DECLS
diff --git a/src/libide/projects/ide-projects-global.c b/src/libide/projects/ide-projects-global.c
index d762d072c..b6e5141a2 100644
--- a/src/libide/projects/ide-projects-global.c
+++ b/src/libide/projects/ide-projects-global.c
@@ -58,8 +58,6 @@ on_projects_directory_changed_cb (GSettings *settings,
* If the GSetting was empty, the translated name "Projects" is returned.
*
* Returns: (not nullable) (transfer full): a #GFile
- *
- * Since: 3.32
*/
const gchar *
ide_get_projects_dir (void)
@@ -120,8 +118,6 @@ completed:
* name should be used.
*
* Returns: (transfer full): a new string
- *
- * Since: 3.32
*/
gchar *
ide_create_project_id (const gchar *name)
diff --git a/src/libide/projects/ide-projects-global.h b/src/libide/projects/ide-projects-global.h
index f32401be4..045b4c76c 100644
--- a/src/libide/projects/ide-projects-global.h
+++ b/src/libide/projects/ide-projects-global.h
@@ -28,9 +28,7 @@
G_BEGIN_DECLS
-IDE_AVAILABLE_IN_3_32
-const gchar *ide_get_projects_dir (void);
-IDE_AVAILABLE_IN_3_32
-gchar *ide_create_project_id (const gchar *name);
+IDE_AVAILABLE_IN_ALL
+char *ide_create_project_id (const char *name);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]