1 /* logview-loglist.h - displays a list of the opened logs
3 * Copyright (C) 2005 Vincent Noel <vnoel@cox.net>
4 * Copyright (C) 2008 Cosimo Cecchi <cosimoc@gnome.org>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __LOGVIEW_LOGLIST_H__
22 #define __LOGVIEW_LOGLIST_H__
24 #define LOGVIEW_TYPE_LOGLIST logview_loglist_get_type()
25 #define LOGVIEW_LOGLIST(obj) \
26 (G_TYPE_CHECK_INSTANCE_CAST ((obj), LOGVIEW_TYPE_LOGLIST, LogviewLoglist))
27 #define LOGVIEW_LOGLIST_CLASS(klass) \
28 (G_TYPE_CHECK_CLASS_CAST ((klass), LOGVIEW_TYPE_LOGLIST, LogviewLogListClass))
29 #define LOGVIEW_IS_LOGLIST(obj) \
30 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LOGVIEW_TYPE_LOGLIST))
31 #define LOGVIEW_IS_LOGLIST_CLASS(klass) \
32 (G_TYPE_CHECK_CLASS_TYPE ((klass), LOGVIEW_TYPE_LOGLIST))
33 #define LOGVIEW_LOGLIST_GET_CLASS(obj) \
34 (G_TYPE_INSTANCE_GET_CLASS ((obj), LOGVIEW_TYPE_LOGLIST, LogviewLoglistClass))
37 #include <glib-object.h>
39 #include "logview-log.h"
40 #include "logview-utils.h"
42 typedef struct _LogviewLoglist LogviewLoglist
;
43 typedef struct _LogviewLoglistClass LogviewLoglistClass
;
44 typedef struct _LogviewLoglistPrivate LogviewLoglistPrivate
;
46 struct _LogviewLoglist
{
47 GtkTreeView parent_instance
;
48 LogviewLoglistPrivate
*priv
;
51 struct _LogviewLoglistClass
{
52 GtkTreeViewClass parent_class
;
54 void (* day_selected
) (LogviewLoglist
*loglist
,
56 void (* day_cleared
) (LogviewLoglist
*loglist
);
59 GType
logview_loglist_get_type (void);
62 GtkWidget
* logview_loglist_new (void);
63 void logview_loglist_update_lines (LogviewLoglist
*loglist
,
65 GDate
* logview_loglist_get_date_selection (LogviewLoglist
*loglist
);
66 void logview_loglist_clear_date (LogviewLoglist
*loglist
);
68 #endif /* __LOGVIEW_LOGLIST_H__ */