[gnome-builder] buffer: fix header whitespace
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buffer: fix header whitespace
- Date: Sun, 17 Jun 2018 01:16:17 +0000 (UTC)
commit ff1c5a33617039aad398da4adf2c05df412a301a
Author: Christian Hergert <chergert redhat com>
Date: Sat Jun 16 18:09:42 2018 -0700
buffer: fix header whitespace
src/libide/buffers/ide-buffer-manager.h | 111 ++++++++++++++++----------------
src/libide/buffers/ide-buffer-private.h | 38 +++++------
src/libide/buffers/ide-unsaved-file.c | 1 +
src/libide/buffers/ide-unsaved-file.h | 4 --
src/libide/buffers/ide-unsaved-files.c | 1 +
src/libide/buffers/ide-unsaved-files.h | 66 +++++++++----------
6 files changed, 110 insertions(+), 111 deletions(-)
---
diff --git a/src/libide/buffers/ide-buffer-manager.h b/src/libide/buffers/ide-buffer-manager.h
index ed7c35e41..93acf7622 100644
--- a/src/libide/buffers/ide-buffer-manager.h
+++ b/src/libide/buffers/ide-buffer-manager.h
@@ -36,81 +36,80 @@ IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeBufferManager, ide_buffer_manager, IDE, BUFFER_MANAGER, IdeObject)
IDE_AVAILABLE_IN_ALL
-IdeBuffer *ide_buffer_manager_create_temporary_buffer
- (IdeBufferManager *self);
+IdeBuffer *ide_buffer_manager_create_temporary_buffer (IdeBufferManager *self);
IDE_AVAILABLE_IN_ALL
-void ide_buffer_manager_load_file_async (IdeBufferManager *self,
- IdeFile *file,
- gboolean force_reload,
- IdeWorkbenchOpenFlags flags,
- IdeProgress **progress,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+void ide_buffer_manager_load_file_async (IdeBufferManager *self,
+ IdeFile *file,
+ gboolean force_reload,
+ IdeWorkbenchOpenFlags flags,
+ IdeProgress **progress,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
IDE_AVAILABLE_IN_ALL
-IdeBuffer *ide_buffer_manager_load_file_finish (IdeBufferManager *self,
- GAsyncResult *result,
- GError **error);
+IdeBuffer *ide_buffer_manager_load_file_finish (IdeBufferManager *self,
+ GAsyncResult *result,
+ GError **error);
IDE_AVAILABLE_IN_ALL
-void ide_buffer_manager_save_file_async (IdeBufferManager *self,
- IdeBuffer *buffer,
- IdeFile *file,
- IdeProgress **progress,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+void ide_buffer_manager_save_file_async (IdeBufferManager *self,
+ IdeBuffer *buffer,
+ IdeFile *file,
+ IdeProgress **progress,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
IDE_AVAILABLE_IN_ALL
-gboolean ide_buffer_manager_save_file_finish (IdeBufferManager *self,
- GAsyncResult *result,
- GError **error);
+gboolean ide_buffer_manager_save_file_finish (IdeBufferManager *self,
+ GAsyncResult *result,
+ GError **error);
IDE_AVAILABLE_IN_ALL
-void ide_buffer_manager_save_all_async (IdeBufferManager *self,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+void ide_buffer_manager_save_all_async (IdeBufferManager *self,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
IDE_AVAILABLE_IN_ALL
-gboolean ide_buffer_manager_save_all_finish (IdeBufferManager *self,
- GAsyncResult *result,
- GError **error);
+gboolean ide_buffer_manager_save_all_finish (IdeBufferManager *self,
+ GAsyncResult *result,
+ GError **error);
IDE_AVAILABLE_IN_ALL
-IdeBuffer *ide_buffer_manager_get_focus_buffer (IdeBufferManager *self);
+IdeBuffer *ide_buffer_manager_get_focus_buffer (IdeBufferManager *self);
IDE_AVAILABLE_IN_ALL
-void ide_buffer_manager_set_focus_buffer (IdeBufferManager *self,
- IdeBuffer *buffer);
+void ide_buffer_manager_set_focus_buffer (IdeBufferManager *self,
+ IdeBuffer *buffer);
IDE_AVAILABLE_IN_ALL
-GPtrArray *ide_buffer_manager_get_buffers (IdeBufferManager *self);
+GPtrArray *ide_buffer_manager_get_buffers (IdeBufferManager *self);
IDE_AVAILABLE_IN_ALL
-guint ide_buffer_manager_get_n_buffers (IdeBufferManager *self);
+guint ide_buffer_manager_get_n_buffers (IdeBufferManager *self);
IDE_AVAILABLE_IN_ALL
-gboolean ide_buffer_manager_has_file (IdeBufferManager *self,
- GFile *file);
+gboolean ide_buffer_manager_has_file (IdeBufferManager *self,
+ GFile *file);
IDE_AVAILABLE_IN_ALL
-IdeBuffer *ide_buffer_manager_find_buffer (IdeBufferManager *self,
- GFile *file);
+IdeBuffer *ide_buffer_manager_find_buffer (IdeBufferManager *self,
+ GFile *file);
IDE_AVAILABLE_IN_ALL
-gsize ide_buffer_manager_get_max_file_size (IdeBufferManager *self);
+gsize ide_buffer_manager_get_max_file_size (IdeBufferManager *self);
IDE_AVAILABLE_IN_ALL
-void ide_buffer_manager_set_max_file_size (IdeBufferManager *self,
- gsize max_file_size);
+void ide_buffer_manager_set_max_file_size (IdeBufferManager *self,
+ gsize max_file_size);
IDE_AVAILABLE_IN_ALL
-void ide_buffer_manager_apply_edits_async (IdeBufferManager *self,
- GPtrArray *edits,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+void ide_buffer_manager_apply_edits_async (IdeBufferManager *self,
+ GPtrArray *edits,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
IDE_AVAILABLE_IN_ALL
-gboolean ide_buffer_manager_apply_edits_finish (IdeBufferManager *self,
- GAsyncResult *result,
- GError **error);
+gboolean ide_buffer_manager_apply_edits_finish (IdeBufferManager *self,
+ GAsyncResult *result,
+ GError **error);
IDE_AVAILABLE_IN_ALL
-guint ide_buffer_manager_get_auto_save_timeout (IdeBufferManager *self);
+guint ide_buffer_manager_get_auto_save_timeout (IdeBufferManager *self);
IDE_AVAILABLE_IN_ALL
-void ide_buffer_manager_set_auto_save_timeout (IdeBufferManager *self,
- guint auto_save_timeout);
+void ide_buffer_manager_set_auto_save_timeout (IdeBufferManager *self,
+ guint auto_save_timeout);
IDE_AVAILABLE_IN_ALL
-gboolean ide_buffer_manager_get_auto_save (IdeBufferManager *self);
+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);
+void ide_buffer_manager_set_auto_save (IdeBufferManager *self,
+ gboolean auto_save);
G_END_DECLS
diff --git a/src/libide/buffers/ide-buffer-private.h b/src/libide/buffers/ide-buffer-private.h
index d2c500681..9412ad905 100644
--- a/src/libide/buffers/ide-buffer-private.h
+++ b/src/libide/buffers/ide-buffer-private.h
@@ -27,23 +27,25 @@
G_BEGIN_DECLS
-PeasExtensionSet *_ide_buffer_get_addins (IdeBuffer *self);
-void _ide_buffer_set_changed_on_volume (IdeBuffer *self,
- gboolean changed_on_volume);
-void _ide_buffer_set_loading (IdeBuffer *self,
- gboolean loading);
-void _ide_buffer_cancel_cursor_restore (IdeBuffer *self);
-gboolean _ide_buffer_can_restore_cursor (IdeBuffer *self);
-void _ide_buffer_set_mtime (IdeBuffer *self,
- const GTimeVal *mtime);
-void _ide_buffer_set_read_only (IdeBuffer *buffer,
- gboolean read_only);
-void _ide_buffer_set_failure (IdeBuffer *self,
- const GError *error);
-IdeHighlightEngine *
- _ide_buffer_get_highlight_engine (IdeBuffer *self);
-
-void _ide_buffer_manager_reclaim (IdeBufferManager *self,
- IdeBuffer *buffer);
+PeasExtensionSet *_ide_buffer_get_addins (IdeBuffer *self);
+void _ide_buffer_set_changed_on_volume (IdeBuffer *self,
+ gboolean changed_on_volume);
+void _ide_buffer_set_loading (IdeBuffer *self,
+ gboolean loading);
+void _ide_buffer_cancel_cursor_restore (IdeBuffer *self);
+gboolean _ide_buffer_can_restore_cursor (IdeBuffer *self);
+void _ide_buffer_set_mtime (IdeBuffer *self,
+ const GTimeVal *mtime);
+void _ide_buffer_set_read_only (IdeBuffer *buffer,
+ gboolean read_only);
+void _ide_buffer_set_failure (IdeBuffer *self,
+ const GError *error);
+IdeHighlightEngine *_ide_buffer_get_highlight_engine (IdeBuffer *self);
+void _ide_buffer_manager_reclaim (IdeBufferManager *self,
+ IdeBuffer *buffer);
+IdeUnsavedFile *_ide_unsaved_file_new (GFile *file,
+ GBytes *content,
+ const gchar *temp_path,
+ gint64 sequence);
G_END_DECLS
diff --git a/src/libide/buffers/ide-unsaved-file.c b/src/libide/buffers/ide-unsaved-file.c
index d696950a4..b213f5837 100644
--- a/src/libide/buffers/ide-unsaved-file.c
+++ b/src/libide/buffers/ide-unsaved-file.c
@@ -24,6 +24,7 @@
#include "application/ide-application.h"
#include "buffers/ide-unsaved-file.h"
+#include "buffers/ide-buffer-private.h"
/*
* This type is meant to be created and then immutable after that.
diff --git a/src/libide/buffers/ide-unsaved-file.h b/src/libide/buffers/ide-unsaved-file.h
index 64593575b..95bae5a15 100644
--- a/src/libide/buffers/ide-unsaved-file.h
+++ b/src/libide/buffers/ide-unsaved-file.h
@@ -44,10 +44,6 @@ IDE_AVAILABLE_IN_ALL
gboolean ide_unsaved_file_persist (IdeUnsavedFile *self,
GCancellable *cancellable,
GError **error);
-IdeUnsavedFile *_ide_unsaved_file_new (GFile *file,
- GBytes *content,
- const gchar *temp_path,
- gint64 sequence) G_GNUC_INTERNAL;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeUnsavedFile, ide_unsaved_file_unref)
diff --git a/src/libide/buffers/ide-unsaved-files.c b/src/libide/buffers/ide-unsaved-files.c
index f4989050a..ade7e13b1 100644
--- a/src/libide/buffers/ide-unsaved-files.c
+++ b/src/libide/buffers/ide-unsaved-files.c
@@ -32,6 +32,7 @@
#include "ide-global.h"
#include "application/ide-application.h"
+#include "buffers/ide-buffer-private.h"
#include "buffers/ide-unsaved-file.h"
#include "buffers/ide-unsaved-files.h"
#include "projects/ide-project.h"
diff --git a/src/libide/buffers/ide-unsaved-files.h b/src/libide/buffers/ide-unsaved-files.h
index d745f69fb..f0956ac3d 100644
--- a/src/libide/buffers/ide-unsaved-files.h
+++ b/src/libide/buffers/ide-unsaved-files.h
@@ -30,50 +30,50 @@ IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeUnsavedFiles, ide_unsaved_files, IDE, UNSAVED_FILES, IdeObject)
IDE_AVAILABLE_IN_ALL
-void ide_unsaved_files_update (IdeUnsavedFiles *self,
- GFile *file,
- GBytes *content);
+void ide_unsaved_files_update (IdeUnsavedFiles *self,
+ GFile *file,
+ GBytes *content);
IDE_AVAILABLE_IN_ALL
-void ide_unsaved_files_remove (IdeUnsavedFiles *self,
- GFile *file);
+void ide_unsaved_files_remove (IdeUnsavedFiles *self,
+ GFile *file);
IDE_AVAILABLE_IN_ALL
-void ide_unsaved_files_save_async (IdeUnsavedFiles *files,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+void ide_unsaved_files_save_async (IdeUnsavedFiles *files,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
IDE_AVAILABLE_IN_ALL
-gboolean ide_unsaved_files_save_finish (IdeUnsavedFiles *files,
- GAsyncResult *result,
- GError **error);
+gboolean ide_unsaved_files_save_finish (IdeUnsavedFiles *files,
+ GAsyncResult *result,
+ GError **error);
IDE_AVAILABLE_IN_ALL
-void ide_unsaved_files_restore_async (IdeUnsavedFiles *files,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+void ide_unsaved_files_restore_async (IdeUnsavedFiles *files,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
IDE_AVAILABLE_IN_ALL
-gboolean ide_unsaved_files_restore_finish (IdeUnsavedFiles *files,
- GAsyncResult *result,
- GError **error);
+gboolean ide_unsaved_files_restore_finish (IdeUnsavedFiles *files,
+ GAsyncResult *result,
+ GError **error);
IDE_AVAILABLE_IN_ALL
-GPtrArray *ide_unsaved_files_to_array (IdeUnsavedFiles *self);
+GPtrArray *ide_unsaved_files_to_array (IdeUnsavedFiles *self);
IDE_AVAILABLE_IN_ALL
-gint64 ide_unsaved_files_get_sequence (IdeUnsavedFiles *files);
+gint64 ide_unsaved_files_get_sequence (IdeUnsavedFiles *files);
IDE_AVAILABLE_IN_ALL
-IdeUnsavedFile *ide_unsaved_files_get_unsaved_file (IdeUnsavedFiles *self,
- GFile *file);
+IdeUnsavedFile *ide_unsaved_files_get_unsaved_file (IdeUnsavedFiles *self,
+ GFile *file);
IDE_AVAILABLE_IN_ALL
-void ide_unsaved_files_clear (IdeUnsavedFiles *self);
+void ide_unsaved_files_clear (IdeUnsavedFiles *self);
IDE_AVAILABLE_IN_ALL
-gboolean ide_unsaved_files_contains (IdeUnsavedFiles *self,
- GFile *file);
+gboolean ide_unsaved_files_contains (IdeUnsavedFiles *self,
+ GFile *file);
IDE_AVAILABLE_IN_3_28
-void ide_unsaved_files_reap_async (IdeUnsavedFiles *self,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+void ide_unsaved_files_reap_async (IdeUnsavedFiles *self,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
IDE_AVAILABLE_IN_3_28
-gboolean ide_unsaved_files_reap_finish (IdeUnsavedFiles *self,
- GAsyncResult *result,
- GError **error);
+gboolean ide_unsaved_files_reap_finish (IdeUnsavedFiles *self,
+ GAsyncResult *result,
+ GError **error);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]