diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 2000-01-17 16:58:29 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 2000-01-17 16:58:29 +0800 |
commit | 173a42036986044bc7907033a299cc1c71aa72e7 (patch) | |
tree | 7eb91284a687ae4f0c4e8f1cf4b81dd56249da1d /shell/e-shortcut.h | |
parent | 3bdd857a4a69e83841c2fbae83d96101912ebf69 (diff) | |
download | gsoc2013-evolution-173a42036986044bc7907033a299cc1c71aa72e7.tar gsoc2013-evolution-173a42036986044bc7907033a299cc1c71aa72e7.tar.gz gsoc2013-evolution-173a42036986044bc7907033a299cc1c71aa72e7.tar.bz2 gsoc2013-evolution-173a42036986044bc7907033a299cc1c71aa72e7.tar.lz gsoc2013-evolution-173a42036986044bc7907033a299cc1c71aa72e7.tar.xz gsoc2013-evolution-173a42036986044bc7907033a299cc1c71aa72e7.tar.zst gsoc2013-evolution-173a42036986044bc7907033a299cc1c71aa72e7.zip |
Shaping up; Model/view is still not fully setup, but coming, coming
svn path=/trunk/; revision=1580
Diffstat (limited to 'shell/e-shortcut.h')
-rw-r--r-- | shell/e-shortcut.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/shell/e-shortcut.h b/shell/e-shortcut.h new file mode 100644 index 0000000000..1087fb0847 --- /dev/null +++ b/shell/e-shortcut.h @@ -0,0 +1,59 @@ +#ifndef SHELL_SHORTCUT_H +#define SHELL_SHORTCUT_H + +#include <gtk/gtkobject.h> +#include "e-folder.h" + +#define E_SHORTCUT_TYPE (e_shortcut_get_type ()) +#define E_SHORTCUT(o) (GTK_CHECK_CAST ((o), E_SHORTCUT_TYPE, EShortcut)) +#define E_SHORTCUT_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_SHORTCUT_TYPE, EShortcutClass)) +#define E_IS_SHORTCUT(o) (GTK_CHECK_TYPE ((o), E_SHORTCUT_TYPE)) +#define E_IS_SHORTCUT_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_SHORTCUT_TYPE)) + +typedef struct { + GtkObject object; + EFolder *efolder; +} EShortcut; + +typedef struct { + GtkObjectClass parent_class; +} EShortcutClass; + +#define E_SHORTCUT_GROUP_TYPE (e_shortcut_group_get_type ()) +#define E_SHORTCUT_GROUP(o) (GTK_CHECK_CAST ((o), E_SHORTCUT_GROUP_TYPE, EShortcutGroup)) +#define E_SHORTCUT_GROUP_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_SHORTCUT_GROUP_TYPE, EShortcutGroupClass)) +#define E_IS_SHORTCUT_GROUP(o) (GTK_CHECK_TYPE ((o), E_SHORTCUT_GROUP_TYPE)) +#define E_IS_SHORTCUT_GROUP_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_SHORTCUT_GROUP_TYPE)) + +typedef struct { + GtkObject object; + char *group_name; + GArray *shortcuts; + char *title; + gboolean small_icons; +} EShortcutGroup; + +typedef enum { + E_SHORTCUT_GROUP_ITEM_ADDED, + E_SHORTCUT_GROUP_ITEM_REMOVED, + E_SHORTCUT_GROUP_ITEM_MOVED, +} EShortcutGroupChange; + +typedef struct { + GtkObjectClass parent_class; + + void (*structure_changed) (EShortcutGroup *, EShortcutGroupChange change, int arg1, int arg2); +} EShortcutGroupClass; + +GtkType e_shortcut_get_type (void); +EShortcut *e_shortcut_new (EFolder *efolder); + +GtkType e_shortcut_group_get_type (void); +EShortcutGroup *e_shortcut_group_new (const char *name, gboolean small_icons); +void e_shortcut_group_append (EShortcutGroup *sg, EShortcut *shortcut); +void e_shortcut_group_destroy (EShortcutGroup *sg); +void e_shortcut_group_remove (EShortcutGroup *sg, EShortcut *shortcut); +void e_shortcut_group_move (EShortcutGroup *sg, int from, int to); + + +#endif |