[gthumb] spaces -> tabs
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] spaces -> tabs
- Date: Sat, 19 Jun 2021 18:10:40 +0000 (UTC)
commit 91e85fff95019426c4f6f1bf5754f76690466418
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri May 21 20:06:47 2021 +0200
spaces -> tabs
gthumb/gth-file-list.c | 6 ++---
gthumb/gth-file-list.h | 62 ++++++++++++++++++++++++-------------------------
gthumb/gth-file-store.c | 22 +++++++++---------
gthumb/gth-file-store.h | 38 +++++++++++++++---------------
gthumb/gth-grid-view.c | 5 ++--
5 files changed, 66 insertions(+), 67 deletions(-)
---
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index 1752435d..0e378599 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -1364,8 +1364,8 @@ queue_flash_updates (GthFileList *file_list)
static void
thumbnail_job_ready_cb (GObject *source_object,
- GAsyncResult *result,
- gpointer user_data)
+ GAsyncResult *result,
+ gpointer user_data)
{
ThumbnailJob *job = user_data;
GthFileList *file_list = job->file_list;
@@ -1804,7 +1804,7 @@ _gth_file_list_update_next_thumb (GthFileList *file_list)
#if 0
g_print ("%d in [%d, %d] => %d\n",
- job->pos,
+ job->pos,
(file_list->priv->thumbnailer_state.first_visibile - N_VIEWAHEAD),
(file_list->priv->thumbnailer_state.last_visible + N_VIEWAHEAD),
job->update_in_view);
diff --git a/gthumb/gth-file-list.h b/gthumb/gth-file-list.h
index 6fac70a5..2b961e8d 100644
--- a/gthumb/gth-file-list.h
+++ b/gthumb/gth-file-list.h
@@ -72,40 +72,40 @@ void gth_file_list_set_mode (GthFileList *file_li
GthFileListMode list_type);
GthFileListMode gth_file_list_get_mode (GthFileList *file_list);
void gth_file_list_cancel (GthFileList *file_list,
- DataFunc done_func,
- gpointer user_data);
+ DataFunc done_func,
+ gpointer user_data);
GthThumbLoader * gth_file_list_get_thumb_loader (GthFileList *file_list);
void gth_file_list_set_files (GthFileList *file_list,
- GList *list);
+ GList *list);
GList * gth_file_list_get_files (GthFileList *file_list,
- GList *tree_path_list);
+ GList *tree_path_list);
void gth_file_list_clear (GthFileList *file_list,
- const char *message);
+ const char *message);
void gth_file_list_add_files (GthFileList *file_list,
- GList *list /* GthFileData */,
- int position);
+ GList *list /* GthFileData */,
+ int position);
void gth_file_list_delete_files (GthFileList *file_list,
- GList *list /* GFile */);
+ GList *list /* GFile */);
void gth_file_list_update_files (GthFileList *file_list,
- GList *list /* GthFileData */);
+ GList *list /* GthFileData */);
void gth_file_list_update_emblems (GthFileList *file_list,
- GList *list /* GthFileData */);
+ GList *list /* GthFileData */);
void gth_file_list_rename_file (GthFileList *file_list,
- GFile *file,
- GthFileData *file_data);
+ GFile *file,
+ GthFileData *file_data);
void gth_file_list_set_filter (GthFileList *file_list,
- GthTest *filter);
+ GthTest *filter);
void gth_file_list_set_sort_func (GthFileList *file_list,
- GthFileDataCompFunc cmp_func,
- gboolean inverse_sort);
+ GthFileDataCompFunc cmp_func,
+ gboolean inverse_sort);
void gth_file_list_enable_thumbs (GthFileList *file_list,
- gboolean enable);
+ gboolean enable);
void gth_file_list_set_ignore_hidden (GthFileList *file_list,
- gboolean value);
+ gboolean value);
void gth_file_list_set_thumb_size (GthFileList *file_list,
- int size);
+ int size);
void gth_file_list_set_caption (GthFileList *file_list,
- const char *attribute);
+ const char *attribute);
void gth_file_list_make_file_visible (GthFileList *file_list,
GFile *file);
void gth_file_list_restore_state (GthFileList *file_list,
@@ -115,21 +115,21 @@ GtkWidget * gth_file_list_get_view (GthFileList *file_li
GtkWidget * gth_file_list_get_empty_view (GthFileList *file_list);
GtkAdjustment * gth_file_list_get_vadjustment (GthFileList *file_list);
int gth_file_list_first_file (GthFileList *file_list,
- gboolean skip_broken,
- gboolean only_selected);
+ gboolean skip_broken,
+ gboolean only_selected);
int gth_file_list_last_file (GthFileList *file_list,
- gboolean skip_broken,
- gboolean only_selected);
+ gboolean skip_broken,
+ gboolean only_selected);
int gth_file_list_next_file (GthFileList *file_list,
- int pos,
- gboolean skip_broken,
- gboolean only_selected,
- gboolean wrap);
+ int pos,
+ gboolean skip_broken,
+ gboolean only_selected,
+ gboolean wrap);
int gth_file_list_prev_file (GthFileList *file_list,
- int pos,
- gboolean skip_broken,
- gboolean only_selected,
- gboolean wrap);
+ int pos,
+ gboolean skip_broken,
+ gboolean only_selected,
+ gboolean wrap);
void gth_file_list_enable_drag_source (GthFileList *file_list,
GdkDragAction actions);
diff --git a/gthumb/gth-file-store.c b/gthumb/gth-file-store.c
index 40570803..1abd4013 100644
--- a/gthumb/gth-file-store.c
+++ b/gthumb/gth-file-store.c
@@ -443,7 +443,7 @@ gth_file_store_iter_next (GtkTreeModel *tree_model,
g_return_val_if_fail (VALID_ITER (iter, file_store), FALSE);
- row = (GthFileRow*) iter->user_data;
+ row = (GthFileRow*) iter->user_data;
if ((row->pos + 1) >= file_store->priv->num_rows)
return FALSE;
@@ -524,7 +524,7 @@ gth_file_store_iter_n_children (GtkTreeModel *tree_model,
g_return_val_if_fail (VALID_ITER (iter, file_store), 0);
- return 0;
+ return 0;
}
@@ -536,7 +536,7 @@ gth_file_store_iter_nth_child (GtkTreeModel *tree_model,
{
GthFileStore *file_store;
- file_store = (GthFileStore *) tree_model;
+ file_store = (GthFileStore *) tree_model;
if (parent != NULL) {
g_return_val_if_fail (VALID_ITER (parent, file_store), FALSE);
@@ -1278,8 +1278,8 @@ gth_file_store_get_pos (GthFileStore *file_store,
gboolean
gth_file_store_get_nth (GthFileStore *file_store,
- int n,
- GtkTreeIter *iter)
+ int n,
+ GtkTreeIter *iter)
{
GthFileRow *row;
@@ -1309,7 +1309,7 @@ gth_file_store_get_next (GthFileStore *file_store,
g_return_val_if_fail (VALID_ITER (iter, file_store), FALSE);
- row = (GthFileRow*) iter->user_data;
+ row = (GthFileRow*) iter->user_data;
if (row->abs_pos + 1 >= file_store->priv->tot_rows)
return FALSE;
@@ -1355,7 +1355,7 @@ gth_file_store_get_next_visible (GthFileStore *file_store,
g_return_val_if_fail (VALID_ITER (iter, file_store), FALSE);
- row = (GthFileRow*) iter->user_data;
+ row = (GthFileRow*) iter->user_data;
if (row->pos + 1 >= file_store->priv->num_rows)
return FALSE;
@@ -1379,7 +1379,7 @@ gth_file_store_get_prev_visible (GthFileStore *file_store,
g_return_val_if_fail (VALID_ITER (iter, file_store), FALSE);
- row = (GthFileRow*) iter->user_data;
+ row = (GthFileRow*) iter->user_data;
if (row->pos == 0)
return FALSE;
@@ -1438,8 +1438,8 @@ gth_file_store_exec_add (GthFileStore *file_store,
static void
gth_file_store_queue_set_valist (GthFileStore *file_store,
- GtkTreeIter *iter,
- va_list var_args)
+ GtkTreeIter *iter,
+ va_list var_args)
{
GthFileRow *row;
int column;
@@ -1626,7 +1626,7 @@ gth_file_store_queue_remove (GthFileStore *file_store,
g_return_if_fail (VALID_ITER (iter, file_store));
- row = (GthFileRow*) iter->user_data;
+ row = (GthFileRow*) iter->user_data;
file_store->priv->queue = g_list_prepend (file_store->priv->queue, _gth_file_row_ref
(file_store->priv->all_rows[row->abs_pos]));
}
diff --git a/gthumb/gth-file-store.h b/gthumb/gth-file-store.h
index b1aff863..fe1010aa 100644
--- a/gthumb/gth-file-store.h
+++ b/gthumb/gth-file-store.h
@@ -60,45 +60,45 @@ struct _GthFileStoreClass
void (*visibility_changed) (GthFileStore *self);
void (*thumbnail_changed) (GtkTreeModel *tree_model,
- GtkTreePath *path,
- GtkTreeIter *iter);
+ GtkTreePath *path,
+ GtkTreeIter *iter);
};
GType gth_file_store_get_type (void) G_GNUC_CONST;
GthFileStore * gth_file_store_new (void);
void gth_file_store_set_filter (GthFileStore *file_store,
- GthTest *filter);
+ GthTest *filter);
void gth_file_store_set_sort_func (GthFileStore *file_store,
- GthFileDataCompFunc cmp_func,
- gboolean inverse_sort);
+ GthFileDataCompFunc cmp_func,
+ gboolean inverse_sort);
GList * gth_file_store_get_all (GthFileStore *file_store);
int gth_file_store_n_files (GthFileStore *file_store);
GList * gth_file_store_get_visibles (GthFileStore *file_store);
int gth_file_store_n_visibles (GthFileStore *file_store);
GthFileData * gth_file_store_get_file (GthFileStore *file_store,
- GtkTreeIter *iter);
+ GtkTreeIter *iter);
gboolean gth_file_store_find (GthFileStore *file_store,
GFile *file,
- GtkTreeIter *iter);
+ GtkTreeIter *iter);
gboolean gth_file_store_find_visible (GthFileStore *file_store,
GFile *file,
- GtkTreeIter *iter);
+ GtkTreeIter *iter);
int gth_file_store_get_pos (GthFileStore *file_store,
GFile *file);
#define gth_file_store_get_first(file_store, iter) gth_file_store_get_nth (file_store, 0, iter)
gboolean gth_file_store_get_nth (GthFileStore *file_store,
int n,
- GtkTreeIter *iter);
+ GtkTreeIter *iter);
gboolean gth_file_store_get_next (GthFileStore *file_store,
- GtkTreeIter *iter);
+ GtkTreeIter *iter);
#define gth_file_store_get_first_visible(file_store, iter)
gth_file_store_get_nth_visible(file_store, 0, iter)
gboolean gth_file_store_get_nth_visible (GthFileStore *file_store,
int n,
- GtkTreeIter *iter);
+ GtkTreeIter *iter);
gboolean gth_file_store_get_next_visible (GthFileStore *file_store,
- GtkTreeIter *iter);
+ GtkTreeIter *iter);
gboolean gth_file_store_get_prev_visible (GthFileStore *file_store,
- GtkTreeIter *iter);
+ GtkTreeIter *iter);
void gth_file_store_add (GthFileStore *file_store,
GthFileData *file,
cairo_surface_t *thumbnail,
@@ -113,16 +113,16 @@ void gth_file_store_queue_add (GthFileStore *file_sto
void gth_file_store_exec_add (GthFileStore *file_store,
int position);
void gth_file_store_set (GthFileStore *file_store,
- GtkTreeIter *iter,
- ...);
+ GtkTreeIter *iter,
+ ...);
void gth_file_store_queue_set (GthFileStore *file_store,
- GtkTreeIter *iter,
- ...);
+ GtkTreeIter *iter,
+ ...);
void gth_file_store_exec_set (GthFileStore *file_store);
void gth_file_store_remove (GthFileStore *file_store,
- GtkTreeIter *iter);
+ GtkTreeIter *iter);
void gth_file_store_queue_remove (GthFileStore *file_store,
- GtkTreeIter *iter);
+ GtkTreeIter *iter);
void gth_file_store_exec_remove (GthFileStore *file_store);
void gth_file_store_clear (GthFileStore *file_store);
void gth_file_store_reorder (GthFileStore *file_store,
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index fc9e4cb8..7d199d89 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -831,8 +831,8 @@ _gth_grid_view_configure_vadjustment (GthGridView *self)
static void
_gth_grid_view_relayout_at (GthGridView *self,
- int pos,
- int y)
+ int pos,
+ int y)
{
GList *new_lines;
int items_per_line;
@@ -1242,7 +1242,6 @@ get_first_visible_at_offset (GthGridView *self,
n_line++;
}
pos = gth_grid_view_get_items_per_line (self) * (n_line - 1);
-
return CLAMP (pos, 0, self->priv->n_items - 1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]