diff options
Diffstat (limited to 'cut-n-paste/recent-files/egg-recent-view.h')
-rw-r--r-- | cut-n-paste/recent-files/egg-recent-view.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/cut-n-paste/recent-files/egg-recent-view.h b/cut-n-paste/recent-files/egg-recent-view.h new file mode 100644 index 0000000..79f0346 --- /dev/null +++ b/cut-n-paste/recent-files/egg-recent-view.h @@ -0,0 +1,43 @@ +#ifndef __EGG_RECENT_VIEW_H__ +#define __EGG_RECENT_VIEW_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkwidget.h> +#include "egg-recent-model.h" +#include "egg-recent-item.h" + +G_BEGIN_DECLS + +#define EGG_TYPE_RECENT_VIEW (egg_recent_view_get_type ()) +#define EGG_RECENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_RECENT_VIEW, EggRecentView)) +#define EGG_RECENT_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), EGG_TYPE_RECENT_VIEW, EggRecentViewClass)) +#define EGG_IS_RECENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_RECENT_VIEW)) +#define EGG_IS_RECENT_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), EGG_TYPE_RECENT_VIEW)) +#define EGG_RECENT_VIEW_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EGG_TYPE_RECENT_VIEW, EggRecentViewClass)) + + +typedef struct _EggRecentView EggRecentView; +typedef struct _EggRecentViewClass EggRecentViewClass; + +struct _EggRecentViewClass +{ + GTypeInterface base_iface; + + /* vtable, not signals */ + void (* do_set_model) (EggRecentView *view, + EggRecentModel *model); + EggRecentModel * (* do_get_model) (EggRecentView *view); +}; + +GtkType egg_recent_view_get_type (void) G_GNUC_CONST; +void egg_recent_view_set_list (EggRecentView *view, + GSList *list); +void egg_recent_view_clear (EggRecentView *view); +EggRecentModel *egg_recent_view_get_model (EggRecentView *view); +void egg_recent_view_set_model (EggRecentView *view, + EggRecentModel *model); + +G_END_DECLS + +#endif /* __EGG_RECENT_VIEW_H__ */ |