1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2007 Imendio AB
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __GIGGLE_SHORT_LIST_H__
22 #define __GIGGLE_SHORT_LIST_H__
24 #include <gtk/gtkcellrenderertext.h>
25 #include <gtk/gtktreeview.h>
26 #include <gtk/gtkvbox.h>
30 #define GIGGLE_TYPE_SHORT_LIST (giggle_short_list_get_type ())
31 #define GIGGLE_SHORT_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIGGLE_TYPE_SHORT_LIST, GiggleShortList))
32 #define GIGGLE_SHORT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIGGLE_TYPE_SHORT_LIST, GiggleShortListClass))
33 #define GIGGLE_IS_SHORT_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIGGLE_TYPE_SHORT_LIST))
34 #define GIGGLE_IS_SHORT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIGGLE_TYPE_SHORT_LIST))
35 #define GIGGLE_SHORT_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIGGLE_TYPE_SHORT_LIST, GiggleShortListClass))
37 typedef GtkVBox GiggleShortList
;
38 typedef struct GiggleShortListClass GiggleShortListClass
;
40 GType
giggle_short_list_get_type (void);
41 GtkListStore
* giggle_short_list_get_liststore(GiggleShortList
* self
);
43 struct GiggleShortListClass
{
44 GtkVBoxClass vbox_class
;
47 gchar
* (*display_object
) (GiggleShortList
* self
,
52 GIGGLE_SHORT_LIST_COL_OBJECT
,
53 GIGGLE_SHORT_LIST_N_COLUMNS
58 #endif /* __GIGGLE_SHORT_LIST_H__ */