mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 21:44:20 +01:00
Custom selection style
This commit is contained in:
parent
c38d89bb15
commit
b33e33fd36
@ -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 */
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user