diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-11-17 13:31:26 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-11-17 13:31:26 (GMT) |
commit | 71092ede528c45681c9130e5493308f32afc619a (patch) | |
tree | 78dbab8526a76b4e23e70a4cfe7633ae54c1d2d2 /libview/ev-view.c | |
parent | f877082cec3a33f76170e5463b95525db107caee (diff) |
Add options to open and save attachment annotations to context menu
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r-- | libview/ev-view.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c index effbd36..8c59ec8 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -3209,8 +3209,9 @@ ev_view_do_popup_menu (EvView *view, gdouble x, gdouble y) { - EvLink *link; - EvImage *image; + EvLink *link; + EvImage *image; + EvAnnotation *annot; image = ev_view_get_image_at_location (view, x, y); if (image) { @@ -3224,6 +3225,12 @@ ev_view_do_popup_menu (EvView *view, return TRUE; } + annot = ev_view_get_annotation_at_location (view, x, y); + if (annot) { + g_signal_emit (view, signals[SIGNAL_POPUP_MENU], 0, annot); + return TRUE; + } + g_signal_emit (view, signals[SIGNAL_POPUP_MENU], 0, NULL); return TRUE; |