diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-04-01 05:48:38 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-04-01 05:48:38 +0800 |
commit | 0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7 (patch) | |
tree | 90df407868f6e2636e064af23f3a8560b143ddf5 /widgets/misc/e-attachment-view.h | |
parent | 04cc4a2cb1bf87417f82d1094ddde611019c0ab8 (diff) | |
download | gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.gz gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.bz2 gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.lz gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.xz gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.zst gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.zip |
Extend EAttachmentView by subclassing EAttachmentHandler.
So far it only supports extending the attachment pop-up menu, but I
also plan to support extending drag and drop types. Might even end
up replacing EMFormatHook.
Two subclasses created so far:
EAttachmentHandlerImage handles images (built-in)
EAttachmentHandlerMail handles emails (defined in mail module)
svn path=/branches/kill-bonobo/; revision=37487
Diffstat (limited to 'widgets/misc/e-attachment-view.h')
-rw-r--r-- | widgets/misc/e-attachment-view.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/misc/e-attachment-view.h b/widgets/misc/e-attachment-view.h index d33ad951ac..16a7ac1967 100644 --- a/widgets/misc/e-attachment-view.h +++ b/widgets/misc/e-attachment-view.h @@ -85,10 +85,16 @@ struct _EAttachmentViewIface { GdkDragAction actions); void (*drag_source_unset) (EAttachmentView *view); void (*drag_dest_unset) (EAttachmentView *view); + + /* Signals */ + void (*update_actions) (EAttachmentView *view); }; struct _EAttachmentViewPrivate { + /* Attachment Handlers */ + GList *handlers; + /* Popup Menu Management */ GtkUIManager *ui_manager; GtkActionGroup *standard_actions; @@ -127,12 +133,16 @@ void e_attachment_view_remove_selected (EAttachmentView *view, gboolean select_next); +/* Event Support */ gboolean e_attachment_view_button_press_event (EAttachmentView *view, GdkEventButton *event); gboolean e_attachment_view_button_release_event (EAttachmentView *view, GdkEventButton *event); +gboolean e_attachment_view_key_press_event + (EAttachmentView *view, + GdkEventKey *event); /* Selection Management */ GtkTreePath * e_attachment_view_get_path_at_pos |