1 #ifndef __GNOME_RECENT_VIEW_H__
2 #define __GNOME_RECENT_VIEW_H__
6 #include <gtk/gtkwidget.h>
7 #include "gnome-recent-model.h"
11 #endif /* __cplusplus */
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))
21 typedef struct _GnomeRecentView GnomeRecentView; /* Dummy typedef */
22 typedef struct _GnomeRecentViewClass GnomeRecentViewClass;
24 struct _GnomeRecentViewClass
26 GTypeInterface base_iface;
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);
35 GtkType gnome_recent_view_get_type (void) G_GNUC_CONST;
36 void gnome_recent_view_set_list (GnomeRecentView *view,
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);
46 #endif /* __cplusplus */
49 #endif /* __GNOME_RECENT_VIEW_H__ */