diff options
author | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-12-21 17:41:03 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-12-21 17:41:03 (GMT) |
commit | 69d92c409d333e5dd9cc82537c0834b201487c60 (patch) | |
tree | e982b034261d7c3c24992497e0a885e3d719ec0a /cut-n-paste/recent-files/egg-recent-view-gtk.h | |
parent | 4c2778e5714bbd5ae60e74133d1482acf162e719 (diff) |
Initial revision
Diffstat (limited to 'cut-n-paste/recent-files/egg-recent-view-gtk.h')
-rw-r--r-- | cut-n-paste/recent-files/egg-recent-view-gtk.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/cut-n-paste/recent-files/egg-recent-view-gtk.h b/cut-n-paste/recent-files/egg-recent-view-gtk.h new file mode 100644 index 0000000..7e56baf --- /dev/null +++ b/cut-n-paste/recent-files/egg-recent-view-gtk.h @@ -0,0 +1,64 @@ +/* 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); + +G_END_DECLS + +#endif /* __EGG_RECENT_VIEW_GTK_H__ */ |