/usr/include/gthumb-3.6/gthumb/gth-file-store.h is in gthumb-dev 3:3.6.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* GThumb
*
* Copyright (C) 2008 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GTH_FILE_STORE_H
#define GTH_FILE_STORE_H
#include <gtk/gtk.h>
#include "gth-file-data.h"
#include "gth-test.h"
G_BEGIN_DECLS
#define GTH_TYPE_FILE_STORE (gth_file_store_get_type ())
#define GTH_FILE_STORE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTH_TYPE_FILE_STORE, GthFileStore))
#define GTH_FILE_STORE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTH_TYPE_FILE_STORE, GthFileStoreClass))
#define GTH_IS_FILE_STORE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTH_TYPE_FILE_STORE))
#define GTH_IS_FILE_STORE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTH_TYPE_FILE_STORE))
#define GTH_FILE_STORE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GTH_TYPE_FILE_STORE, GthFileStoreClass))
typedef struct _GthFileStore GthFileStore;
typedef struct _GthFileStorePrivate GthFileStorePrivate;
typedef struct _GthFileStoreClass GthFileStoreClass;
enum {
GTH_FILE_STORE_FILE_DATA_COLUMN,
GTH_FILE_STORE_THUMBNAIL_COLUMN,
GTH_FILE_STORE_IS_ICON_COLUMN,
GTH_FILE_STORE_EMBLEMS_COLUMN,
GTH_FILE_STORE_N_COLUMNS
};
struct _GthFileStore
{
GObject __parent;
GthFileStorePrivate *priv;
};
struct _GthFileStoreClass
{
GObjectClass __parent_class;
void (*visibility_changed) (GthFileStore *self);
void (*thumbnail_changed) (GtkTreeModel *tree_model,
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);
void gth_file_store_set_sort_func (GthFileStore *file_store,
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);
gboolean gth_file_store_find (GthFileStore *file_store,
GFile *file,
GtkTreeIter *iter);
gboolean gth_file_store_find_visible (GthFileStore *file_store,
GFile *file,
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);
gboolean gth_file_store_get_next (GthFileStore *file_store,
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);
gboolean gth_file_store_get_next_visible (GthFileStore *file_store,
GtkTreeIter *iter);
gboolean gth_file_store_get_prev_visible (GthFileStore *file_store,
GtkTreeIter *iter);
void gth_file_store_add (GthFileStore *file_store,
GthFileData *file,
cairo_surface_t *thumbnail,
gboolean is_icon,
int position);
void gth_file_store_queue_add (GthFileStore *file_store,
GthFileData *file,
cairo_surface_t *thumbnail,
gboolean is_icon);
void gth_file_store_exec_add (GthFileStore *file_store,
int position);
void gth_file_store_set (GthFileStore *file_store,
GtkTreeIter *iter,
...);
void gth_file_store_queue_set (GthFileStore *file_store,
GtkTreeIter *iter,
...);
void gth_file_store_exec_set (GthFileStore *file_store);
void gth_file_store_remove (GthFileStore *file_store,
GtkTreeIter *iter);
void gth_file_store_queue_remove (GthFileStore *file_store,
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,
int *new_order);
G_END_DECLS
#endif /* GTH_FILE_STORE_H */
|