Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cut-n-paste/recent-files/egg-recent-view-gtk.h
blob: 287f3e03061026b9f4c6520edf606c6122cc3cc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef __EGG_RECENT_VIEW_GTK_H__
#define __EGG_RECENT_VIEW_GTK_H__

G_BEGIN_DECLS

#include <gtk/gtk.h>
#include "egg-recent-item.h"

#define EGG_RECENT_VIEW_GTK(obj)		G_TYPE_CHECK_INSTANCE_CAST (obj, egg_recent_view_gtk_get_type (), EggRecentViewGtk)
#define EGG_RECENT_VIEW_GTK_CLASS(klass) 	G_TYPE_CHECK_CLASS_CAST (klass, egg_recent_view_gtk_get_type (), EggRecentViewGtkClass)
#define EGG_IS_RECENT_VIEW_GTK(obj)		G_TYPE_CHECK_INSTANCE_TYPE (obj, egg_recent_view_gtk_get_type ())

typedef void (*EggRecentViewGtkTooltipFunc) (GtkTooltips *tooltips,
					     GtkWidget *menu,
					     EggRecentItem *item,
					     gpointer user_data);

typedef struct _EggRecentViewGtk EggRecentViewGtk;

typedef struct _EggRecentViewGtkClass EggRecentViewGtkClass;

struct _EggRecentViewGtkClass {
	GObjectClass parent_class;
	
	void (*activate) (EggRecentViewGtk *view, EggRecentItem *item);
};

GType        egg_recent_view_gtk_get_type (void);

EggRecentViewGtk * egg_recent_view_gtk_new (GtkWidget *menu,
					    GtkWidget *start_menu_item);

void egg_recent_view_gtk_set_menu            (EggRecentViewGtk *view,
						GtkWidget *menu);
GtkWidget * egg_recent_view_gtk_get_menu     (EggRecentViewGtk *view);


void egg_recent_view_gtk_set_start_menu_item (EggRecentViewGtk *view,
					      GtkWidget *menu_item);
GtkWidget *egg_recent_view_gtk_get_start_menu_item     (EggRecentViewGtk *view);

void egg_recent_view_gtk_set_leading_sep     (EggRecentViewGtk *view,
						gboolean val);

void egg_recent_view_gtk_set_trailing_sep    (EggRecentViewGtk *view,
						gboolean val);

void egg_recent_view_gtk_show_icons          (EggRecentViewGtk *view,
					      gboolean show);
void egg_recent_view_gtk_show_numbers        (EggRecentViewGtk *view,
					      gboolean show);

void egg_recent_view_gtk_set_tooltip_func    (EggRecentViewGtk *view,
					      EggRecentViewGtkTooltipFunc func,
					      gpointer user_data);

void egg_recent_view_gtk_set_icon_size       (EggRecentViewGtk *view,
					      GtkIconSize icon_size);
GtkIconSize egg_recent_view_gtk_get_icon_size (EggRecentViewGtk *view);

void egg_recent_view_gtk_set_label_width    (EggRecentViewGtk *view,
					     gint              chars);
gint egg_recent_view_gtk_get_label_width    (EggRecentViewGtk *view);

G_END_DECLS

#endif /* __EGG_RECENT_VIEW_GTK_H__ */