]> www.fi.muni.cz Git - evince.git/blob - cut-n-paste/recent-files/egg-recent-view-bonobo.h
Initial revision
[evince.git] / cut-n-paste / recent-files / egg-recent-view-bonobo.h
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef __EGG_RECENT_VIEW_BONOBO_H__
3 #define __EGG_RECENT_VIEW_BONOBO_H__
4
5 #include <libbonoboui.h>
6
7 G_BEGIN_DECLS
8
9 #define EGG_RECENT_VIEW_BONOBO(obj)             G_TYPE_CHECK_INSTANCE_CAST (obj, egg_recent_view_bonobo_get_type (), EggRecentViewBonobo)
10 #define EGG_RECENT_VIEW_BONOBO_CLASS(klass)     G_TYPE_CHECK_CLASS_CAST (klass, egg_recent_view_bonobo_get_type (), EggRecentViewBonoboClass)
11 #define EGG_IS_RECENT_VIEW_BONOBO(obj)          G_TYPE_CHECK_INSTANCE_TYPE (obj, egg_recent_view_bonobo_get_type ())
12
13 typedef char *(*EggRecentViewBonoboTooltipFunc) (EggRecentItem *item,
14                                                  gpointer user_data);
15
16 typedef struct _EggRecentViewBonobo EggRecentViewBonobo;
17
18 typedef struct _EggRecentViewBonoboClass EggRecentViewBonoboClass;
19
20 struct _EggRecentViewBonoboClass {
21         GObjectClass parent_class;
22         
23         void (*activate) (EggRecentViewBonobo *view, EggRecentItem *item);
24 };
25
26 GType        egg_recent_view_bonobo_get_type (void);
27
28 EggRecentViewBonobo * egg_recent_view_bonobo_new (BonoboUIComponent *uic,
29                                                       const gchar *path);
30
31
32 void egg_recent_view_bonobo_set_ui_component (EggRecentViewBonobo *view,
33                                                 BonoboUIComponent *uic);
34
35 void egg_recent_view_bonobo_set_ui_path      (EggRecentViewBonobo *view,
36                                                 const gchar *path);
37
38 gchar * egg_recent_view_bonobo_get_ui_path   (EggRecentViewBonobo *view);
39 const BonoboUIComponent *egg_recent_view_bonobo_get_ui_component (EggRecentViewBonobo *view);
40
41 void egg_recent_view_bonobo_show_icons (EggRecentViewBonobo *view,
42                                         gboolean show);
43
44 void egg_recent_view_bonobo_show_numbers (EggRecentViewBonobo *view,
45                                           gboolean show);
46
47 void egg_recent_view_bonobo_set_tooltip_func (EggRecentViewBonobo *view,
48                                         EggRecentViewBonoboTooltipFunc func,
49                                         gpointer user_data);
50
51 void egg_recent_view_bonobo_set_icon_size (EggRecentViewBonobo *view,
52                                            GtkIconSize icon_size);
53
54 GtkIconSize egg_recent_view_bonobo_get_icon_size (EggRecentViewBonobo *view);
55
56 G_END_DECLS
57
58 #endif /* __EGG_RECENT_VIEW_BONOBO_H__ */