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
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
......@@ -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
......@@ -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.
......
......@@ -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)
......
......@@ -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"
......
......@@ -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
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