00001 #ifndef __EGG_RECENT_VIEW_H__
00002 #define __EGG_RECENT_VIEW_H__
00003
00004
00005 #include <gdk/gdk.h>
00006 #include <gtk/gtkwidget.h>
00007 #include "egg-recent-model.h"
00008 #include "egg-recent-item.h"
00009
00010 G_BEGIN_DECLS
00011
00012 #define EGG_TYPE_RECENT_VIEW (egg_recent_view_get_type ())
00013 #define EGG_RECENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_RECENT_VIEW, EggRecentView))
00014 #define EGG_RECENT_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), EGG_TYPE_RECENT_VIEW, EggRecentViewClass))
00015 #define EGG_IS_RECENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_RECENT_VIEW))
00016 #define EGG_IS_RECENT_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), EGG_TYPE_RECENT_VIEW))
00017 #define EGG_RECENT_VIEW_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EGG_TYPE_RECENT_VIEW, EggRecentViewClass))
00018
00019
00020 typedef struct _EggRecentView EggRecentView;
00021 typedef struct _EggRecentViewClass EggRecentViewClass;
00022
00023 struct _EggRecentViewClass
00024 {
00025 GTypeInterface base_iface;
00026
00027
00028 void (* do_set_model) (EggRecentView *view,
00029 EggRecentModel *model);
00030 EggRecentModel * (* do_get_model) (EggRecentView *view);
00031 };
00032
00033 GtkType egg_recent_view_get_type (void) G_GNUC_CONST;
00034 void egg_recent_view_set_list (EggRecentView *view,
00035 GSList *list);
00036 void egg_recent_view_clear (EggRecentView *view);
00037 EggRecentModel *egg_recent_view_get_model (EggRecentView *view);
00038 void egg_recent_view_set_model (EggRecentView *view,
00039 EggRecentModel *model);
00040
00041 G_END_DECLS
00042
00043 #endif