/* * Copyright (C) 2007 Ross Burton * * Author: Ross Burton * * 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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _KATACHI_IMAGE_STORE_ #define _KATACHI_IMAGE_STORE_ #include #include G_BEGIN_DECLS #define KATACHI_TYPE_IMAGE_STORE katachi_image_store_get_type() #define KATACHI_IMAGE_STORE(obj) \ (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ KATACHI_TYPE_IMAGE_STORE, KatachiImageStore)) #define KATACHI_IMAGE_STORE_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST ((klass), \ KATACHI_TYPE_IMAGE_STORE, KatachiImageStoreClass)) #define KATACHI_IS_IMAGE_STORE(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ KATACHI_TYPE_IMAGE_STORE)) #define KATACHI_IS_IMAGE_STORE_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE ((klass), \ KATACHI_TYPE_IMAGE_STORE)) #define KATACHI_IMAGE_STORE_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), \ KATACHI_TYPE_IMAGE_STORE, KatachiImageStoreClass)) enum { COL_KEY, COL_FILE, COL_THUMB, }; typedef struct { GtkListStore parent; } KatachiImageStore; typedef struct { GtkListStoreClass parent_class; } KatachiImageStoreClass; GType katachi_image_store_get_type (void); GtkTreeModel* katachi_image_store_new (void); void katachi_image_store_populate (KatachiImageStore *store, GFile *parent); G_END_DECLS #endif /* _KATACHI_IMAGE_STORE_ */