[gnome-builder] build: fix a few more missing declaration stragglers
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build: fix a few more missing declaration stragglers
- Date: Sat, 16 Jun 2018 03:00:55 +0000 (UTC)
commit 43929cbdc386e6d9c80ad46a612ded84cfb32992
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 15 20:00:14 2018 -0700
build: fix a few more missing declaration stragglers
src/libide/buffers/ide-buffer-manager.c | 1 +
src/libide/buffers/ide-buffer-manager.h | 2 +-
src/libide/projects/ide-project-item.c | 6 +++++
src/plugins/ctags/ide-ctags-completion-item.c | 7 ------
src/plugins/flatpak/gbp-flatpak-runtime-provider.c | 26 ----------------------
src/plugins/flatpak/gbp-flatpak-runtime.c | 12 +++++-----
src/plugins/gcc/gbp-gcc-toolchain-provider.c | 8 +++----
.../project-tree/gb-project-tree-shortcuts.c | 1 +
8 files changed, 19 insertions(+), 44 deletions(-)
---
diff --git a/src/libide/buffers/ide-buffer-manager.c b/src/libide/buffers/ide-buffer-manager.c
index 1c0f172e1..39a521f08 100644
--- a/src/libide/buffers/ide-buffer-manager.c
+++ b/src/libide/buffers/ide-buffer-manager.c
@@ -264,6 +264,7 @@ ide_buffer_manager_get_auto_save (IdeBufferManager *self)
/**
* ide_buffer_manager_set_auto_save:
+ * @self: an #IdeBufferManager
* @auto_save: %TRUE if auto-save should be enabled.
*
* Sets the #IdeBufferManager:auto-save property. If this is %TRUE, then a
diff --git a/src/libide/buffers/ide-buffer-manager.h b/src/libide/buffers/ide-buffer-manager.h
index 230b3832a..ed7c35e41 100644
--- a/src/libide/buffers/ide-buffer-manager.h
+++ b/src/libide/buffers/ide-buffer-manager.h
@@ -111,6 +111,6 @@ IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_manager_get_auto_save (IdeBufferManager *self);
IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_set_auto_save (IdeBufferManager *self,
- gboolean auto_save_timeout);
+ gboolean auto_save);
G_END_DECLS
diff --git a/src/libide/projects/ide-project-item.c b/src/libide/projects/ide-project-item.c
index fa55ced04..42c18efb4 100644
--- a/src/libide/projects/ide-project-item.c
+++ b/src/libide/projects/ide-project-item.c
@@ -41,6 +41,12 @@ enum {
static GParamSpec *properties [LAST_PROP];
+/**
+ * ide_project_item_new:
+ * @parent: (nullable): an #IdeProjectItem
+ *
+ * Returns: (transfer full): an #IdeProjectItem
+ */
IdeProjectItem *
ide_project_item_new (IdeProjectItem *parent)
{
diff --git a/src/plugins/ctags/ide-ctags-completion-item.c b/src/plugins/ctags/ide-ctags-completion-item.c
index 8464c556c..142464b24 100644
--- a/src/plugins/ctags/ide-ctags-completion-item.c
+++ b/src/plugins/ctags/ide-ctags-completion-item.c
@@ -51,13 +51,6 @@ ide_ctags_completion_item_new (IdeCtagsResults *results,
return self;
}
-gint
-ide_ctags_completion_item_compare (IdeCtagsCompletionItem *itema,
- IdeCtagsCompletionItem *itemb)
-{
- return ide_ctags_index_entry_compare (itema->entry, itemb->entry);
-}
-
static void
ide_ctags_completion_item_finalize (GObject *object)
{
diff --git a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
index 036e3e2d0..04b9105c3 100644
--- a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
+++ b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
@@ -715,32 +715,6 @@ gbp_flatpak_runtime_provider_bootstrap_finish (IdeRuntimeProvider *provider,
IDE_RETURN (ret);
}
-static void
-gbp_flatpak_runtime_provider_locate_sdk_async (GbpFlatpakRuntimeProvider *self,
- const gchar *id,
- const gchar *arch,
- const gchar *branch,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_autoptr(IdeTask) task = NULL;
-
- IDE_ENTRY;
-
- g_assert (GBP_IS_FLATPAK_RUNTIME_PROVIDER (self));
- g_assert (id != NULL);
- g_assert (arch != NULL);
- g_assert (branch != NULL);
- g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
-
- task = ide_task_new (self, cancellable, callback, user_data);
- ide_task_set_source_tag (task, gbp_flatpak_runtime_provider_locate_sdk_async);
- ide_task_set_priority (task, G_PRIORITY_LOW);
-
- IDE_EXIT;
-}
-
static void
runtime_provider_iface_init (IdeRuntimeProviderInterface *iface)
{
diff --git a/src/plugins/flatpak/gbp-flatpak-runtime.c b/src/plugins/flatpak/gbp-flatpak-runtime.c
index 0ca06c101..88ea16316 100644
--- a/src/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/src/plugins/flatpak/gbp-flatpak-runtime.c
@@ -326,7 +326,7 @@ get_binary_name (GbpFlatpakRuntime *self,
}
}
-IdeRunner *
+static IdeRunner *
gbp_flatpak_runtime_create_runner (IdeRuntime *runtime,
IdeBuildTarget *build_target)
{
@@ -514,7 +514,7 @@ gbp_flatpak_runtime_get_triplet (GbpFlatpakRuntime *self)
return self->triplet;
}
-void
+static void
gbp_flatpak_runtime_set_triplet (GbpFlatpakRuntime *self,
IdeTriplet *triplet)
{
@@ -536,7 +536,7 @@ gbp_flatpak_runtime_get_branch (GbpFlatpakRuntime *self)
return self->branch;
}
-void
+static void
gbp_flatpak_runtime_set_branch (GbpFlatpakRuntime *self,
const gchar *branch)
{
@@ -558,7 +558,7 @@ gbp_flatpak_runtime_get_platform (GbpFlatpakRuntime *self)
return self->platform;
}
-void
+static void
gbp_flatpak_runtime_set_platform (GbpFlatpakRuntime *self,
const gchar *platform)
{
@@ -595,7 +595,7 @@ gbp_flatpak_runtime_get_sdk_name (GbpFlatpakRuntime *self)
return g_strndup (self->sdk, slash - self->sdk);
}
-void
+static void
gbp_flatpak_runtime_set_sdk (GbpFlatpakRuntime *self,
const gchar *sdk)
{
@@ -622,7 +622,7 @@ gbp_flatpak_runtime_real_get_triplet (IdeRuntime *runtime)
return ide_triplet_ref (GBP_FLATPAK_RUNTIME (runtime)->triplet);
}
-gboolean
+static gboolean
gbp_flatpak_runtime_supports_toolchain (IdeRuntime *self,
IdeToolchain *toolchain)
{
diff --git a/src/plugins/gcc/gbp-gcc-toolchain-provider.c b/src/plugins/gcc/gbp-gcc-toolchain-provider.c
index 0c36d1019..b91bf3719 100644
--- a/src/plugins/gcc/gbp-gcc-toolchain-provider.c
+++ b/src/plugins/gcc/gbp-gcc-toolchain-provider.c
@@ -183,7 +183,7 @@ gbp_gcc_toolchain_provider_load_worker (IdeTask *task,
(GDestroyNotify)g_ptr_array_unref);
}
-void
+static void
gbp_gcc_toolchain_provider_search_finish (FileSearching *file_searching,
GError *error)
{
@@ -216,7 +216,7 @@ add_all_files (GFile *file,
g_ptr_array_add (dest_array, g_object_ref (file));
}
-void
+static void
gbp_gcc_toolchain_provider_search_iterate (GObject *object,
GAsyncResult *result,
gpointer user_data)
@@ -252,7 +252,7 @@ gbp_gcc_toolchain_provider_search_iterate (GObject *object,
gbp_gcc_toolchain_provider_search_finish (file_searching, NULL);
}
-void
+static void
gbp_gcc_toolchain_provider_search_init (GbpGccToolchainProvider *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
@@ -341,7 +341,7 @@ gbp_gcc_toolchain_provider_load_finish (IdeToolchainProvider *provider,
return TRUE;
}
-void
+static void
gbp_gcc_toolchain_provider_unload (IdeToolchainProvider *provider,
IdeToolchainManager *manager)
{
diff --git a/src/plugins/project-tree/gb-project-tree-shortcuts.c
b/src/plugins/project-tree/gb-project-tree-shortcuts.c
index b9a8a012d..fb27cc5d9 100644
--- a/src/plugins/project-tree/gb-project-tree-shortcuts.c
+++ b/src/plugins/project-tree/gb-project-tree-shortcuts.c
@@ -24,6 +24,7 @@
#include <dazzle.h>
#include "gb-project-tree.h"
+#include "gb-project-tree-private.h"
#define I_(s) g_intern_static_string(s)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]