document-tile.h 2.04 KB
Newer Older
Jim Krehl's avatar
Jim Krehl committed
1
/*
2
 * This file is part of libtile.
Jim Krehl's avatar
Jim Krehl committed
3 4 5
 *
 * Copyright (c) 2006 Novell, Inc.
 *
6
 * Libtile is free software; you can redistribute it and/or modify it under the
Jim Krehl's avatar
Jim Krehl committed
7 8 9 10
 * terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option)
 * any later version.
 *
11
 * Libtile is distributed in the hope that it will be useful, but WITHOUT ANY
Jim Krehl's avatar
Jim Krehl committed
12 13 14 15 16 17 18 19 20 21 22 23
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
 * more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with libslab; if not, write to the Free Software Foundation, Inc., 51
 * Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef __DOCUMENT_TILE_H__
#define __DOCUMENT_TILE_H__

24
#include <time.h>
Jim Krehl's avatar
Jim Krehl committed
25

26
#include "nameplate-tile.h"
Jim Krehl's avatar
Jim Krehl committed
27 28

G_BEGIN_DECLS
29

Jim Krehl's avatar
Jim Krehl committed
30 31 32 33 34 35
#define DOCUMENT_TILE_TYPE         (document_tile_get_type ())
#define DOCUMENT_TILE(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), DOCUMENT_TILE_TYPE, DocumentTile))
#define DOCUMENT_TILE_CLASS(c)     (G_TYPE_CHECK_CLASS_CAST ((c), DOCUMENT_TILE_TYPE, DocumentTileClass))
#define IS_DOCUMENT_TILE(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), DOCUMENT_TILE_TYPE))
#define IS_DOCUMENT_TILE_CLASS(c)  (G_TYPE_CHECK_CLASS_TYPE ((c), DOCUMENT_TILE_TYPE))
#define DOCUMENT_TILE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DOCUMENT_TILE_TYPE, DocumentTileClass))
36

37
typedef struct {
Jim Krehl's avatar
Jim Krehl committed
38 39 40
	NameplateTile nameplate_tile;
} DocumentTile;

41
typedef struct {
Jim Krehl's avatar
Jim Krehl committed
42 43 44 45 46 47 48 49 50 51 52 53
	NameplateTileClass nameplate_tile_class;
} DocumentTileClass;

#define DOCUMENT_TILE_ACTION_OPEN_WITH_DEFAULT    0
#define DOCUMENT_TILE_ACTION_OPEN_IN_FILE_MANAGER 1
#define DOCUMENT_TILE_ACTION_RENAME               2
#define DOCUMENT_TILE_ACTION_MOVE_TO_TRASH        3
#define DOCUMENT_TILE_ACTION_DELETE               4
#define DOCUMENT_TILE_ACTION_SEND_TO              5

GType document_tile_get_type (void);

54
GtkWidget *document_tile_new (const gchar *uri, const gchar *mime_type, time_t modified);
Jim Krehl's avatar
Jim Krehl committed
55 56

G_END_DECLS
57

Jim Krehl's avatar
Jim Krehl committed
58
#endif