1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef __EGG_RECENT_VIEW_GTK_H__
3 #define __EGG_RECENT_VIEW_GTK_H__
8 #include "egg-recent-item.h"
10 #define EGG_RECENT_VIEW_GTK(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, egg_recent_view_gtk_get_type (), EggRecentViewGtk)
11 #define EGG_RECENT_VIEW_GTK_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, egg_recent_view_gtk_get_type (), EggRecentViewGtkClass)
12 #define EGG_IS_RECENT_VIEW_GTK(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, egg_recent_view_gtk_get_type ())
14 typedef void (*EggRecentViewGtkTooltipFunc) (GtkTooltips *tooltips,
19 typedef struct _EggRecentViewGtk EggRecentViewGtk;
21 typedef struct _EggRecentViewGtkClass EggRecentViewGtkClass;
23 struct _EggRecentViewGtkClass {
24 GObjectClass parent_class;
26 void (*activate) (EggRecentViewGtk *view, EggRecentItem *item);
29 GType egg_recent_view_gtk_get_type (void);
31 EggRecentViewGtk * egg_recent_view_gtk_new (GtkWidget *menu,
32 GtkWidget *start_menu_item);
34 void egg_recent_view_gtk_set_menu (EggRecentViewGtk *view,
36 GtkWidget * egg_recent_view_gtk_get_menu (EggRecentViewGtk *view);
39 void egg_recent_view_gtk_set_start_menu_item (EggRecentViewGtk *view,
40 GtkWidget *menu_item);
41 GtkWidget *egg_recent_view_gtk_get_start_menu_item (EggRecentViewGtk *view);
43 void egg_recent_view_gtk_set_leading_sep (EggRecentViewGtk *view,
46 void egg_recent_view_gtk_set_trailing_sep (EggRecentViewGtk *view,
49 void egg_recent_view_gtk_show_icons (EggRecentViewGtk *view,
51 void egg_recent_view_gtk_show_numbers (EggRecentViewGtk *view,
54 void egg_recent_view_gtk_set_tooltip_func (EggRecentViewGtk *view,
55 EggRecentViewGtkTooltipFunc func,
58 void egg_recent_view_gtk_set_icon_size (EggRecentViewGtk *view,
59 GtkIconSize icon_size);
60 GtkIconSize egg_recent_view_gtk_get_icon_size (EggRecentViewGtk *view);
64 #endif /* __EGG_RECENT_VIEW_GTK_H__ */