diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-08-31 20:37:24 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-08-31 20:37:24 (GMT) |
commit | 982600bbceb76a22d5c7b3e0cbe6e20421105ad6 (patch) | |
tree | 1d233d670a447357a7d41044660881e4475f2658 /shell/ev-jobs.c | |
parent | f76fa765536d1f5875699606d0a78c6f132fce1e (diff) |
Add support for double and triple click selections.
2007-08-31 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/dvi/dvi-document.c: (dvi_document_document_iface_init):
* backend/impress/impress-document.c:
(impress_document_document_iface_init):
* backend/ps/ps-document.c: (ps_document_document_iface_init):
* backend/djvu/djvu-document.c:
(djvu_document_document_iface_init),
(djvu_selection_get_selected_text), (djvu_selection_iface_init):
* backend/tiff/tiff-document.c:
(tiff_document_document_iface_init):
* backend/pixbuf/pixbuf-document.c:
(pixbuf_document_document_iface_init):
* backend/comics/comics-document.c:
(comics_document_document_iface_init):
* backend/pdf/ev-poppler.cc: (pdf_document_document_iface_init),
(pdf_selection_render_selection),
(pdf_selection_get_selected_text),
(pdf_selection_get_selection_region),
(pdf_selection_get_selection_map), (pdf_selection_iface_init):
* libdocument/ev-selection.[ch]: (ev_selection_get_selected_text),
(ev_selection_get_selection_region),
(ev_selection_get_selection_map):
* libdocument/ev-document.[ch]:
* shell/ev-pixbuf-cache.[ch]: (add_job),
(ev_pixbuf_cache_get_selection_surface), (update_job_selection):
* shell/ev-view-private.h:
* shell/ev-jobs.[ch]: (ev_job_render_new), (ev_job_render_new),
(ev_job_render_run):
* shell/ev-window.c: (ev_window_setup_action_sensitivity):
* shell/ev-view.c: (start_selection_for_event),
(ev_view_button_press_event), (ev_view_drag_data_get),
(ev_view_drag_data_received), (ev_view_button_release_event),
(compute_new_selection_text), (compute_selections),
(ev_view_select_all), (get_selected_text), (ev_view_copy),
(ev_view_primary_get_cb):
Add support for double and triple click selections.
svn path=/trunk/; revision=2648
Diffstat (limited to 'shell/ev-jobs.c')
-rw-r--r-- | shell/ev-jobs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/ev-jobs.c b/shell/ev-jobs.c index 6934f60..99bfc87 100644 --- a/shell/ev-jobs.c +++ b/shell/ev-jobs.c @@ -8,7 +8,6 @@ #include "ev-document-misc.h" #include "ev-file-helpers.h" #include "ev-document-fonts.h" -#include "ev-selection.h" #include "ev-async-renderer.h" #include <glib/gstdio.h> @@ -276,6 +275,7 @@ ev_job_render_new (EvDocument *document, gint width, gint height, EvRectangle *selection_points, + EvSelectionStyle selection_style, GdkColor *text, GdkColor *base, gboolean include_forms, @@ -296,6 +296,7 @@ ev_job_render_new (EvDocument *document, job->rc = g_object_ref (rc); job->target_width = width; job->target_height = height; + job->selection_style = selection_style; job->text = *text; job->base = *base; job->include_forms = include_forms; @@ -371,10 +372,12 @@ ev_job_render_run (EvJobRender *job) &(job->selection), &(job->selection_points), NULL, + job->selection_style, &(job->text), &(job->base)); job->selection_region = ev_selection_get_selection_region (EV_SELECTION (EV_JOB (job)->document), job->rc, + job->selection_style, &(job->selection_points)); } |