r1473: Put all the backdrop settings in a dialog from the pinboard menu.
[rox-filer.git] / ROX-Filer / src / icon.h
blob8f31600eac4e6199d91557fe6fb8941e1cd251a3
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
6 */
8 #ifndef _ICON_H
9 #define _ICON_H
11 #include <glib.h>
13 extern GList *icon_selection;
14 extern GtkWidget *icon_menu; /* The popup icon menu */
16 typedef struct _IconClass IconClass;
18 struct _IconClass {
19 GObjectClass parent;
21 gboolean (*same_group)(Icon *icon, Icon *other);
22 void (*destroy)(Icon *icon);
23 void (*redraw)(Icon *icon);
24 void (*update)(Icon *icon);
26 /* Acts on selected items */
27 void (*remove_items)(void);
30 struct _Icon {
31 GObject object;
33 gboolean selected;
34 guchar *src_path; /* Eg: ~/Apps */
35 guchar *path; /* Eg: /home/fred/Apps */
36 DirItem *item;
38 GtkWidget *dialog; /* Current rename box, if any */
41 GType icon_get_type(void);
42 gboolean icons_require(const gchar *path);
43 void icon_may_update(Icon *icon);
44 void icons_may_update(const gchar *path);
45 void icon_prepare_menu(Icon *icon, gboolean pinboard);
46 void icon_set_selected(Icon *icon, gboolean selected);
47 void icon_select_only(Icon *select);
48 void icon_set_path(Icon *icon, const char *pathname, const char *name);
49 gchar *icon_create_uri_list(void);
50 void icon_destroy(Icon *icon);
52 #endif /* _ICON_H */