]> git.sur5r.net Git - glabels/blob - glabels2/src/gnome-recent-view.h
Initial revision
[glabels] / glabels2 / src / gnome-recent-view.h
1 #ifndef __GNOME_RECENT_VIEW_H__
2 #define __GNOME_RECENT_VIEW_H__
3
4
5 #include <gdk/gdk.h>
6 #include <gtk/gtkwidget.h>
7 #include "gnome-recent-model.h"
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif /* __cplusplus */
12
13
14 #define GNOME_TYPE_RECENT_VIEW             (gnome_recent_view_get_type ())
15 #define GNOME_RECENT_VIEW(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_TYPE_RECENT_VIEW, GnomeRecentView))
16 #define GNOME_RECENT_VIEW_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), GNOME_TYPE_RECENT_VIEW, GnomeRecentViewClass))
17 #define GNOME_IS_RECENT_VIEW(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_TYPE_RECENT_VIEW))
18 #define GNOME_IS_RECENT_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GNOME_TYPE_RECENT_VIEW))
19 #define GNOME_RECENT_VIEW_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GNOME_TYPE_RECENT_VIEW, GnomeRecentViewClass))
20
21 typedef struct _GnomeRecentView       GnomeRecentView;         /* Dummy typedef */
22 typedef struct _GnomeRecentViewClass  GnomeRecentViewClass;
23
24 struct _GnomeRecentViewClass
25 {
26   GTypeInterface                   base_iface;
27   
28   /* vtable, not signals */
29   void (* do_clear)                             (GnomeRecentView *view);
30   void (* do_set_model)                         (GnomeRecentView *view,
31                                                  GnomeRecentModel *model);
32   GnomeRecentModel * (* do_get_model)           (GnomeRecentView *view);
33 };
34
35 GtkType  gnome_recent_view_get_type             (void) G_GNUC_CONST;
36 void     gnome_recent_view_set_list             (GnomeRecentView *view,
37                                                  GSList *list);
38 void     gnome_recent_view_clear                (GnomeRecentView *view);
39 GnomeRecentModel *gnome_recent_view_get_model   (GnomeRecentView *view);
40 void     gnome_recent_view_set_model            (GnomeRecentView *view,
41                                                  GnomeRecentModel *model);
42
43
44 #ifdef __cplusplus
45 }
46 #endif /* __cplusplus */
47
48
49 #endif /* __GNOME_RECENT_VIEW_H__ */