Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
6aa5420f
Commit
6aa5420f
authored
Nov 07, 2016
by
Sebastian Ramacher
Browse files
Simplify
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
4341a094
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura/page-widget.c
View file @
6aa5420f
...
...
@@ -862,21 +862,18 @@ cb_zathura_page_widget_button_release_event(GtkWidget* widget, GdkEventButton* b
zathura_rectangle_t
tmp
=
priv
->
mouse
.
selection
;
double
scale
=
zathura_document_get_scale
(
document
);
const
double
scale
=
zathura_document_get_scale
(
document
);
tmp
.
x1
/=
scale
;
tmp
.
x2
/=
scale
;
tmp
.
y1
/=
scale
;
tmp
.
y2
/=
scale
;
char
*
text
=
zathura_page_get_text
(
priv
->
page
,
tmp
,
NULL
);
if
(
text
!=
NULL
)
{
if
(
strlen
(
text
)
>
0
)
{
/* emit text-selected signal */
g_signal_emit
(
ZATHURA_PAGE
(
widget
),
signals
[
TEXT_SELECTED
],
0
,
text
);
}
g_free
(
text
);
if
(
text
!=
NULL
&&
*
text
!=
'\0'
)
{
/* emit text-selected signal */
g_signal_emit
(
ZATHURA_PAGE
(
widget
),
signals
[
TEXT_SELECTED
],
0
,
text
);
}
g_free
(
text
);
}
priv
->
mouse
.
selection_basepoint
.
x
=
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment