Commit ff1c5a33 authored by Christian Hergert's avatar Christian Hergert

buffer: fix header whitespace

parent bbb17707
Pipeline #16018 passed with stage
in 18 minutes and 8 seconds
...@@ -36,81 +36,80 @@ IDE_AVAILABLE_IN_ALL ...@@ -36,81 +36,80 @@ IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeBufferManager, ide_buffer_manager, IDE, BUFFER_MANAGER, IdeObject) G_DECLARE_FINAL_TYPE (IdeBufferManager, ide_buffer_manager, IDE, BUFFER_MANAGER, IdeObject)
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
IdeBuffer *ide_buffer_manager_create_temporary_buffer IdeBuffer *ide_buffer_manager_create_temporary_buffer (IdeBufferManager *self);
(IdeBufferManager *self);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_load_file_async (IdeBufferManager *self, void ide_buffer_manager_load_file_async (IdeBufferManager *self,
IdeFile *file, IdeFile *file,
gboolean force_reload, gboolean force_reload,
IdeWorkbenchOpenFlags flags, IdeWorkbenchOpenFlags flags,
IdeProgress **progress, IdeProgress **progress,
GCancellable *cancellable, GCancellable *cancellable,
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data); gpointer user_data);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
IdeBuffer *ide_buffer_manager_load_file_finish (IdeBufferManager *self, IdeBuffer *ide_buffer_manager_load_file_finish (IdeBufferManager *self,
GAsyncResult *result, GAsyncResult *result,
GError **error); GError **error);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_save_file_async (IdeBufferManager *self, void ide_buffer_manager_save_file_async (IdeBufferManager *self,
IdeBuffer *buffer, IdeBuffer *buffer,
IdeFile *file, IdeFile *file,
IdeProgress **progress, IdeProgress **progress,
GCancellable *cancellable, GCancellable *cancellable,
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data); gpointer user_data);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_manager_save_file_finish (IdeBufferManager *self, gboolean ide_buffer_manager_save_file_finish (IdeBufferManager *self,
GAsyncResult *result, GAsyncResult *result,
GError **error); GError **error);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_save_all_async (IdeBufferManager *self, void ide_buffer_manager_save_all_async (IdeBufferManager *self,
GCancellable *cancellable, GCancellable *cancellable,
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data); gpointer user_data);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_manager_save_all_finish (IdeBufferManager *self, gboolean ide_buffer_manager_save_all_finish (IdeBufferManager *self,
GAsyncResult *result, GAsyncResult *result,
GError **error); GError **error);
IDE_AVAILABLE_IN_ALL 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 IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_set_focus_buffer (IdeBufferManager *self, void ide_buffer_manager_set_focus_buffer (IdeBufferManager *self,
IdeBuffer *buffer); IdeBuffer *buffer);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
GPtrArray *ide_buffer_manager_get_buffers (IdeBufferManager *self); GPtrArray *ide_buffer_manager_get_buffers (IdeBufferManager *self);
IDE_AVAILABLE_IN_ALL 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 IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_manager_has_file (IdeBufferManager *self, gboolean ide_buffer_manager_has_file (IdeBufferManager *self,
GFile *file); GFile *file);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
IdeBuffer *ide_buffer_manager_find_buffer (IdeBufferManager *self, IdeBuffer *ide_buffer_manager_find_buffer (IdeBufferManager *self,
GFile *file); GFile *file);
IDE_AVAILABLE_IN_ALL 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 IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_set_max_file_size (IdeBufferManager *self, void ide_buffer_manager_set_max_file_size (IdeBufferManager *self,
gsize max_file_size); gsize max_file_size);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_apply_edits_async (IdeBufferManager *self, void ide_buffer_manager_apply_edits_async (IdeBufferManager *self,
GPtrArray *edits, GPtrArray *edits,
GCancellable *cancellable, GCancellable *cancellable,
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data); gpointer user_data);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
gboolean ide_buffer_manager_apply_edits_finish (IdeBufferManager *self, gboolean ide_buffer_manager_apply_edits_finish (IdeBufferManager *self,
GAsyncResult *result, GAsyncResult *result,
GError **error); GError **error);
IDE_AVAILABLE_IN_ALL 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 IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_set_auto_save_timeout (IdeBufferManager *self, void ide_buffer_manager_set_auto_save_timeout (IdeBufferManager *self,
guint auto_save_timeout); guint auto_save_timeout);
IDE_AVAILABLE_IN_ALL 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 IDE_AVAILABLE_IN_ALL
void ide_buffer_manager_set_auto_save (IdeBufferManager *self, void ide_buffer_manager_set_auto_save (IdeBufferManager *self,
gboolean auto_save); gboolean auto_save);
G_END_DECLS G_END_DECLS
...@@ -27,23 +27,25 @@ ...@@ -27,23 +27,25 @@
G_BEGIN_DECLS G_BEGIN_DECLS
PeasExtensionSet *_ide_buffer_get_addins (IdeBuffer *self); PeasExtensionSet *_ide_buffer_get_addins (IdeBuffer *self);
void _ide_buffer_set_changed_on_volume (IdeBuffer *self, void _ide_buffer_set_changed_on_volume (IdeBuffer *self,
gboolean changed_on_volume); gboolean changed_on_volume);
void _ide_buffer_set_loading (IdeBuffer *self, void _ide_buffer_set_loading (IdeBuffer *self,
gboolean loading); gboolean loading);
void _ide_buffer_cancel_cursor_restore (IdeBuffer *self); void _ide_buffer_cancel_cursor_restore (IdeBuffer *self);
gboolean _ide_buffer_can_restore_cursor (IdeBuffer *self); gboolean _ide_buffer_can_restore_cursor (IdeBuffer *self);
void _ide_buffer_set_mtime (IdeBuffer *self, void _ide_buffer_set_mtime (IdeBuffer *self,
const GTimeVal *mtime); const GTimeVal *mtime);
void _ide_buffer_set_read_only (IdeBuffer *buffer, void _ide_buffer_set_read_only (IdeBuffer *buffer,
gboolean read_only); gboolean read_only);
void _ide_buffer_set_failure (IdeBuffer *self, void _ide_buffer_set_failure (IdeBuffer *self,
const GError *error); const GError *error);
IdeHighlightEngine * IdeHighlightEngine *_ide_buffer_get_highlight_engine (IdeBuffer *self);
_ide_buffer_get_highlight_engine (IdeBuffer *self); void _ide_buffer_manager_reclaim (IdeBufferManager *self,
IdeBuffer *buffer);
void _ide_buffer_manager_reclaim (IdeBufferManager *self, IdeUnsavedFile *_ide_unsaved_file_new (GFile *file,
IdeBuffer *buffer); GBytes *content,
const gchar *temp_path,
gint64 sequence);
G_END_DECLS G_END_DECLS
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "application/ide-application.h" #include "application/ide-application.h"
#include "buffers/ide-unsaved-file.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. * This type is meant to be created and then immutable after that.
......
...@@ -44,10 +44,6 @@ IDE_AVAILABLE_IN_ALL ...@@ -44,10 +44,6 @@ IDE_AVAILABLE_IN_ALL
gboolean ide_unsaved_file_persist (IdeUnsavedFile *self, gboolean ide_unsaved_file_persist (IdeUnsavedFile *self,
GCancellable *cancellable, GCancellable *cancellable,
GError **error); 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) G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeUnsavedFile, ide_unsaved_file_unref)
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "ide-global.h" #include "ide-global.h"
#include "application/ide-application.h" #include "application/ide-application.h"
#include "buffers/ide-buffer-private.h"
#include "buffers/ide-unsaved-file.h" #include "buffers/ide-unsaved-file.h"
#include "buffers/ide-unsaved-files.h" #include "buffers/ide-unsaved-files.h"
#include "projects/ide-project.h" #include "projects/ide-project.h"
......
...@@ -30,50 +30,50 @@ IDE_AVAILABLE_IN_ALL ...@@ -30,50 +30,50 @@ IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeUnsavedFiles, ide_unsaved_files, IDE, UNSAVED_FILES, IdeObject) G_DECLARE_FINAL_TYPE (IdeUnsavedFiles, ide_unsaved_files, IDE, UNSAVED_FILES, IdeObject)
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
void ide_unsaved_files_update (IdeUnsavedFiles *self, void ide_unsaved_files_update (IdeUnsavedFiles *self,
GFile *file, GFile *file,
GBytes *content); GBytes *content);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
void ide_unsaved_files_remove (IdeUnsavedFiles *self, void ide_unsaved_files_remove (IdeUnsavedFiles *self,
GFile *file); GFile *file);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
void ide_unsaved_files_save_async (IdeUnsavedFiles *files, void ide_unsaved_files_save_async (IdeUnsavedFiles *files,
GCancellable *cancellable, GCancellable *cancellable,
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data); gpointer user_data);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
gboolean ide_unsaved_files_save_finish (IdeUnsavedFiles *files, gboolean ide_unsaved_files_save_finish (IdeUnsavedFiles *files,
GAsyncResult *result, GAsyncResult *result,
GError **error); GError **error);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
void ide_unsaved_files_restore_async (IdeUnsavedFiles *files, void ide_unsaved_files_restore_async (IdeUnsavedFiles *files,
GCancellable *cancellable, GCancellable *cancellable,
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data); gpointer user_data);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
gboolean ide_unsaved_files_restore_finish (IdeUnsavedFiles *files, gboolean ide_unsaved_files_restore_finish (IdeUnsavedFiles *files,
GAsyncResult *result, GAsyncResult *result,
GError **error); GError **error);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
GPtrArray *ide_unsaved_files_to_array (IdeUnsavedFiles *self); GPtrArray *ide_unsaved_files_to_array (IdeUnsavedFiles *self);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
gint64 ide_unsaved_files_get_sequence (IdeUnsavedFiles *files); gint64 ide_unsaved_files_get_sequence (IdeUnsavedFiles *files);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
IdeUnsavedFile *ide_unsaved_files_get_unsaved_file (IdeUnsavedFiles *self, IdeUnsavedFile *ide_unsaved_files_get_unsaved_file (IdeUnsavedFiles *self,
GFile *file); GFile *file);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
void ide_unsaved_files_clear (IdeUnsavedFiles *self); void ide_unsaved_files_clear (IdeUnsavedFiles *self);
IDE_AVAILABLE_IN_ALL IDE_AVAILABLE_IN_ALL
gboolean ide_unsaved_files_contains (IdeUnsavedFiles *self, gboolean ide_unsaved_files_contains (IdeUnsavedFiles *self,
GFile *file); GFile *file);
IDE_AVAILABLE_IN_3_28 IDE_AVAILABLE_IN_3_28
void ide_unsaved_files_reap_async (IdeUnsavedFiles *self, void ide_unsaved_files_reap_async (IdeUnsavedFiles *self,
GCancellable *cancellable, GCancellable *cancellable,
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data); gpointer user_data);
IDE_AVAILABLE_IN_3_28 IDE_AVAILABLE_IN_3_28
gboolean ide_unsaved_files_reap_finish (IdeUnsavedFiles *self, gboolean ide_unsaved_files_reap_finish (IdeUnsavedFiles *self,
GAsyncResult *result, GAsyncResult *result,
GError **error); GError **error);
G_END_DECLS G_END_DECLS
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment