From b33e33fd362e714018e7f34a0c791d73369c9321 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Tue, 18 May 2010 00:48:46 +0200 Subject: [PATCH] Custom selection style --- config.def.h | 1 + zathura.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 6181d03..9986bca 100644 --- a/config.def.h +++ b/config.def.h @@ -57,6 +57,7 @@ static const char DEFAULT_TEXT[] = "[No Name]"; #define SHOW_SCROLLBARS 0 #define ADJUST_OPEN ADJUST_BESTFIT #define RECOLOR_OPEN 0 +#define SELECTION_STYLE POPPLER_SELECTION_GLYPH #define GOTO_MODE GOTO_LABELS /* GOTO_DEFAULT, GOTO_LABELS, GOTO_OFFSET */ /* shortcuts */ diff --git a/zathura.c b/zathura.c index 9b3aa07..f1d2074 100644 --- a/zathura.c +++ b/zathura.c @@ -3486,7 +3486,7 @@ cb_view_button_release(GtkWidget* widget, GdkEventButton* event, gpointer data) /* get selected text */ g_static_mutex_lock(&(Zathura.Lock.pdflib_lock)); char* selected_text = poppler_page_get_text( - Zathura.PDF.pages[Zathura.PDF.page_number]->page,POPPLER_SELECTION_GLYPH, + Zathura.PDF.pages[Zathura.PDF.page_number]->page,SELECTION_STYLE, &rectangle); if(selected_text)